; ; GJBaseGameLayer::applyShake from 0x10015b150 to 0x10015b270 (288 bytes) ; ; 0 xrefs: ; ; 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 ; push rbp ; +0x0, 0x10015b150 mov rbp, rsp ; +0x1, 0x10015b151 push r15 ; +0x4, 0x10015b154 push r14 ; +0x6, 0x10015b156 push rbx ; +0x8, 0x10015b158 sub rsp, 18h ; +0x9, 0x10015b159 mov rbx, rsi ; +0xd, 0x10015b15d mov r14, rdi ; +0x10, 0x10015b160 movsd xmm0, qword ptr [rdi+398h] ; +0x13, 0x10015b163 movsd xmm1, qword ptr [rdi+4D8h] ; +0x1b, 0x10015b16b xorpd xmm2, xmm2 ; +0x23, 0x10015b173 ucomisd xmm2, xmm1 ; +0x27, 0x10015b177 jbe short loc_10015B1E7 ; +0x2b, 0x10015b17b movsd qword ptr [r14+4D8h], xmm0 ; +0x2d, 0x10015b17d movzx r15d, byte ptr [r14+30B0h] ; +0x36, 0x10015b186 call _rand ; +0x3e, 0x10015b18e xorps xmm0, xmm0 ; +0x43, 0x10015b193 cvtsi2ss xmm0, eax ; +0x46, 0x10015b196 mulss xmm0, cs:dword_100815710 ; +0x4a, 0x10015b19a movaps [rbp+var_30], xmm0 ; +0x52, 0x10015b1a2 cmp r15b, 1 ; +0x56, 0x10015b1a6 jnz short loc_10015B21B ; +0x5a, 0x10015b1aa call _rand ; +0x5c, 0x10015b1ac xorps xmm0, xmm0 ; +0x61, 0x10015b1b1 cvtsi2ss xmm0, eax ; +0x64, 0x10015b1b4 mulss xmm0, cs:dword_100815710 ; +0x68, 0x10015b1b8 movaps xmm1, [rbp+var_30] ; +0x70, 0x10015b1c0 insertps xmm1, xmm0, 10h ; +0x74, 0x10015b1c4 movaps xmm0, cs:xmmword_100816970 ; +0x7a, 0x10015b1ca cmpltps xmm0, xmm1 ; +0x81, 0x10015b1d1 movaps xmm1, cs:xmmword_1008154C0 ; +0x85, 0x10015b1d5 blendvps xmm1, cs:xmmword_1008154E0 ; +0x8c, 0x10015b1dc jmp short loc_10015B243 ; +0x95, 0x10015b1e5 movss xmm2, dword ptr [r14+4D0h] ; +0x97, 0x10015b1e7 xorps xmm3, xmm3 ; +0xa0, 0x10015b1f0 ucomiss xmm3, xmm2 ; +0xa3, 0x10015b1f3 jnb short loc_10015B17D ; +0xa6, 0x10015b1f6 movapd xmm3, xmm0 ; +0xa8, 0x10015b1f8 subsd xmm3, xmm1 ; +0xac, 0x10015b1fc xorps xmm1, xmm1 ; +0xb0, 0x10015b200 cvtsd2ss xmm1, xmm3 ; +0xb3, 0x10015b203 ucomiss xmm1, xmm2 ; +0xb7, 0x10015b207 ja loc_10015B17D ; +0xba, 0x10015b20a movsd xmm0, qword ptr [r14+4E0h] ; +0xc0, 0x10015b210 jmp short loc_10015B25B ; +0xc9, 0x10015b219 call _rand ; +0xcb, 0x10015b21b xorps xmm0, xmm0 ; +0xd0, 0x10015b220 cvtsi2ss xmm0, eax ; +0xd3, 0x10015b223 mulss xmm0, cs:dword_100815710 ; +0xd7, 0x10015b227 movaps xmm1, [rbp+var_30] ; +0xdf, 0x10015b22f insertps xmm1, xmm0, 10h ; +0xe3, 0x10015b233 addps xmm1, xmm1 ; +0xe9, 0x10015b239 addps xmm1, cs:xmmword_1008154C0 ; +0xec, 0x10015b23c movss xmm0, dword ptr [r14+4CCh] ; +0xf3, 0x10015b243 movsldup xmm0, xmm0 ; +0xfc, 0x10015b24c mulps xmm0, xmm1 ; +0x100, 0x10015b250 movlps qword ptr [r14+4E0h], xmm0 ; +0x103, 0x10015b253 movsd xmm1, qword ptr [rbx] ; +0x10b, 0x10015b25b addps xmm1, xmm0 ; +0x10f, 0x10015b25f movlps qword ptr [rbx], xmm1 ; +0x112, 0x10015b262 add rsp, 18h ; +0x115, 0x10015b265 pop rbx ; +0x119, 0x10015b269 pop r14 ; +0x11a, 0x10015b26a pop r15 ; +0x11c, 0x10015b26c pop rbp ; +0x11e, 0x10015b26e retn ; +0x11f, 0x10015b26f