// // sub_10047C974 from 0x10047c974 to 0x10047ca98 (292 bytes) // // 2 xrefs: // > EditorUI::checkLiveColorSelect @ 0x1001a619c // > EditorUI::onEditColor @ 0x100471ca4 // // 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:44 +0000 // __int64 __fastcall sub_10047C974(__int64 *a1) { __int64 result; // x0 __int64 v3; // x21 __int64 v4; // x22 __int64 v5; // x20 bool v6; // zf __int64 v8; // x0 __int64 v9; // x0 _QWORD *v10; // x0 __int64 v11; // x0 unsigned int v12; // w20 __int64 v13; // x0 __int64 v14; // [xsp+8h] [xbp-38h] BYREF __int64 v15; // [xsp+10h] [xbp-30h] BYREF __int64 v16; // [xsp+18h] [xbp-28h] BYREF v15 = 0; v16 = 0; v14 = 0; result = sub_10047C660((__int64)a1, &v16, &v15, &v14); v4 = v15; v3 = v16; v5 = v14; if ( v16 ) v6 = 0; else v6 = v15 == 0; if ( !v6 || v14 != 0 ) { v8 = a1[193]; if ( v8 ) { ColorSelectLiveOverlay::closeColorSelect(v8, 0); a1[193] = 0; } v9 = a1[194]; if ( v9 ) { HSVLiveOverlay::closeColorSelect(v9, 0); a1[194] = 0; } a1[193] = 0; if ( v5 ) v10 = (_QWORD *)sub_1001197DC(v5); else v10 = sub_100119878(v3, v4); a1[193] = (__int64)v10; v10[92] = a1 + 52; v10[71] = a1; result = (*(__int64 (__fastcall **)(_QWORD *))(*v10 + 1312LL))(v10); if ( !v5 ) { v11 = a1[187]; if ( v11 ) { return GameObject::updateObjectEditorColor(v11); } else { result = sub_1002E757C(a1[112]); if ( (_DWORD)result ) { result = sub_1002E757C(a1[112]); if ( (_DWORD)result ) { v12 = 0; do { v13 = sub_1002E75A0(a1[112], v12); GameObject::updateObjectEditorColor(v13); ++v12; result = sub_1002E757C(a1[112]); } while ( v12 < (unsigned int)result ); } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source