; ; GJBaseGameLayer::shouldExitHackedLevel from 0x140311160 to 0x140311420 (704 bytes) ; ; 4 xrefs: ; > PlayLayer::setupHasCompleted @ 0x140505b0d ; > @ 0x1408b482c ; > @ 0x1408b483c ; > @ 0x14091e7b8 ; ; 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 11:30:16 +0000 ; mov r11, rsp ; +0x0, 0x140311160 push rbx ; +0x3, 0x140311163 push rsi ; +0x4, 0x140311164 push r14 ; +0x5, 0x140311165 sub rsp, 60h ; +0x7, 0x140311167 mov r14, [rcx+3740h] ; +0xb, 0x14031116b xor r9d, r9d ; +0x12, 0x140311172 mov rax, [rcx+3748h] ; +0x15, 0x140311175 xor ebx, ebx ; +0x1c, 0x14031117c sub rax, r14 ; +0x1e, 0x14031117e xor r8d, r8d ; +0x21, 0x140311181 sar rax, 3 ; +0x24, 0x140311184 test eax, eax ; +0x28, 0x140311188 jle loc_1403113EA ; +0x2a, 0x14031118a mov [r11+8], rbp ; +0x30, 0x140311190 xorps xmm5, xmm5 ; +0x34, 0x140311194 mov [r11+10h], rdi ; +0x37, 0x140311197 xor edi, edi ; +0x3b, 0x14031119b mov [r11+18h], r15 ; +0x3d, 0x14031119d mov r15d, cs:dword_1408FE018 ; +0x41, 0x1403111a1 movaps [rsp+78h+var_28], xmm6 ; +0x48, 0x1403111a8 xorps xmm6, xmm6 ; +0x4d, 0x1403111ad movaps [rsp+78h+var_38], xmm7 ; +0x50, 0x1403111b0 movdqa xmm7, cs:xmmword_140836760 ; +0x55, 0x1403111b5 movaps xmmword ptr [r11-48h], xmm8 ; +0x5d, 0x1403111bd xorps xmm8, xmm8 ; +0x62, 0x1403111c2 movaps xmmword ptr [r11-58h], xmm9 ; +0x66, 0x1403111c6 xorps xmm9, xmm9 ; +0x6b, 0x1403111cb movaps xmmword ptr [r11-68h], xmm10 ; +0x6f, 0x1403111cf movdqa xmm10, cs:xmmword_140836CE0 ; +0x74, 0x1403111d4 movaps [rsp+78h+var_78], xmm11 ; +0x7d, 0x1403111dd xorps xmm11, xmm11 ; +0x82, 0x1403111e2 movsxd rbp, eax ; +0x86, 0x1403111e6 nop dword ptr [rax+00000000h] ; +0x89, 0x1403111e9 mov rax, [r14+rdi*8] ; +0x90, 0x1403111f0 test rax, rax ; +0x94, 0x1403111f4 jz loc_140311315 ; +0x97, 0x1403111f7 mov r10, [rax+8] ; +0x9d, 0x1403111fd mov edx, 0 ; +0xa1, 0x140311201 sub r10, [rax] ; +0xa6, 0x140311206 sar r10, 2 ; +0xa9, 0x140311209 sub r10d, 1 ; +0xad, 0x14031120d mov eax, r10d ; +0xb1, 0x140311211 lea r11d, [r10+1] ; +0xb4, 0x140311214 js loc_14031131C ; +0xb8, 0x140311218 cmp r11d, 8 ; +0xbe, 0x14031121e jb loc_14031131C ; +0xc2, 0x140311222 cmp r15d, 2 ; +0xc8, 0x140311228 jl loc_14031131C ; +0xcc, 0x14031122c mov rcx, [r14+rdi*8] ; +0xd2, 0x140311232 movd xmm3, r9d ; +0xd6, 0x140311236 pshufd xmm3, xmm3, 0 ; +0xdb, 0x14031123b movdqa xmm4, xmm3 ; +0xe0, 0x140311240 mov rcx, [rcx] ; +0xe4, 0x140311244 and r11d, 80000007h ; +0xe7, 0x140311247 jge short loc_14031125A ; +0xee, 0x14031124e dec r11d ; +0xf0, 0x140311250 or r11d, 0FFFFFFF8h ; +0xf3, 0x140311253 inc r11d ; +0xf7, 0x140311257 sub eax, r11d ; +0xfa, 0x14031125a movsxd r9, eax ; +0xfd, 0x14031125d mov eax, r10d ; +0x100, 0x140311260 nop dword ptr [rax+00h] ; +0x103, 0x140311263 nop word ptr [rax+rax+00000000h] ; +0x107, 0x140311267 movdqu xmm2, xmmword ptr [rcx+rdx*4] ; +0x110, 0x140311270 pmaxsd xmm3, xmm2 ; +0x115, 0x140311275 pcmpgtd xmm2, xmm8 ; +0x11a, 0x14031127a andnps xmm2, xmm10 ; +0x11f, 0x14031127f movdqa xmm0, xmm2 ; +0x123, 0x140311283 movdqa xmm1, xmm2 ; +0x127, 0x140311287 andps xmm0, xmm7 ; +0x12b, 0x14031128b andps xmm2, xmm9 ; +0x12e, 0x14031128e paddd xmm11, xmm0 ; +0x132, 0x140311292 movdqa xmm0, xmm7 ; +0x137, 0x140311297 paddd xmm0, xmm9 ; +0x13b, 0x14031129b andnps xmm1, xmm0 ; +0x140, 0x1403112a0 movdqa xmm9, xmm1 ; +0x143, 0x1403112a3 orps xmm9, xmm2 ; +0x148, 0x1403112a8 movdqu xmm2, xmmword ptr [rcx+rdx*4+10h] ; +0x14c, 0x1403112ac add rdx, 8 ; +0x152, 0x1403112b2 pmaxsd xmm4, xmm2 ; +0x156, 0x1403112b6 pcmpgtd xmm2, xmm8 ; +0x15b, 0x1403112bb andnps xmm2, xmm10 ; +0x160, 0x1403112c0 movdqa xmm0, xmm2 ; +0x164, 0x1403112c4 movdqa xmm1, xmm2 ; +0x168, 0x1403112c8 andps xmm0, xmm7 ; +0x16c, 0x1403112cc andps xmm2, xmm5 ; +0x16f, 0x1403112cf paddd xmm6, xmm0 ; +0x172, 0x1403112d2 movdqa xmm0, xmm7 ; +0x176, 0x1403112d6 paddd xmm0, xmm5 ; +0x17a, 0x1403112da andnps xmm1, xmm0 ; +0x17e, 0x1403112de movdqa xmm5, xmm1 ; +0x181, 0x1403112e1 orps xmm5, xmm2 ; +0x185, 0x1403112e5 cmp rdx, r9 ; +0x188, 0x1403112e8 jle short loc_140311270 ; +0x18b, 0x1403112eb pmaxsd xmm3, xmm4 ; +0x18d, 0x1403112ed movdqa xmm0, xmm3 ; +0x192, 0x1403112f2 psrldq xmm0, 8 ; +0x196, 0x1403112f6 pmaxsd xmm3, xmm0 ; +0x19b, 0x1403112fb movdqa xmm0, xmm3 ; +0x1a0, 0x140311300 psrldq xmm0, 4 ; +0x1a4, 0x140311304 pmaxsd xmm3, xmm0 ; +0x1a9, 0x140311309 movd r9d, xmm3 ; +0x1ae, 0x14031130e jmp short loc_14031131C ; +0x1b3, 0x140311313 mov eax, 0FFFFFFFFh ; +0x1b5, 0x140311315 xor edx, edx ; +0x1ba, 0x14031131a movsxd r10, eax ; +0x1bc, 0x14031131c cmp rdx, r10 ; +0x1bf, 0x14031131f jg short loc_14031135A ; +0x1c2, 0x140311322 mov rcx, [r14+rdi*8] ; +0x1c4, 0x140311324 mov r11, [rcx] ; +0x1c8, 0x140311328 nop dword ptr [rax+rax+00h] ; +0x1cb, 0x14031132b mov ecx, [r11+rdx*4] ; +0x1d0, 0x140311330 cmp ecx, r9d ; +0x1d4, 0x140311334 mov eax, ecx ; +0x1d7, 0x140311337 cmovle eax, r9d ; +0x1d9, 0x140311339 test ecx, ecx ; +0x1dd, 0x14031133d mov r9d, eax ; +0x1df, 0x14031133f lea eax, [r8+1] ; +0x1e2, 0x140311342 cmovg r8d, eax ; +0x1e6, 0x140311346 lea eax, [rbx+1] ; +0x1ea, 0x14031134a cmovg eax, ebx ; +0x1ed, 0x14031134d inc rdx ; +0x1f0, 0x140311350 mov ebx, eax ; +0x1f3, 0x140311353 cmp rdx, r10 ; +0x1f5, 0x140311355 jle short loc_140311330 ; +0x1f8, 0x140311358 inc rdi ; +0x1fa, 0x14031135a cmp rdi, rbp ; +0x1fd, 0x14031135d jl loc_1403111F0 ; +0x200, 0x140311360 movaps xmm10, [rsp+78h+var_68] ; +0x206, 0x140311366 paddd xmm6, xmm11 ; +0x20c, 0x14031136c movaps xmm8, [rsp+78h+var_48] ; +0x211, 0x140311371 paddd xmm5, xmm9 ; +0x217, 0x140311377 movaps xmm7, [rsp+78h+var_38] ; +0x21c, 0x14031137c movdqa xmm0, xmm5 ; +0x221, 0x140311381 mov r15, [rsp+78h+arg_10] ; +0x225, 0x140311385 mov rdi, [rsp+78h+arg_8] ; +0x22d, 0x14031138d mov rbp, [rsp+78h+arg_0] ; +0x235, 0x140311395 movaps xmm11, [rsp+78h+var_78] ; +0x23d, 0x14031139d movaps xmm9, [rsp+78h+var_58] ; +0x242, 0x1403113a2 psrldq xmm0, 8 ; +0x248, 0x1403113a8 paddd xmm5, xmm0 ; +0x24d, 0x1403113ad movdqa xmm0, xmm5 ; +0x251, 0x1403113b1 psrldq xmm0, 4 ; +0x255, 0x1403113b5 paddd xmm5, xmm0 ; +0x25a, 0x1403113ba movdqa xmm0, xmm6 ; +0x25e, 0x1403113be psrldq xmm0, 8 ; +0x262, 0x1403113c2 paddd xmm6, xmm0 ; +0x267, 0x1403113c7 movd eax, xmm5 ; +0x26b, 0x1403113cb movdqa xmm0, xmm6 ; +0x26f, 0x1403113cf psrldq xmm0, 4 ; +0x273, 0x1403113d3 paddd xmm6, xmm0 ; +0x278, 0x1403113d8 add r8d, eax ; +0x27c, 0x1403113dc movd eax, xmm6 ; +0x27f, 0x1403113df movaps xmm6, [rsp+78h+var_28] ; +0x283, 0x1403113e3 add ebx, eax ; +0x288, 0x1403113e8 movd xmm1, ebx ; +0x28a, 0x1403113ea mov eax, 1F40h ; +0x28e, 0x1403113ee movd xmm0, r8d ; +0x293, 0x1403113f3 mov ecx, 0FA0h ; +0x298, 0x1403113f8 cvtdq2ps xmm1, xmm1 ; +0x29d, 0x1403113fd cvtdq2ps xmm0, xmm0 ; +0x2a0, 0x140311400 divss xmm1, xmm0 ; +0x2a3, 0x140311403 comiss xmm1, cs:dword_14083502C ; +0x2a7, 0x140311407 cmova eax, ecx ; +0x2ae, 0x14031140e cmp r9d, eax ; +0x2b1, 0x140311411 setnle al ; +0x2b4, 0x140311414 add rsp, 60h ; +0x2b7, 0x140311417 pop r14 ; +0x2bb, 0x14031141b pop rsi ; +0x2bd, 0x14031141d pop rbx ; +0x2be, 0x14031141e retn ; +0x2bf, 0x14031141f