// // ControllerInputNode::refreshVisuals from 0x1004ab228 to 0x1004ab4c4 (668 bytes) // // 3 xrefs: // > ControllerInputNode::init @ 0x1004ab160 // > sub_1004AB194 @ 0x1004ab1d0 // > sub_1004AB5F4 @ 0x1004ab5f8 // // 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:06:07 +0000 // __int64 __fastcall ControllerInputNode::refreshVisuals(__int64 a1) { __int64 v2; // x21 int *v3; // x22 unsigned __int64 v4; // x20 int v5; // w23 int v6; // w24 __int64 v7; // x1 __int64 v8; // x1 __int64 v9; // x23 __int64 i; // x25 __int64 v11; // x0 int v12; // w21 __int64 result; // x0 __int64 v14; // x22 float v15; // s8 __int64 v16; // x0 unsigned __int8 v17; // w27 __int64 v18; // x1 __int64 v19; // x0 unsigned int *v20; // x9 __int64 v21; // x8 _QWORD *v22; // x26 unsigned __int64 v23; // x24 __int64 v24; // x8 char v25; // [xsp+17h] [xbp-79h] BYREF _QWORD v26[2]; // [xsp+18h] [xbp-78h] v2 = 0; v3 = (int *)&unk_10098119C; v26[0] = 0; v26[1] = 0; do { v4 = (unsigned int)*(v3 - 1); v5 = *v3; v6 = *(_DWORD *)(a1 + 332); if ( *v3 != 1 ) { if ( !v5 ) { if ( (_DWORD)v4 == v6 ) v7 = 255; else v7 = 50; if ( (_DWORD)v4 == v6 ) v4 = (unsigned __int64)&unk_10076F7CB; else v4 = (unsigned __int64)&unk_10076F7CE; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(*(_QWORD *)(a1 + 352) + v2) + 912LL))( *(_QWORD *)(*(_QWORD *)(a1 + 352) + v2), v7); (*(void (__fastcall **)(_QWORD, unsigned __int64))(**(_QWORD **)(*(_QWORD *)(a1 + 352) + v2) + 960LL))( *(_QWORD *)(*(_QWORD *)(a1 + 352) + v2), v4); goto LABEL_17; } if ( (_DWORD)v4 == v6 ) v8 = 255; else v8 = 80; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(*(_QWORD *)(a1 + 352) + v2) + 912LL))( *(_QWORD *)(*(_QWORD *)(a1 + 352) + v2), v8); } if ( (_DWORD)v4 == v6 ) *((_DWORD *)v26 + v5) = v4; LABEL_17: v3 += 8; v2 += 8; } while ( v2 != 168 ); v9 = a1 + 376; for ( i = 1; i != 4; ++i ) { v11 = *(_QWORD *)(v9 + 8 * i); if ( v11 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 520LL))(v11); v25 = 0; v12 = *((_DWORD *)v26 + i); if ( v12 ) result = KeybindingsLayer::buildControllerGlyph(*((_DWORD *)v26 + i), &v25); else result = (__int64)cocos2d::CCSprite::createWithSpriteFrameName(qword_100981438[i]); v14 = result; *(_QWORD *)(v9 + 8 * i) = result; if ( result ) { v15 = flt_10076F7D4[i]; v16 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 328LL))(result); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v14 + 160LL))(v14, v15 / *(float *)(v16 + 4)); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 184LL))(v14, a1 + 408 + 8 * i); if ( v12 ) v17 = -1; else v17 = 50; if ( v12 ) v18 = 255; else v18 = 50; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 912LL))(v14, v18); v19 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 488LL))(v14); if ( v19 ) { v20 = *(unsigned int **)(v19 + 56); v21 = *v20; if ( (_DWORD)v21 ) { v22 = *((_QWORD **)v20 + 2); v23 = (unsigned __int64)&v22[v21 - 1]; do { if ( !*v22 ) break; (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v22 + 912LL))(*v22, v17); ++v22; } while ( (unsigned __int64)v22 <= v23 ); } } v24 = 0xFFFFFF; if ( !v12 ) v24 = 9868950; v4 = v24 | v4 & 0xFFFFFFFFFF000000LL; KeybindingsLayer::tintGlyph(v14, v4); result = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v14, 1); } } return result; }