// // sub_10096D1C0 from 0x10096d1c0 to 0x10096d36e (430 bytes) // // 2 xrefs: // > sub_10096D370 @ 0x10096d3cb // > sub_10096D590 @ 0x10096d651 // // This function is hookable on this platform (idp: pc, 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 12:38:51 +0000 // _DWORD *__fastcall sub_10096D1C0(__int64 a1, int a2) { _QWORD *v3; // r13 __int64 v4; // rcx __int64 v5; // rax _DWORD *v6; // r15 _QWORD *v7; // rax _QWORD *v8; // r12 __int64 v9; // rax __int64 v10; // rdi __m128 v11; // xmm0 float v12; // xmm1_4 __m128 v13; // xmm2 float v15; // [rsp+8h] [rbp-38h] BYREF _QWORD *v16; // [rsp+10h] [rbp-30h] v3 = (_QWORD *)(a1 + 536); v4 = *(_QWORD *)(a1 + 536); if ( !v4 ) goto LABEL_8; v5 = a1 + 536; do { if ( *(_DWORD *)(v4 + 32) >= a2 ) v5 = v4; v4 = *(_QWORD *)(v4 + 8LL * (*(_DWORD *)(v4 + 32) < a2)); } while ( v4 ); if ( (_QWORD *)v5 != v3 && *(_DWORD *)(v5 + 32) <= a2 ) return *(_DWORD **)(v5 + 40); LABEL_8: v6 = cocos2d::CCNode::create(); sub_100278250(&v15, 0.0, 0.0); (*(void (__fastcall **)(_DWORD *, float *))(*(_QWORD *)v6 + 296LL))(v6, &v15); (*(void (__fastcall **)(_DWORD *, void *))(*(_QWORD *)v6 + 184LL))(v6, &unk_100BE7730); v7 = (_QWORD *)*v3; v8 = (_QWORD *)(a1 + 536); LABEL_10: if ( v7 ) { do { v8 = v7; if ( *((_DWORD *)v7 + 8) > a2 ) { v7 = (_QWORD *)*v7; v3 = v8; goto LABEL_10; } if ( *((_DWORD *)v7 + 8) >= a2 ) goto LABEL_18; v7 = (_QWORD *)v7[1]; } while ( v7 ); v3 = v8 + 1; } v16 = v8; v8 = operator new(0x30u); *((_DWORD *)v8 + 8) = a2; v8[5] = 0; *(_OWORD *)v8 = 0; v8[2] = v16; *v3 = v8; v9 = **(_QWORD **)(a1 + 528); if ( v9 ) *(_QWORD *)(a1 + 528) = v9; sub_10001B680(*(__int64 **)(a1 + 536), v8); ++*(_QWORD *)(a1 + 544); LABEL_18: v8[5] = v6; v10 = *(_QWORD *)(a1 + 416); if ( v10 ) cocos2d::CCNode::addChild(v10, v6, 0, 0); v11 = (__m128)*(unsigned int *)(a1 + 436); v12 = *(float *)(a1 + 520); v13 = v11; v13.f32[0] = v11.f32[0] / v12; v11.f32[0] = (float)(v11.f32[0] + *(float *)(a1 + 428)) / v12; (*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)v6 + 344LL))( v6, ((int)_mm_round_ss(v13, v13, 9).f32[0] - 1 <= a2) & (unsigned __int8)((int)_mm_round_ss(v11, v11, 9).f32[0] + 1 >= a2)); return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source