//
// RateLevelLayer::onClose from 0x511032 to 0x51105e (44 bytes)
//
// 2 xrefs:
// > RateLevelLayer::onRate @ 0x511068
// > RateLevelLayer::keyBackClicked @ 0x511070
//
// 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:51:32 +0000
//
int (__fastcall ***__fastcall RateLevelLayer::onClose(RateLevelLayer *this, cocos2d::CCObject *a2))(_DWORD)
{
int (__fastcall ***result)(_DWORD); // r0
(*(void (__fastcall **)(RateLevelLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
(*(void (__fastcall **)(RateLevelLayer *, int))(*(_DWORD *)this + 264))(this, 1);
result = *((int (__fastcall ****)(_DWORD))this + 134);
if ( result )
return (int (__fastcall ***)(_DWORD))(**result)(result);
return result;
}