// // sub_100613A64 from 0x100613a64 to 0x100613de8 (900 bytes) // // 10 xrefs: // > sub_1006135F8 @ 0x100613984 // > sub_1006141FC @ 0x10061427c // > sub_1006145BC @ 0x100614628 // > sub_1006146B0 @ 0x10061472c // > sub_1006146B0 @ 0x10061476c // > sub_100614B8C @ 0x100614be8 // > sub_100614D44 @ 0x100614db4 // > sub_100614D44 @ 0x100614f20 // > sub_100615218 @ 0x10061528c // > sub_100615218 @ 0x1006153f4 // // 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:10:11 +0000 // __int64 __fastcall sub_100613A64(__int64 a1, __int64 a2, int a3) { __int64 *v6; // x24 int32x2_t *v7; // x21 int64x2_t *v8; // x20 int v9; // w8 __int64 result; // x0 __int64 v11; // x27 int v12; // w8 int v13; // w27 int v14; // w0 __int64 v15; // x8 __int64 v16; // x9 int v17; // w9 __int32 v19; // w0 int32x2_t v20; // d0 int v21; // w21 __int64 v22; // x22 int v23; // w0 __int64 v24; // x9 __int64 v25; // x10 __int64 v26; // x11 __int64 v27; // x11 int64x2_t v28; // q0 int64x2_t v29; // q1 const double *v30; // x9 __int64 v31; // x12 __int64 *v32; // x10 __int64 v33; // x8 __int64 v34; // t1 char v35[8]; // [xsp+8h] [xbp-98h] BYREF int v36; // [xsp+10h] [xbp-90h] int v37; // [xsp+18h] [xbp-88h] __int64 v38; // [xsp+20h] [xbp-80h] __int64 v39; // [xsp+30h] [xbp-70h] BYREF int v40; // [xsp+38h] [xbp-68h] v6 = (__int64 *)(a2 + 152); v7 = (int32x2_t *)(a2 + 648); v8 = (int64x2_t *)(a2 + 528); while ( 1 ) { LABEL_2: v9 = *(_DWORD *)(a2 + 128); if ( v9 == 3 ) { result = sub_1006139A0(a1, a2); if ( (result & 0x80000000) != 0 ) return result; v9 = *(_DWORD *)(a2 + 128); } if ( v9 == 4 ) break; LABEL_13: if ( v9 >= 2 ) { do { if ( sub_100612EC8(a1, (_QWORD *)a2, (__int64)&v39, -1) < 0 ) return 4294967294LL; *(float *)(a2 + 140) = *(float *)(a2 + 140) + (float)(8 * v40); v12 = *(_DWORD *)(a2 + 128); if ( v12 != 4 ) goto LABEL_22; v13 = *(_DWORD *)(a2 + 132); if ( v13 == (unsigned int)sub_1005FF274((__int64)&v39) ) goto LABEL_21; } while ( !(unsigned int)sub_1005FF248((__int64)&v39) ); if ( !a3 ) return 4294967294LL; sub_100552D14(a1, v8->i64); sub_100552CB4(a1, (__int64)v7); *(_DWORD *)(a2 + 128) = 2; if ( *(_DWORD *)(a2 + 8) ) goto LABEL_24; sub_100600804(a1, *(_QWORD *)(a2 + 104)); sub_100600704(a1, *(_QWORD *)(a2 + 112)); LABEL_21: v12 = *(_DWORD *)(a2 + 128); if ( v12 == 4 ) goto LABEL_34; LABEL_22: if ( v12 > 2 ) goto LABEL_34; } if ( *(_DWORD *)(a2 + 8) ) { LABEL_24: v14 = sub_1005FF274((__int64)&v39); v15 = *(unsigned int *)(a2 + 64); if ( (int)v15 < 1 ) { LODWORD(v16) = 0; } else { v16 = 0; while ( *(_DWORD *)(*(_QWORD *)(a2 + 88) + 4 * v16) != v14 ) { if ( v15 == ++v16 ) goto LABEL_2; } } if ( (_DWORD)v16 != (_DWORD)v15 ) { *(_DWORD *)(a2 + 132) = v14; *(_DWORD *)(a2 + 136) = v16; sub_1006004B4(v6, v14); *(_DWORD *)(a2 + 128) = 3; goto LABEL_34; } } else { result = sub_1006156D0(a1, a2, *(_QWORD *)(a2 + 104), *(_QWORD *)(a2 + 112), 0, 0, &v39); if ( (_DWORD)result ) return result; v17 = *(_DWORD *)(a2 + 136) + 1; *(_DWORD *)(a2 + 132) = *(_DWORD *)(a2 + 504); *(_DWORD *)(a2 + 136) = v17; LABEL_34: sub_1005FFEA8(a1, v6, &v39); } } while ( 1 ) { result = sub_100600500((__int64)v6, (__int64)v35); if ( (_DWORD)result == -139 ) return result; if ( (_DWORD)result == -1 ) return 4294967293LL; if ( (int)result <= 0 ) { v9 = *(_DWORD *)(a2 + 128); goto LABEL_13; } v11 = v38; result = sub_100611BD0(a1, (__int64)v7, (__int64)v35); if ( (_DWORD)result == -139 ) return result; if ( !(_DWORD)result ) { if ( (unsigned int)sub_100553F14((__int64)v8, nullptr) ) return 4294967167LL; sub_1005533C4(v8, v7); v19 = sub_100553F14((__int64)v8, nullptr); v20.i32[0] = 8 * v36; v20.i32[1] = v19; *(float32x2_t *)(a2 + 140) = vadd_f32(*(float32x2_t *)(a2 + 140), vcvt_f32_s32(v20)); result = 1; if ( v11 != -1 && !v37 ) { if ( *(_DWORD *)(a2 + 8) ) { v21 = *(_DWORD *)(a2 + 136); if ( v21 >= 1 ) v11 -= *(_QWORD *)(*(_QWORD *)(a2 + 96) + 16LL * v21); } else { v21 = 0; } if ( v11 <= 0 ) v22 = 0; else v22 = v11; v23 = sub_100553F14((__int64)v8, nullptr); v24 = v22 - v23; if ( v21 >= 1 ) { v25 = *(_QWORD *)(a2 + 96); if ( (unsigned int)v21 >= 5 ) { v27 = v21 & 3; if ( (v21 & 3) == 0 ) v27 = 4; v26 = (unsigned int)v21 - v27; v28 = 0u; v29 = (int64x2_t)(unsigned __int64)(v22 - v23); v30 = (const double *)(v25 + 40); v31 = v26; do { v29 = vaddq_s64((int64x2_t)vld2q_f64(v30 - 4).val[0], v29); v28 = vaddq_s64((int64x2_t)vld2q_f64(v30).val[0], v28); v30 += 8; v31 -= 4; } while ( v31 ); v24 = vaddvq_s64(vaddq_s64(v28, v29)); } else { v26 = 0; } v32 = (__int64 *)(v25 + 16 * v26 + 8); v33 = (unsigned int)v21 - v26; do { v34 = *v32; v32 += 2; v24 += v34; --v33; } while ( v33 ); } *(_QWORD *)(a2 + 120) = v24; return 1; } return result; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source