// // ControllerInputNode::refreshVisuals from 0x765104 to 0x7652fe (506 bytes) // // 3 xrefs: // > ControllerInputNode::onButton @ 0x76533c // > ControllerInputNode::setActiveKey @ 0x765378 // > ControllerInputNode::init @ 0x7657ee // // 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:59:07 +0000 // int __fastcall ControllerInputNode::refreshVisuals(ControllerInputNode *this) { int v2; // r4 const char *v3; // r1 int v4; // r11 bool *v5; // r2 int v6; // r10 _BOOL4 v7; // r6 int v8; // r1 char *v9; // r1 int v10; // r1 int *v11; // r10 char *v12; // r9 float *v13; // r7 int i; // r6 int v15; // r8 int result; // r0 int v17; // r4 float v18; // s16 void (__fastcall *v19)(int, _DWORD); // r11 int v20; // r0 int v21; // r11 int v22; // r0 char *v23; // r3 _DWORD *v24; // r2 int v25; // r3 int *v26; // r2 int *j; // r12 int v28; // r0 int *v29; // r2 int v30; // t1 int *v31; // [sp+18h] [bp-24h] int *v32; // [sp+1Ch] [bp-20h] char v33; // [sp+23h] [bp-19h] BYREF _DWORD v34[6]; // [sp+24h] [bp-18h] BYREF v2 = 0; memset(v34, 0, 0x10u); do { v4 = *(_DWORD *)((char *)&unk_C74AD4 + 7 * v2); v5 = (bool *)(v4 - *((_DWORD *)this + 68)); v6 = *(_DWORD *)((char *)&unk_C74AD4 + 7 * v2 + 4); v7 = v4 == *((_DWORD *)this + 68); if ( v6 ) { if ( v6 != 1 ) { if ( v4 == *((_DWORD *)this + 68) ) v10 = 255; else v10 = 80; (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(*((_DWORD *)this + 71) + v2) + 456))( *(_DWORD *)(*((_DWORD *)this + 71) + v2), v10); } if ( v7 ) v34[v6] = v4; } else { if ( v4 == *((_DWORD *)this + 68) ) v8 = 255; else v8 = 50; (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(*((_DWORD *)this + 71) + v2) + 456))( *(_DWORD *)(*((_DWORD *)this + 71) + v2), v8); if ( v7 ) v9 = &byte_BF09A4; else v9 = &byte_BF09A7; (*(void (__fastcall **)(_DWORD, char *))(**(_DWORD **)(*((_DWORD *)this + 71) + v2) + 480))( *(_DWORD *)(*((_DWORD *)this + 71) + v2), v9); } v2 += 4; } while ( v2 != 84 ); v11 = (int *)((char *)this + 300); v12 = (char *)this + 320; v13 = (float *)&unk_BF09B0; for ( i = 1; i != 4; ++i ) { if ( *v11 ) (*(void (__fastcall **)(int))(*(_DWORD *)*v11 + 260))(*v11); v33 = 0; v15 = v34[i]; if ( v15 ) result = KeybindingsLayer::buildControllerGlyph((KeybindingsLayer *)v34[i], &v33, v5); else result = cocos2d::CCSprite::createWithSpriteFrameName(*((cocos2d::CCSprite **)&unk_C74D20 + i), v3); v17 = result; *v11++ = result; if ( result ) { v18 = *v13; v19 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)result + 80); v20 = (*(int (__fastcall **)(int))(*(_DWORD *)result + 164))(result); v19(v17, v18 / *(float *)(v20 + 4)); (*(void (__fastcall **)(int, char *))(*(_DWORD *)v17 + 92))(v17, v12); if ( v15 ) v21 = 255; else v21 = 50; (*(void (__fastcall **)(int, int))(*(_DWORD *)v17 + 456))(v17, v21); v22 = (*(int (__fastcall **)(int))(*(_DWORD *)v17 + 244))(v17); if ( v22 ) { v24 = *(_DWORD **)(v22 + 52); if ( *v24 ) { v25 = *v24 + 0x40000000; v26 = (int *)v24[3]; for ( j = &v26[v25 - 1]; v26 <= j; j = v31 ) { v30 = *v26; v29 = v26 + 1; v28 = v30; if ( !v30 ) break; v32 = v29; v31 = j; (*(void (__fastcall **)(int, int))(*(_DWORD *)v28 + 456))(v28, v21); v26 = v32; } } } if ( v15 ) v23 = &byte_BF09A4; else v23 = &byte_BF09A7; KeybindingsLayer::tintGlyph( v17, (unsigned __int8)*v23 | ((unsigned __int8)v23[1] << 8) | ((unsigned __int8)v23[2] << 16)); result = (*(int (__fastcall **)(ControllerInputNode *, int, int))(*(_DWORD *)this + 232))(this, v17, 1); } ++v13; v12 += 8; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source