//
// KeybindingsLayer::onEditBinding from 0x589494 to 0x589514 (128 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:53:00 +0000
//
char **__fastcall KeybindingsLayer::onEditBinding(KeybindingsLayer *this, cocos2d::CCObject *a2, int a3, int a4)
{
unsigned int v5; // r0
int v6; // r5
int v7; // r8
int v8; // r0
int v9; // r8
cocos2d::CCObject *v11; // [sp+0h] [bp+0h] BYREF
cocos2d::CCObject *v12; // [sp+4h] [bp+4h]
int v13; // [sp+8h] [bp+8h]
int v14; // [sp+Ch] [bp+Ch]
v11 = this;
v12 = a2;
v13 = a3;
v14 = a4;
v5 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v6 = v5 & 0xFFFFFF;
v7 = HIBYTE(v5);
(*(void (__fastcall **)(cocos2d::CCObject **))(**((_DWORD **)this + 189) + 8))(&v11);
if ( v7 < (v12 - v11) >> 2 )
{
v8 = *((_DWORD *)this + 191);
v9 = *((_DWORD *)v11 + v7);
if ( v8 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v8 + 580))(v8, 0);
(*(void (__fastcall **)(KeybindingsLayer *, int, int))(*(_DWORD *)this + 768))(this, v6, v9);
}
return std::__vector_base::~__vector_base((char **)&v11);
}