// // CustomizeObjectLayer::determineStartValues from 0x1001d9720 to 0x1001d9844 (292 bytes) // // 1 xrefs: // > CustomizeObjectLayer::init @ 0x1001d78b1 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:26:25 +0000 // __int64 __fastcall CustomizeObjectLayer::determineStartValues(__int64 a1) { __int64 v2; // rdi __int64 result; // rax unsigned int v4; // r14d __int64 v5; // rax __int64 v6; // r15 v2 = *(_QWORD *)(a1 + 688); if ( v2 ) { *(_BYTE *)(a1 + 752) = GameObject::getRelativeSpriteColor(v2, 1) != 0; *(_BYTE *)(a1 + 753) = GameObject::getRelativeSpriteColor(*(_QWORD *)(a1 + 688), 2) != 0; result = *(unsigned __int8 *)(*(_QWORD *)(a1 + 688) + 1020LL); *(_BYTE *)(a1 + 754) = result; return result; } *(_BYTE *)(a1 + 754) = 1; result = sub_1007FEF90(*(_QWORD *)(a1 + 696)); if ( (_DWORD)result ) { v4 = 0; while ( 1 ) { v5 = sub_1007FEFE0(*(_QWORD *)(a1 + 696), v4); v6 = v5; if ( *(_BYTE *)(a1 + 752) != 1 ) break; if ( !*(_BYTE *)(a1 + 753) ) goto LABEL_9; LABEL_10: if ( !*(_BYTE *)(v6 + 1020) ) *(_BYTE *)(a1 + 754) = 0; ++v4; result = sub_1007FEF90(*(_QWORD *)(a1 + 696)); if ( v4 >= (unsigned int)result ) return result; } *(_BYTE *)(a1 + 752) = GameObject::getRelativeSpriteColor(v5, 1) != 0; if ( (*(_BYTE *)(a1 + 753) & 1) != 0 ) goto LABEL_10; LABEL_9: *(_BYTE *)(a1 + 753) = GameObject::getRelativeSpriteColor(v6, 2) != 0; goto LABEL_10; } return result; }