// // EditorUI::editButton2Usable from 0x10047bc3c to 0x10047be80 (580 bytes) // // 1 xrefs: // > EditorUI::toggleEditObjectButton @ 0x100473b84 // // 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:43 +0000 // __int64 __fastcall EditorUI::editButton2Usable(__int64 a1) { int v2; // w20 __int64 result; // x0 char v5; // w8 __int64 v6; // x0 _DWORD *v7; // x8 int v8; // w9 unsigned int v9; // w20 __int64 v10; // x0 unsigned int v11; // w8 unsigned int v12; // w20 __int64 v13; // x0 int v14; // w21 int v15; // [xsp+4h] [xbp-2Ch] BYREF int v16; // [xsp+8h] [xbp-28h] BYREF int v17; // [xsp+Ch] [xbp-24h] BYREF v16 = -1; v17 = -1; v15 = -1; EditorUI::getGroupInfo(a1, *(_DWORD **)(a1 + 1496), *(_QWORD *)(a1 + 896), &v17, &v16, &v15); v2 = v17; if ( v17 == -1 && v16 == -1 ) return 0; if ( v16 == 5 ) return 1; v5 = sub_10047BE80(); result = 1; if ( (v5 & 1) == 0 && v15 != 30 ) { if ( v2 <= 2064 ) { if ( v2 <= 1703 ) { if ( v2 == 1594 || v2 == 1615 ) return result; } else if ( v2 == 1704 || v2 == 1751 || v2 == 2063 ) { return result; } } else { if ( (unsigned int)(v2 - 2903) <= 0x15 && ((1 << (v2 - 87)) & 0x3F7FD7) != 0 || v2 == 2065 ) return result; if ( v2 == 3643 ) return 0; } v6 = *(_QWORD *)(a1 + 1496); if ( !v6 ) goto LABEL_30; if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v6 + 1800LL))(v6) == 30 ) return 1; v7 = *(_DWORD **)(a1 + 1496); v8 = v7[257]; result = 1; if ( v8 != 1615 && v8 != 2065 ) { if ( ((*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v7 + 1736LL))(*(_QWORD *)(a1 + 1496)) & 1) != 0 || ((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1496) + 1728LL))(*(_QWORD *)(a1 + 1496)) & 1) != 0 || ((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1496) + 1632LL))(*(_QWORD *)(a1 + 1496)) & 1) != 0 ) { return 1; } LABEL_30: if ( (sub_10047BEF8() & 1) != 0 ) return 1; if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 896)) ) { if ( !(unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 896)) ) return 1; v9 = 0; while ( 1 ) { v10 = sub_1002E75A0(*(_QWORD *)(a1 + 896), v9); if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v10 + 1728LL))(v10) ) break; ++v9; v11 = sub_1002E757C(*(_QWORD *)(a1 + 896)); result = 1; if ( v9 >= v11 ) return result; } } result = sub_1002E757C(*(_QWORD *)(a1 + 896)); if ( (_DWORD)result ) { if ( !(unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 896)) ) return 1; v12 = 0; do { v13 = sub_1002E75A0(*(_QWORD *)(a1 + 896), v12); v14 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 1736LL))(v13); if ( v14 ) break; ++v12; } while ( v12 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 896)) ); return v14 ^ 1u; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source