// // SetupAreaMoveTriggerPopup::onMode from 0x1004d4840 to 0x1004d49c8 (392 bytes) // // 1 xrefs: // > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x1004d43d6 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall SetupAreaMoveTriggerPopup::onMode(SetupAreaMoveTriggerPopup *a1, cocos2d::CCObject *a2) { unsigned int v3; // eax int v4; // ecx int v5; // r15d int v6; // edx int v7; // ecx float v8; // xmm0_4 unsigned int v9; // r15d __int64 v10; // r12 ButtonSprite *v11; // r13 const char *v12; // rsi float v13; // [rsp+4h] [rbp-2Ch] v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(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 ) { v13 = 1.0; if ( v3 > 6 ) goto LABEL_18; } else { v13 = 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 *)(SetupAreaMoveTriggerPopup *, __int64, bool))a1->toggleGroup)(a1, 99, v5 == 0); SetupTriggerPopup::valueChanged(a1, 262, (float)v5); SetupTriggerPopup::valueChanged(a1, 276, v13); SetupTriggerPopup::valueChanged(a1, 283, v8); if ( (unsigned int)sub_100720070(a1->m_modeButtons) ) { v9 = 0; do { v10 = sub_1007200C0(a1->m_modeButtons, v9); v11 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 1056LL))(v10); LODWORD(v10) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 64LL))(v10); v12 = "GJ_button_04.png"; if ( (_DWORD)v10 == ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) ) v12 = "GJ_button_02.png"; ButtonSprite::updateBGImage(v11, v12); ++v9; } while ( v9 < (unsigned int)sub_100720070(a1->m_modeButtons) ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source