// // GJBaseGameLayer::transformAreaObjects from 0x100292a4c to 0x100292f04 (1208 bytes) // // 1 xrefs: // > GJBaseGameLayer::processAreaTransformGroupAction @ 0x100291298 // // 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:02:04 +0000 // __int64 __fastcall GJBaseGameLayer::transformAreaObjects( __int64 a1, __int64 a2, __int64 a3, int a4, float a5, float a6) { unsigned int *v12; // x9 __int64 v13; // x8 __int64 *v14; // x25 unsigned __int64 v15; // x26 __int64 v16; // x22 _BOOL4 v17; // w23 __int64 v18; // x24 double v19; // d0 float v20; // s8 float v21; // s9 float v22; // s10 float v23; // s11 _BOOL4 v24; // w0 float32x2_t v25; // kr00_8 float v26; // s10 float v27; // s12 float v28; // s14 int32x2_t v29; // d1 int32x2_t v30; // d0 float32x2_t v31; // d0 float v32; // s2 float v33; // s3 float v34; // s0 float v35; // s1 _QWORD v37[3]; // [xsp+10h] [xbp-F0h] BYREF float32x2_t v38; // [xsp+28h] [xbp-D8h] BYREF float v39; // [xsp+30h] [xbp-D0h] float v40; // [xsp+34h] [xbp-CCh] float v41; // [xsp+38h] [xbp-C8h] float v42; // [xsp+3Ch] [xbp-C4h] float32x2_t v43; // [xsp+40h] [xbp-C0h] BYREF _QWORD v44[3]; // [xsp+48h] [xbp-B8h] BYREF float32x2_t v45[2]; // [xsp+60h] [xbp-A0h] BYREF if ( GJBaseGameLayer::resetAreaObjectValues((_DWORD *)a1, a2, 1) ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1368LL))(a1, a2); (*(void (__fastcall **)(float32x2_t *__return_ptr, __int64))(*(_QWORD *)a2 + 1360LL))(v45, a2); (*(void (__fastcall **)(_QWORD, float32x2_t *))(**(_QWORD **)(a1 + 2040) + 184LL))(*(_QWORD *)(a1 + 2040), v45); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 2040) + 128LL))(*(_QWORD *)(a1 + 2040), a5); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 2040) + 144LL))(*(_QWORD *)(a1 + 2040), a6); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 2040) + 264LL))(*(_QWORD *)(a1 + 2040), 0.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 2040) + 280LL))(*(_QWORD *)(a1 + 2040), 0.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 2040) + 360LL))(*(_QWORD *)(a1 + 2040), 0.0); GJBaseGameLayer::prepareTransformParent(a1, 0); (*(void (__fastcall **)(_QWORD *__return_ptr))(**(_QWORD **)(a1 + 2040) + 824LL))(v44); sub_1000262EC(&v43); if ( a3 ) { v12 = *(unsigned int **)(a3 + 56); v13 = *v12; if ( (_DWORD)v13 ) { v14 = *((__int64 **)v12 + 2); v15 = (unsigned __int64)&v14[v13 - 1]; while ( 1 ) { v16 = *v14; if ( !*v14 ) return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1376LL))(a1, a3); if ( (*(_BYTE *)(v16 + 1304) & 1) == 0 ) break; LABEL_31: if ( (unsigned __int64)++v14 > v15 ) return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1376LL))(a1, a3); } (*(void (__fastcall **)(float32x2_t *__return_ptr, __int64))(*(_QWORD *)v16 + 1360LL))(&v38, *v14); sub_10002630C(&v43, (double *)&v38); v17 = GJBaseGameLayer::resetAreaObjectValues((_DWORD *)a1, v16, 1); *(_BYTE *)(v16 + 840) = 1; (*(void (__fastcall **)(float32x2_t *__return_ptr, __int64))(*(_QWORD *)v16 + 1360LL))(&v38, v16); sub_10002630C(&v43, (double *)&v38); v18 = *(_QWORD *)(a1 + 2072); *(float32x2_t *)&v19 = sub_10002632C(&v43, v45, &v38); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v18 + 184LL))(v18, &v38, v19); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 2072) + 128LL))( *(_QWORD *)(a1 + 2072), *(float *)(v16 + 1152)); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 2072) + 144LL))( *(_QWORD *)(a1 + 2072), *(float *)(v16 + 1156)); v20 = *(float *)(v16 + 972) + *(float *)(v16 + 676); v21 = *(float *)(v16 + 976) + *(float *)(v16 + 684); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 2072) + 376LL))(*(_QWORD *)(a1 + 2072), v20); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 2072) + 392LL))(*(_QWORD *)(a1 + 2072), v21); (*(void (__fastcall **)(_QWORD *__return_ptr))(**(_QWORD **)(a1 + 2072) + 800LL))(v37); cocos2d::CCAffineTransformConcat(&v38, v37, v44); v22 = v41 - v43.f32[0]; v23 = v42 - v43.f32[1]; v24 = GJBaseGameLayer::resetAreaObjectValues((_DWORD *)a1, v16, 1); if ( v22 == 0.0 && v23 == 0.0 ) { if ( !v24 ) { LABEL_18: v25 = v38; v26 = v39; v27 = v40; v28 = atan2f(v40, v39); *(float *)v30.i32 = atan2f(v25.f32[1], v25.f32[0]); *(float *)v29.i32 = (float)-(float)((float)(v28 * 57.296) + -90.0) - v20; *(float *)v30.i32 = (float)(*(float *)v30.i32 * -57.296) - v21; if ( *(float *)v29.i32 != 0.0 || *(float *)v30.i32 != 0.0 ) { v31 = vadd_f32((float32x2_t)vdup_lane_s32(v30, 0), *(float32x2_t *)(v16 + 684)); *(float32x2_t *)(v16 + 676) = vadd_f32((float32x2_t)vdup_lane_s32(v29, 0), *(float32x2_t *)(v16 + 676)); *(float32x2_t *)(v16 + 684) = v31; if ( a4 ) (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 1480LL))(v16, 0.0); if ( *(_DWORD *)(v16 + 920) != 7 && (*(_BYTE *)(v16 + 744) & 1) == 0 ) sub_1002FEBA4(v16); } v32 = *(float *)(v16 + 1152); v33 = sqrtf((float)(v25.f32[1] * v25.f32[1]) + (float)(v25.f32[0] * v25.f32[0])) - v32; v34 = *(float *)(v16 + 1156); v35 = sqrtf((float)(v27 * v27) + (float)(v26 * v26)) - v34; if ( v33 != 0.0 || v35 != 0.0 ) { *(float *)(v16 + 692) = v33 + *(float *)(v16 + 692); *(float *)(v16 + 700) = v33 + *(float *)(v16 + 700); *(float *)(v16 + 1152) = v32 + v33; *(float *)(v16 + 696) = v35 + *(float *)(v16 + 696); *(float *)(v16 + 704) = v35 + *(float *)(v16 + 704); *(float *)(v16 + 1156) = v34 + v35; *(_BYTE *)(v16 + 840) = 1; *(_BYTE *)(v16 + 864) = 1; if ( a4 ) (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 1456LL))(v16, 1.0); } if ( v17 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1368LL))(a1, v16); goto LABEL_31; } } else { if ( v23 != 0.0 ) { *(double *)(v16 + 952) = *(double *)(v16 + 952) + v23; *(float *)(v16 + 672) = v23 + *(float *)(v16 + 672); } sub_1002F7D78(v16); sub_1002F7D6C(v16); if ( v22 != 0.0 && (*(_BYTE *)(v16 + 708) & 1) == 0 ) { *(float *)(v16 + 668) = v22 + *(float *)(v16 + 668); *(double *)(v16 + 944) = *(double *)(v16 + 944) + v22; } } (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1368LL))(a1, v16); goto LABEL_18; } } return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1376LL))(a1, a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source