fn(value$0) =>
match $0 {
#record(fields$1) =>
match @core.value-record-field(fields: $1, key: "name", index: 0) {
#some(field$2) =>
match @core.value-decoded(
T: String,
decoded: match $2 {
#string(v$4) =>
#some($4),
_ =>
#none
}
) {
#some(name$3) =>
match @core.value-record-field(fields: $1, key: "content_hash", index: 0) {
#some(field$5) =>
match @core.value-decoded(
T: String,
decoded: match $5 {
#string(v$7) =>
#some($7),
_ =>
#none
}
) {
#some(content_hash$6) =>
#some({name: $3, content_hash: $6}),
_ =>
#none
},
_ =>
#none
},
_ =>
#none
},
_ =>
#none
},
_ =>
#none
}