//
// KeybindingsLayer::onAddBinding from 0x99490c to 0x99496c (96 bytes)
//
// 3 xrefs:
// > ??> @ 0xd8580
// > KeybindingsLayer::buildContentForTab @ 0x996268
// > ??> @ 0x1546760
//
// 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
//
__int64 __fastcall KeybindingsLayer::onAddBinding(KeybindingsLayer *this, cocos2d::CCObject *a2)
{
unsigned int v3; // w20
__int64 v4; // x0
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *((_QWORD *)this + 139);
if ( v4 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1160LL))(v4, 0);
return (*(__int64 (__fastcall **)(KeybindingsLayer *, _QWORD, _QWORD))(*(_QWORD *)this + 1536LL))(this, v3, 0);
}