// // SetupAreaMoveTriggerPopup::onMode from 0x1004d0040 to 0x1004d01c8 (392 bytes) // // 1 xrefs: // > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x1004cfc87 // // 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:31:11 +0000 // __int64 __fastcall SetupAreaMoveTriggerPopup::onMode(_QWORD *a1, __int64 a2) { unsigned int v3; // eax int v4; // ecx int v5; // r15d int v6; // edx int v7; // ecx float v8; // xmm0_4 __int64 result; // rax unsigned int v10; // r15d __int64 v11; // r12 __int64 v12; // r13 const char *v13; // rsi float v14; // [rsp+4h] [rbp-2Ch] v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); v4 = 1; if ( v3 - 2 < 4 || (v5 = 0, v4 = 2, (int)v3 >= 2) ) v5 = v4; if ( v3 - 1 < 7 && (v6 = 85, _bittest(&v6, v3 - 1)) || v3 == 8 ) { v14 = 1.0; if ( v3 > 6 ) goto LABEL_18; } else { v14 = 0.0; if ( v3 > 6 ) goto LABEL_18; } v7 = 76; if ( _bittest(&v7, v3) ) { LABEL_11: v8 = 1.0; goto LABEL_12; } LABEL_18: if ( v3 == 7 ) goto LABEL_11; v8 = 0.0; LABEL_12: (*(void (__fastcall **)(_QWORD *, __int64, bool))(*a1 + 1352LL))(a1, 99, v5 == 0); SetupTriggerPopup::valueChanged(a1, 262, (float)v5); SetupTriggerPopup::valueChanged(a1, 276, v14); SetupTriggerPopup::valueChanged(a1, 283, v8); result = sub_1007FEF90(a1[127]); if ( (_DWORD)result ) { v10 = 0; do { v11 = sub_1007FEFE0(a1[127], v10); v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 1072LL))(v11); LODWORD(v11) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 64LL))(v11); v13 = "GJ_button_04.png"; if ( (_DWORD)v11 == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) ) v13 = "GJ_button_02.png"; ButtonSprite::updateBGImage(v12, (__int64)v13); ++v10; result = sub_1007FEF90(a1[127]); } while ( v10 < (unsigned int)result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source