// // GJBaseGameLayer::controlEventLink from 0x59d104 to 0x59d1ca (198 bytes) // // 2 xrefs: // > GJBaseGameLayer::controlTriggersWithControlID @ 0x5a1ac8 // > GJBaseGameLayer::controlTriggersInGroup @ 0x5b1e0a // // 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:53:14 +0000 // _DWORD *__fastcall GJBaseGameLayer::controlEventLink(_DWORD *result, int a2, int a3, int a4) { _DWORD *v5; // r5 unsigned int v8; // r10 int v9; // r3 int v10; // r4 int v11; // r4 int v13; // r4 int v14; // r1 int v15; // r1 char **v16; // r0 int v17; // r0 _DWORD *v18; // [sp+0h] [bp-Ch] int v19; // [sp+4h] [bp-8h] int v20; // [sp+4h] [bp-8h] v5 = (_DWORD *)result[268]; v18 = result + 269; LABEL_2: if ( v5 != v18 ) { v8 = 0; while ( 1 ) { while ( 1 ) { v9 = v5[7]; v10 = v5[6]; if ( v8 >= -1227133513 * ((v9 - v10) >> 2) ) { result = std::__tree_next *>(v5); v5 = result; goto LABEL_2; } v11 = v10 + 28 * v8; if ( a3 == -1 ? *(_DWORD *)(v11 + 4) == a2 : *(_DWORD *)(v11 + 8) == a3 ) break; LABEL_20: ++v8; } if ( a4 ) { if ( a4 == 1 ) { *(_BYTE *)(v11 + 12) = 1; } else if ( a4 == 2 ) { *(_BYTE *)(v11 + 12) = 0; } goto LABEL_20; } v13 = v11 + 16; while ( 1 ) { v14 = v13 - 16; if ( v9 == v13 + 12 ) break; v15 = *(_DWORD *)(v13 + 12); v16 = (char **)v13; v13 += 28; v19 = v9; *(_DWORD *)(v13 - 44) = v15; *(_DWORD *)(v13 - 40) = *(_DWORD *)(v13 - 12); *(_DWORD *)(v13 - 36) = *(_DWORD *)(v13 - 8); *(_BYTE *)(v13 - 32) = *(_BYTE *)(v13 - 4); sub_58B7E0(v16, (char **)v13); v9 = v19; } while ( 1 ) { v17 = v5[7]; if ( v14 == v17 ) break; v5[7] = v17 - 28; v20 = v14; std::__vector_base::~__vector_base((char **)(v17 - 12)); v14 = v20; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source