//
// ThreadRequestPopup::ccTouchEnded from 0x752704 to 0x7527ac (168 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'ThreadRequestPopup::ccTouchEnded @ 0x7527b8
//
// 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:58:52 +0000
//
int __fastcall ThreadRequestPopup::ccTouchEnded(_DWORD *a1, int a2)
{
const cocos2d::CCPoint *v4; // r10
int v5; // r2
int i; // r9
int v7; // r0
int v8; // r0
int *v9; // r0
int v11; // [sp+4h] [bp-20h]
_BYTE v12[8]; // [sp+Ch] [bp-18h] BYREF
_BYTE v13[8]; // [sp+14h] [bp-10h] BYREF
if ( a1[125] != *(_DWORD *)(a2 + 52) )
{
v4 = (const cocos2d::CCPoint *)a1[115];
cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v13);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v12, v4);
v5 = -1227133513;
for ( i = 0; ; ++i )
{
v7 = a1[132];
if ( i >= ((a1[133] - v7) >> 2) * v5 )
break;
v11 = v5;
v8 = cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(v7 + 28 * i + 8), (const cocos2d::CCPoint *)v12);
v5 = v11;
if ( v8 )
{
v9 = LevelBadgePopup::create(*(LevelBadgePopup **)(a1[132] + 28 * i), *(_BYTE *)(a1[132] + 28 * i + 4), a1[132]);
(*(void (__fastcall **)(int *))(*v9 + 656))(v9);
return FLAlertLayer::ccTouchEnded((int)a1, a2);
}
}
}
return FLAlertLayer::ccTouchEnded((int)a1, a2);
}