// // sub_1005262B0 from 0x1005262b0 to 0x1005263b4 (260 bytes) // // 1 xrefs: // > SectionedContentNode::addChild @ 0x100526bac // // 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 11:07:15 +0000 // __int64 __fastcall sub_1005262B0(__int64 result, _DWORD *a2, __int64 a3, __int64 a4) { __int64 v7; // x22 float v8; // s0 float v9; // s1 int v10; // w23 __int64 v11; // x0 if ( a2 ) { v7 = result; if ( *(float *)(result + 520) <= 0.0 ) { result = *(_QWORD *)(result + 416); if ( result ) return cocos2d::CCNode::addChild(result, a2, a3, a4); } else { (*(void (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 240LL))(a2); v9 = *(float *)(v7 + 520); if ( v9 <= 0.0 ) v10 = 0; else v10 = vcvtms_s32_f32((float)-v8 / v9); if ( __dynamic_cast( a2, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCMenuItem, 0) ) { v11 = sub_100526140(v7, v10); } else { v11 = (__int64)sub_100526004(v7, v10); } return (*(__int64 (__fastcall **)(__int64, _DWORD *, __int64, __int64))(*(_QWORD *)v11 + 472LL))(v11, a2, a3, a4); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source