// // KeybindingsLayer::actionsToShow from 0x995c1c to 0x995ed4 (696 bytes) // // 2 xrefs: // > @ 0xb5eb8 // > @ 0x1474f90 // // 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 12:58:01 +0000 // _QWORD *__usercall KeybindingsLayer::actionsToShow@(KeybindingsLayer *this@, __int64 a2@, _QWORD *a3@) { int v5; // w28 __int64 v6; // x0 _BOOL4 v7; // w26 char *v9; // x21 char *v10; // x23 unsigned int v11; // w19 size_t v12; // x0 int v13; // w22 _DWORD *v14; // x0 char *v15; // x0 unsigned __int64 v16; // x19 char *v18; // [xsp+78h] [xbp+78h] __int64 v19[2]; // [xsp+80h] [xbp+80h] BYREF void *v20; // [xsp+90h] [xbp+90h] void *v21; // [xsp+98h] [xbp+98h] char *v22; // [xsp+A0h] [xbp+A0h] char v23[16]; // [xsp+B0h] [xbp+B0h] BYREF void *v24; // [xsp+C0h] [xbp+C0h] __int64 v25; // [xsp+C8h] [xbp+C8h] a3[1] = 0; v5 = a2; v6 = _stack_chk_guard; a3[2] = 0; *a3 = 0; v25 = v6; v7 = *((_DWORD *)this + 296) == a2; if ( *((_DWORD *)this + 296) != (_DWORD)a2 ) goto LABEL_6; a2 = *((_BYTE *)this + 1160) >> 1; if ( (*((_BYTE *)this + 1160) & 1) != 0 ) a2 = *((_QWORD *)this + 146); if ( a2 ) { LABEL_6: v9 = (char *)&unk_116C380; v10 = (char *)this + 1160; if ( v7 ) goto LABEL_10; LABEL_7: if ( *((_DWORD *)v9 + 1) == v5 ) { LABEL_12: v14 = (_DWORD *)a3[1]; if ( v14 == (_DWORD *)a3[2] ) { std::vector::__push_back_slow_path((__int64)a3, v9); } else { LODWORD(a2) = *(_DWORD *)v9; if ( v14 ) { *v14 = a2; v14 = (_DWORD *)a3[1]; } a3[1] = v14 + 1; } } while ( 1 ) { v9 += 8; if ( v9 == "16KeybindingsLayer" ) return a3; if ( !v7 ) goto LABEL_7; LABEL_10: v11 = *(_DWORD *)v9; v18 = (char *)GJKeybindManager::actionToString((GJKeybindManager *)*(unsigned int *)v9, a2); v19[0] = 0; v19[1] = 0; v20 = nullptr; v12 = strlen(v18); std::string::__init(v19, v18, v12); v13 = (unsigned __int8)sub_994B7C((__int64)v19, (__int64)v10); if ( (v19[0] & 1) != 0 ) { operator delete(v20); if ( v13 ) goto LABEL_12; } else if ( v13 ) { goto LABEL_12; } (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 137) + 16LL))(*((_QWORD *)this + 137), v11); v15 = (char *)v21; a2 = (v22 - (_BYTE *)v21) >> 2; if ( a2 ) break; if ( v21 ) { LABEL_23: if ( v22 != v15 ) v22 += 4 * ~((unsigned __int64)(v22 - 4 - v15) >> 2); operator delete(v15); LABEL_26: if ( v13 ) goto LABEL_12; } } v16 = 0; do { GJKeybindManager::chordToString((GJKeybindManager *)*(unsigned int *)&v15[4 * v16], a2); v13 = (unsigned __int8)sub_994B7C((__int64)v23, (__int64)v10); LODWORD(a2) = (unsigned __int8)v23[0]; if ( (v23[0] & 1) != 0 ) operator delete(v24); ++v16; v15 = (char *)v21; if ( v13 ) break; LODWORD(a2) = (_DWORD)v22 - (_DWORD)v21; } while ( v16 < (v22 - (_BYTE *)v21) >> 2 ); if ( !v21 ) goto LABEL_26; goto LABEL_23; } return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source