// // GameObject::selectObject from 0x44bbec to 0x44bdb2 (454 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:48:34 +0000 // int __fastcall GameObject::selectObject(int *a1, int a2) { unsigned __int8 *v3; // r0 int v4; // r6 int v5; // r9 int result; // r0 void (__fastcall *v7)(int, char *); // r12 int v8; // r0 int (__fastcall *v9)(int, char *); // r12 int v10; // [sp+4h] [bp-10h] BYREF char v11; // [sp+8h] [bp-Ch] BYREF char v12; // [sp+9h] [bp-Bh] char v13; // [sp+Ah] [bp-Ah] v10 = a2; if ( !*((_BYTE *)a1 + 989) ) { v3 = (unsigned __int8 *)(*(int (__fastcall **)(int *))(*a1 + 472))(a1); v4 = v3[1]; v5 = v3[2]; if ( (float)abs(*v3 - (unsigned __int8)v10) < 20.0 && (float)abs(v4 - BYTE1(v10)) < 20.0 && (float)abs(v5 - BYTE2(v10)) < 20.0 && !(_BYTE)v10 && BYTE1(v10) == 255 && !BYTE2(v10) ) { *(_WORD *)((char *)&v10 + 1) = 255; LOBYTE(v10) = -106; } } *((_BYTE *)a1 + 989) = 1; (*(void (__fastcall **)(int *, int *))(*a1 + 748))(a1, &v10); result = a1[189]; if ( result ) { v7 = *(void (__fastcall **)(int, char *))(*(_DWORD *)result + 480); v12 = (unsigned int)(float)((float)BYTE1(v10) * 0.8); v13 = (unsigned int)(float)((float)BYTE2(v10) * 0.8); v11 = (unsigned int)(float)((float)(unsigned __int8)v10 * 0.8); v7(result, &v11); v8 = a1[189]; v9 = *(int (__fastcall **)(int, char *))(*(_DWORD *)v8 + 548); v12 = (unsigned int)(float)((float)BYTE1(v10) * 0.8); v13 = (unsigned int)(float)((float)BYTE2(v10) * 0.8); v11 = (unsigned int)(float)((float)(unsigned __int8)v10 * 0.8); result = v9(v8, &v11); } if ( *((_BYTE *)a1 + 656) ) { result = (*(int (__fastcall **)(int *, int))(*a1 + 240))(a1, 999); if ( result ) return (*(int (__fastcall **)(int, int *))(*(_DWORD *)result + 536))(result, &v10); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source