//
// RateDemonLayer::onClose from 0x615f84 to 0x615fb0 (44 bytes)
//
// 3 xrefs:
// > RateDemonLayer::keyBackClicked @ 0x615fb2
// > RateDemonLayer::onClosePopup @ 0x616158
// > RateDemonLayer::onRate @ 0x6166c4
//
// 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:54:55 +0000
//
int (__fastcall ***__fastcall RateDemonLayer::onClose(RateDemonLayer *this, cocos2d::CCObject *a2))(_DWORD)
{
int (__fastcall ***result)(_DWORD); // r0
(*(void (__fastcall **)(RateDemonLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
(*(void (__fastcall **)(RateDemonLayer *, int))(*(_DWORD *)this + 264))(this, 1);
result = *((int (__fastcall ****)(_DWORD))this + 140);
if ( result )
return (int (__fastcall ***)(_DWORD))(**result)(result);
return result;
}