//
// PlayLayer::getEndPosition from 0x3ffa08 to 0x3ffa3e (54 bytes)
//
// 4 xrefs:
// > PlayLayer::showCompleteText @ 0x3ffd00
// > PlayLayer::spawnCircle @ 0x3ffeaa
// > PlayLayer::showCompleteEffect @ 0x40348c
// > PlayLayer::levelComplete @ 0x4082ac
//
// 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:47:23 +0000
//
PlayLayer *__fastcall PlayLayer::getEndPosition(PlayLayer *this, int a2)
{
int v3; // r0
cocos2d::CCPoint *v4; // r0
const cocos2d::CCPoint *v5; // r1
if ( *(_BYTE *)(a2 + 10614) || (v3 = *(_DWORD *)(a2 + 10832)) == 0 || *(_DWORD *)(a2 + 12296) )
{
v4 = this;
v5 = (const cocos2d::CCPoint *)(a2 + 12288);
}
else
{
v5 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v3 + 96))(v3);
v4 = this;
}
cocos2d::CCPoint::CCPoint(v4, v5);
return this;
}