// // EditorUI::toggleDuplicateButton from 0x100473bd8 to 0x100473d04 (300 bytes) // // 1 xrefs: // > EditorUI::updateButtons @ 0x100472eb0 // // This function is hookable on this platform (idp: arm, 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 11:05:39 +0000 // __int64 __fastcall EditorUI::toggleDuplicateButton(__int64 *a1) { _BYTE *v2; // x0 int v3; // w8 __int16 *v4; // x21 __int64 v5; // x20 char v6; // w22 _BYTE *v7; // x0 __int64 v8; // x0 __int64 v9; // x8 _BYTE *v10; // x0 __int16 *v11; // x1 __int64 v12; // x20 if ( a1[187] ) { v2 = (_BYTE *)a1[141]; v2[408] = 1; LABEL_4: v4 = &word_10076F228; v5 = 255; v6 = 1; goto LABEL_5; } v3 = sub_1002E757C(a1[112]); v2 = (_BYTE *)a1[141]; v2[408] = v3 != 0; if ( v3 ) goto LABEL_4; v6 = 0; v4 = &word_10076F22B; v5 = 175; LABEL_5: (*(void (__fastcall **)(_BYTE *, __int16 *))(*(_QWORD *)v2 + 960LL))(v2, v4); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1[141] + 912LL))(a1[141], v5); v7 = (_BYTE *)a1[142]; v7[408] = v6; (*(void (__fastcall **)(_BYTE *, __int16 *))(*(_QWORD *)v7 + 960LL))(v7, v4); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1[142] + 912LL))(a1[142], v5); v8 = GameManager::sharedState(); v9 = *(char *)(v8 + 535); if ( v9 < 0 ) v9 = *(_QWORD *)(v8 + 520); v10 = (_BYTE *)a1[143]; v10[408] = v9 != 0; if ( v9 ) v11 = &word_10076F228; else v11 = &word_10076F22B; if ( v9 ) v12 = 255; else v12 = 175; (*(void (__fastcall **)(_BYTE *, __int16 *))(*(_QWORD *)v10 + 960LL))(v10, v11); return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1[143] + 912LL))(a1[143], v12); }
GD Web Decomp Icon

GD Web Decomp

Raw Source