; ; sub_180066D40 from 0x180066d40 to 0x180066ea5 (357 bytes) ; ; 4 xrefs: ; > @ 0x180182edc ; > @ 0x180182eec ; > @ 0x1801ac8b0 ; > @ 0x1801f9360 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_0], rbx ; +0x0, 0x180066d40 mov [rsp+arg_8], rbp ; +0x5, 0x180066d45 mov [rsp+arg_10], rsi ; +0xa, 0x180066d4a push rdi ; +0xf, 0x180066d4f sub rsp, 30h ; +0x10, 0x180066d50 mov rbx, [rcx] ; +0x14, 0x180066d54 xor ebp, ebp ; +0x17, 0x180066d57 mov edi, ebp ; +0x19, 0x180066d59 mov rax, [rbx+0E8h] ; +0x1b, 0x180066d5b mov dword ptr [rbx+274h], 1 ; +0x22, 0x180066d62 mov dword ptr [rbx+1C0h], 1 ; +0x2c, 0x180066d6c mov [rbx+250h], rbp ; +0x36, 0x180066d76 mov [rbx+240h], rbp ; +0x3d, 0x180066d7d mov [rbx+248h], rbp ; +0x44, 0x180066d84 mov [rbx+258h], ebp ; +0x4b, 0x180066d8b mov [rbx+268h], ebp ; +0x51, 0x180066d91 cmp [rax+60h], ebp ; +0x57, 0x180066d97 jle short loc_180066DD1 ; +0x5a, 0x180066d9a mov esi, ebp ; +0x5c, 0x180066d9c xchg ax, ax ; +0x5e, 0x180066d9e mov rax, [rax+68h] ; +0x60, 0x180066da0 mov edx, edi ; +0x64, 0x180066da4 mov rcx, [rax+rsi] ; +0x66, 0x180066da6 movss xmm2, dword ptr [rcx+38h] ; +0x6a, 0x180066daa mov rcx, rbx ; +0x6f, 0x180066daf call sub_18009C0C0 ; +0x72, 0x180066db2 test eax, eax ; +0x77, 0x180066db7 jnz loc_180066E90 ; +0x79, 0x180066db9 mov rax, [rbx+0E8h] ; +0x7f, 0x180066dbf inc edi ; +0x86, 0x180066dc6 add rsi, 8 ; +0x88, 0x180066dc8 cmp edi, [rax+60h] ; +0x8c, 0x180066dcc jl short loc_180066DA0 ; +0x8f, 0x180066dcf movss xmm0, dword ptr [rbx+284h] ; +0x91, 0x180066dd1 movss xmm1, dword ptr [rbx+28Ch] ; +0x99, 0x180066dd9 comiss xmm1, cs:dword_1801674C8 ; +0xa1, 0x180066de1 mov eax, [rbx+280h] ; +0xa8, 0x180066de8 mov [rbx+220h], eax ; +0xae, 0x180066dee movss dword ptr [rbx+224h], xmm0 ; +0xb4, 0x180066df4 mulss xmm0, cs:dword_1801670CC ; +0xbc, 0x180066dfc movaps [rsp+38h+var_18], xmm6 ; +0xc4, 0x180066e04 xorps xmm6, xmm6 ; +0xc9, 0x180066e09 movss dword ptr [rbx+22Ch], xmm1 ; +0xcc, 0x180066e0c movss dword ptr [rbx+228h], xmm0 ; +0xd4, 0x180066e14 ja short loc_180066E23 ; +0xdc, 0x180066e1c xorps xmm0, xmm0 ; +0xde, 0x180066e1e jmp short loc_180066E38 ; +0xe1, 0x180066e21 mulss xmm1, cs:dword_180164A1C; Y ; +0xe3, 0x180066e23 movss xmm0, cs:flt_180145764; X ; +0xeb, 0x180066e2b call powf ; +0xf3, 0x180066e33 movss xmm1, dword ptr [rbx+290h] ; +0xf8, 0x180066e38 comiss xmm1, cs:dword_1801674C8 ; +0x100, 0x180066e40 movss dword ptr [rbx+230h], xmm0 ; +0x107, 0x180066e47 movss dword ptr [rbx+234h], xmm1 ; +0x10f, 0x180066e4f jbe short loc_180066E71 ; +0x117, 0x180066e57 mulss xmm1, cs:dword_180164A1C; Y ; +0x119, 0x180066e59 movss xmm0, cs:flt_180145764; X ; +0x121, 0x180066e61 call powf ; +0x129, 0x180066e69 movaps xmm6, xmm0 ; +0x12e, 0x180066e6e mov rcx, rbx ; +0x131, 0x180066e71 movss dword ptr [rbx+238h], xmm6 ; +0x134, 0x180066e74 call sub_180067970 ; +0x13c, 0x180066e7c movaps xmm6, [rsp+38h+var_18] ; +0x141, 0x180066e81 mov eax, ebp ; +0x146, 0x180066e86 movss dword ptr [rbx+27Ch], xmm0 ; +0x148, 0x180066e88 mov rbx, [rsp+38h+arg_0] ; +0x150, 0x180066e90 mov rbp, [rsp+38h+arg_8] ; +0x155, 0x180066e95 mov rsi, [rsp+38h+arg_10] ; +0x15a, 0x180066e9a add rsp, 30h ; +0x15f, 0x180066e9f pop rdi ; +0x163, 0x180066ea3 retn ; +0x164, 0x180066ea4