// // sub_10039B614 from 0x10039b614 to 0x10039b7b4 (416 bytes) // // 1 xrefs: // > sub_10039C634 @ 0x10039c6b8 // // 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:03:43 +0000 // __int64 __fastcall sub_10039B614(__int64 a1, __int64 a2) { __int64 v3; // x0 __int64 v4; // x0 unsigned int v5; // w20 __int64 v6; // x0 __int64 v7; // x22 float v8; // s8 float v9; // s9 float v10; // s8 float v11; // s9 float v12; // s10 float v13; // s9 float v14; // s10 __int64 v15; // x0 double v17[2]; // [xsp+0h] [xbp-60h] BYREF __int64 v18; // [xsp+10h] [xbp-50h] BYREF float32x2_t v19; // [xsp+18h] [xbp-48h] BYREF cocos2d::CCTouch::getLocationInView(a2, &v19); v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::convertToGL(v3, &v19, (float *)v17); sub_10002630C(&v19, v17); v4 = *(_QWORD *)(a1 + 592); if ( !v4 || !(unsigned int)sub_1002E757C(v4) || !(unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 592)) ) return 0; v5 = 0; while ( 1 ) { v6 = sub_1002E75A0(*(_QWORD *)(a1 + 592), v5); if ( v6 ) { v7 = v6; cocos2d::CCNode::convertToNodeSpace(v6, (__int64)&v19, &v18); v8 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7); v9 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 328LL))(v7); v10 = v8 - (float)(v9 * *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 304LL))(v7)); v11 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7) + 4); v12 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 328LL))(v7) + 4); v13 = v11 - (float)(v12 * *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 304LL))(v7) + 4)); v14 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 328LL))(v7); v15 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 328LL))(v7); sub_1000262CC((float *)v17, v10, v13, v14, *(float *)(v15 + 4)); sub_10002630C(v17, &dbl_1009F6DD0); if ( sub_1000265E4((float *)v17, (float *)&v18) ) break; } if ( ++v5 >= (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 592)) ) return 0; } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source