Skip to content

Commit 025d20b

Browse files
committed
overlays: decompile ReserveNodeIfStateActive family (ov213/ov273)
Byte-exact match via double-negation idiom to keep the cmpne cascade (mwcc range-reduces the positive == chain) while nesting for a shared return-0 epilogue.
1 parent c60f736 commit 025d20b

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
int func_ov213_020cd258(char *obj) {
2+
char *node = *(char **)*(char **)(obj + 0x214);
3+
signed char state = *(signed char *)(node + 0x1c6);
4+
if (!(state != 2 && state != 4 && state != 5 && state != 6 && state != 7)) {
5+
if (*(signed char *)(node + 0x1c7) == -1) {
6+
*(char *)(node + 0x1c7) = 0xf;
7+
return 1;
8+
}
9+
}
10+
return 0;
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
int func_ov273_020d0e98(char *obj) {
2+
char *node = *(char **)*(char **)(obj + 0x214);
3+
signed char state = *(signed char *)(node + 0x1c6);
4+
if (!(state != 2 && state != 4 && state != 5 && state != 6 && state != 7)) {
5+
if (*(signed char *)(node + 0x1c7) == -1) {
6+
*(char *)(node + 0x1c7) = 0xf;
7+
return 1;
8+
}
9+
}
10+
return 0;
11+
}

0 commit comments

Comments
 (0)