// // sub_1005015C4 from 0x1005015c4 to 0x10050170c (328 bytes) // // 1 xrefs: // > ThreadViewPopup::ccTouchEnded @ 0x1005015a0 // // 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:06:54 +0000 // __int64 __fastcall sub_1005015C4(__int64 result, float32x2_t *a2) { __int64 *v2; // x19 __int64 v3; // x8 __int64 v4; // x20 __int64 v5; // x22 __int64 v6; // x0 __int64 v7; // x0 float v8[4]; // [xsp+8h] [xbp-48h] BYREF __int64 v9; // [xsp+18h] [xbp-38h] BYREF __int64 v10; // [xsp+20h] [xbp-30h] BYREF float v11; // [xsp+28h] [xbp-28h] BYREF if ( *(_QWORD *)(result + 824) ) { v2 = (__int64 *)result; if ( *(_QWORD *)(result + 1072) != *(_QWORD *)(result + 1080) ) { cocos2d::CCTouch::getLocation(a2, &v11); cocos2d::CCNode::convertToWorldSpace(v2[103], (__int64)&unk_1009F83D0, &v10); sub_100026438(&v9, (double *)(v2[103] + 424)); sub_1000262CC(v8, *(float *)&v10, *((float *)&v10 + 1), *(float *)&v9, *((float *)&v9 + 1)); result = sub_1000265E4(v8, &v11); if ( (_DWORD)result ) { result = (__int64)cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v2[103] + 416), (__int64)&v11, v8); v3 = v2[134]; if ( (int)(-1227133513 * ((unsigned __int64)(v2[135] - v3) >> 2)) >= 1 ) { v4 = 0; v5 = 0; while ( 1 ) { result = sub_1000265E4((float *)(v3 + v4 + 8), v8); if ( (_DWORD)result ) break; ++v5; v3 = v2[134]; v4 += 28; if ( v5 >= (int)(-1227133513 * ((unsigned __int64)(v2[135] - v3) >> 2)) ) return result; } v6 = v2[116]; if ( v6 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 1160LL))(v6, 0); v7 = sub_100501714(*(unsigned int *)(v2[134] + v4), *(unsigned __int8 *)(v2[134] + v4 + 4)); return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7); } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source