//
// ReviewChoiceSheet::onChoice from 0xc3f278 to 0xc3f370 (248 bytes)
//
// 3 xrefs:
// > ??> @ 0xba970
// > ReviewChoiceSheet::init @ 0xc41918
// > ??> @ 0x1545650
//
// 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 13:04:56 +0000
//
__int64 __fastcall ReviewChoiceSheet::onChoice(ReviewChoiceSheet *this, cocos2d::CCObject *a2)
{
unsigned int v3; // w21
__int64 *String; // x0
__int64 v5; // x0
cocos2d::CCTouchDispatcher *v6; // x0
void (__fastcall ***v7)(_QWORD, _QWORD, _QWORD, __int64 *); // x0
__int64 v9[2]; // [xsp+30h] [xbp+30h] BYREF
void *v10; // [xsp+40h] [xbp+40h]
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
String = *((__int64 **)this + 129);
if ( String )
{
String = CCTextInputNode::getString((CCTextInputNode *)String, v9);
}
else
{
v9[0] = 0;
v9[1] = 0;
v10 = nullptr;
}
v5 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)String);
v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, this);
v7 = *((void (__fastcall ****)(_QWORD, _QWORD, _QWORD, __int64 *))this + 127);
if ( v7 )
(**v7)(v7, *((unsigned int *)this + 256), v3, v9);
(*(void (__fastcall **)(ReviewChoiceSheet *, _QWORD))(*(_QWORD *)this + 1368LL))(this, 0);
if ( (v9[0] & 1) != 0 )
operator delete(v10);
return _stack_chk_guard;
}