; ; GJBaseGameLayer::getMinDistance from 0x1402429c0 to 0x140242e24 (1124 bytes) ; ; 6 xrefs: ; > GJBaseGameLayer::volumeForProximityEffect @ 0x14024286d ; > GJBaseGameLayer::volumeForProximityEffect @ 0x1402428af ; > GJBaseGameLayer::volumeForProximityEffect @ 0x1402428e5 ; > @ 0x140682088 ; > @ 0x140682098 ; > @ 0x1406ce4d8 ; ; 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_10], rbx ; +0x0, 0x1402429c0 mov [rsp+arg_0], rcx ; +0x5, 0x1402429c5 push rsi ; +0xa, 0x1402429ca sub rsp, 60h ; +0xb, 0x1402429cb movaps [rsp+68h+var_18], xmm6 ; +0xf, 0x1402429cf lea rcx, [rsp+68h+arg_0] ; +0x14, 0x1402429d4 movss xmm6, cs:dword_1406236A0 ; +0x19, 0x1402429d9 mov rbx, r8 ; +0x21, 0x1402429e1 movaps [rsp+68h+var_28], xmm7 ; +0x24, 0x1402429e4 mov rsi, rdx ; +0x29, 0x1402429e9 movaps xmm7, xmm3 ; +0x2c, 0x1402429ec call cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x2f, 0x1402429ef movsxd rax, [rsp+68h+arg_20] ; +0x35, 0x1402429f5 cmp eax, 6; switch 7 cases ; +0x3d, 0x1402429fd ja def_140242A22; jumptable 0000000140242A22 default case ; +0x40, 0x140242a00 mov [rsp+68h+arg_8], rdi ; +0x46, 0x140242a06 lea rdx, cs:140000000h ; +0x4b, 0x140242a0b movaps [rsp+68h+var_38], xmm8 ; +0x52, 0x140242a12 mov ecx, ds:(jpt_140242A22 - 140000000h)[rdx+rax*4] ; +0x58, 0x140242a18 add rcx, rdx ; +0x5f, 0x140242a1f jmp rcx; switch jump ; +0x62, 0x140242a22 test rbx, rbx; jumptable 0000000140242A22 case 0 ; +0x64, 0x140242a24 jz loc_140242DE0 ; +0x67, 0x140242a27 mov rbx, [rbx+38h] ; +0x6d, 0x140242a2d mov eax, [rbx] ; +0x71, 0x140242a31 test eax, eax ; +0x73, 0x140242a33 jz loc_140242DE0 ; +0x75, 0x140242a35 mov rbx, [rbx+10h] ; +0x7b, 0x140242a3b lea rdi, [rax-1] ; +0x7f, 0x140242a3f lea rdi, [rbx+rdi*8] ; +0x83, 0x140242a43 cmp rbx, rdi ; +0x87, 0x140242a47 ja loc_140242DE0 ; +0x8a, 0x140242a4a mov rcx, [rbx] ; +0x90, 0x140242a50 test rcx, rcx ; +0x93, 0x140242a53 jz loc_140242DE0 ; +0x96, 0x140242a56 cmp byte ptr [rcx+28Eh], 0 ; +0x9c, 0x140242a5c jnz short loc_140242A9F ; +0xa3, 0x140242a63 mov rax, [rcx] ; +0xa5, 0x140242a65 lea rdx, [rsp+68h+var_48] ; +0xa8, 0x140242a68 call qword ptr [rax+4A8h] ; +0xad, 0x140242a6d mov rdx, rax ; +0xb3, 0x140242a73 lea rcx, [rsp+68h+arg_0] ; +0xb6, 0x140242a76 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xbb, 0x140242a7b mov rdx, rsi ; +0xc1, 0x140242a81 lea rcx, [rsp+68h+arg_0] ; +0xc4, 0x140242a84 call cs:?ccpDistance@cocos2d@@YAMAEBVCCPoint@1@0@Z; cocos2d::ccpDistance(cocos2d::CCPoint const &,cocos2d::CCPoint const &) ; +0xc9, 0x140242a89 minss xmm0, xmm6 ; +0xcf, 0x140242a8f comiss xmm7, xmm0 ; +0xd3, 0x140242a93 movaps xmm6, xmm0 ; +0xd6, 0x140242a96 jnb loc_140242DE0 ; +0xd9, 0x140242a99 add rbx, 8 ; +0xdf, 0x140242a9f cmp rbx, rdi ; +0xe3, 0x140242aa3 jbe short loc_140242A50 ; +0xe6, 0x140242aa6 jmp loc_140242DE0 ; +0xe8, 0x140242aa8 test rbx, rbx; jumptable 0000000140242A22 case 1 ; +0xed, 0x140242aad jz loc_140242DE0 ; +0xf0, 0x140242ab0 mov rbx, [rbx+38h] ; +0xf6, 0x140242ab6 mov eax, [rbx] ; +0xfa, 0x140242aba test eax, eax ; +0xfc, 0x140242abc jz loc_140242DE0 ; +0xfe, 0x140242abe mov rbx, [rbx+10h] ; +0x104, 0x140242ac4 lea rdi, [rax-1] ; +0x108, 0x140242ac8 lea rdi, [rbx+rdi*8] ; +0x10c, 0x140242acc cmp rbx, rdi ; +0x110, 0x140242ad0 ja loc_140242DE0 ; +0x113, 0x140242ad3 movss xmm8, dword ptr cs:xmmword_1406243C0 ; +0x119, 0x140242ad9 mov rcx, [rbx] ; +0x122, 0x140242ae2 test rcx, rcx ; +0x125, 0x140242ae5 jz loc_140242DE0 ; +0x128, 0x140242ae8 cmp byte ptr [rcx+28Eh], 0 ; +0x12e, 0x140242aee jnz short loc_140242B32 ; +0x135, 0x140242af5 mov rax, [rcx] ; +0x137, 0x140242af7 lea rdx, [rsp+68h+var_48] ; +0x13a, 0x140242afa call qword ptr [rax+4A8h] ; +0x13f, 0x140242aff mov rdx, rax ; +0x145, 0x140242b05 lea rcx, [rsp+68h+arg_0] ; +0x148, 0x140242b08 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x14d, 0x140242b0d movss xmm0, dword ptr [rsp+68h+arg_0] ; +0x153, 0x140242b13 subss xmm0, dword ptr [rsi] ; +0x159, 0x140242b19 andps xmm0, xmm8 ; +0x15d, 0x140242b1d comiss xmm0, xmm6 ; +0x161, 0x140242b21 ja short loc_140242B29 ; +0x164, 0x140242b24 movaps xmm6, xmm0 ; +0x166, 0x140242b26 comiss xmm7, xmm6 ; +0x169, 0x140242b29 jnb loc_140242DE0 ; +0x16c, 0x140242b2c add rbx, 8 ; +0x172, 0x140242b32 cmp rbx, rdi ; +0x176, 0x140242b36 jbe short loc_140242AE2 ; +0x179, 0x140242b39 jmp loc_140242DE0 ; +0x17b, 0x140242b3b test rbx, rbx; jumptable 0000000140242A22 case 2 ; +0x180, 0x140242b40 jz loc_140242DE0 ; +0x183, 0x140242b43 mov rbx, [rbx+38h] ; +0x189, 0x140242b49 mov eax, [rbx] ; +0x18d, 0x140242b4d test eax, eax ; +0x18f, 0x140242b4f jz loc_140242DE0 ; +0x191, 0x140242b51 mov rbx, [rbx+10h] ; +0x197, 0x140242b57 lea rdi, [rax-1] ; +0x19b, 0x140242b5b lea rdi, [rbx+rdi*8] ; +0x19f, 0x140242b5f cmp rbx, rdi ; +0x1a3, 0x140242b63 ja loc_140242DE0 ; +0x1a6, 0x140242b66 nop dword ptr [rax+00h] ; +0x1ac, 0x140242b6c mov rcx, [rbx] ; +0x1b0, 0x140242b70 test rcx, rcx ; +0x1b3, 0x140242b73 jz loc_140242DE0 ; +0x1b6, 0x140242b76 cmp byte ptr [rcx+28Eh], 0 ; +0x1bc, 0x140242b7c jnz short loc_140242BBB ; +0x1c3, 0x140242b83 mov rax, [rcx] ; +0x1c5, 0x140242b85 lea rdx, [rsp+68h+var_48] ; +0x1c8, 0x140242b88 call qword ptr [rax+4A8h] ; +0x1cd, 0x140242b8d mov rdx, rax ; +0x1d3, 0x140242b93 lea rcx, [rsp+68h+arg_0] ; +0x1d6, 0x140242b96 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x1db, 0x140242b9b movss xmm0, dword ptr [rsp+68h+arg_0] ; +0x1e1, 0x140242ba1 subss xmm0, dword ptr [rsi] ; +0x1e7, 0x140242ba7 minss xmm0, xmm6 ; +0x1eb, 0x140242bab comiss xmm7, xmm0 ; +0x1ef, 0x140242baf movaps xmm6, xmm0 ; +0x1f2, 0x140242bb2 jnb loc_140242DE0 ; +0x1f5, 0x140242bb5 add rbx, 8 ; +0x1fb, 0x140242bbb cmp rbx, rdi ; +0x1ff, 0x140242bbf jbe short loc_140242B70 ; +0x202, 0x140242bc2 jmp loc_140242DE0 ; +0x204, 0x140242bc4 test rbx, rbx; jumptable 0000000140242A22 case 3 ; +0x209, 0x140242bc9 jz loc_140242DE0 ; +0x20c, 0x140242bcc mov rbx, [rbx+38h] ; +0x212, 0x140242bd2 mov eax, [rbx] ; +0x216, 0x140242bd6 test eax, eax ; +0x218, 0x140242bd8 jz loc_140242DE0 ; +0x21a, 0x140242bda mov rbx, [rbx+10h] ; +0x220, 0x140242be0 lea rdi, [rax-1] ; +0x224, 0x140242be4 lea rdi, [rbx+rdi*8] ; +0x228, 0x140242be8 cmp rbx, rdi ; +0x22c, 0x140242bec ja loc_140242DE0 ; +0x22f, 0x140242bef nop word ptr [rax+rax+00000000h] ; +0x235, 0x140242bf5 mov rcx, [rbx] ; +0x240, 0x140242c00 test rcx, rcx ; +0x243, 0x140242c03 jz loc_140242DE0 ; +0x246, 0x140242c06 cmp byte ptr [rcx+28Eh], 0 ; +0x24c, 0x140242c0c jnz short loc_140242C4B ; +0x253, 0x140242c13 mov rax, [rcx] ; +0x255, 0x140242c15 lea rdx, [rsp+68h+var_48] ; +0x258, 0x140242c18 call qword ptr [rax+4A8h] ; +0x25d, 0x140242c1d mov rdx, rax ; +0x263, 0x140242c23 lea rcx, [rsp+68h+arg_0] ; +0x266, 0x140242c26 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x26b, 0x140242c2b movss xmm0, dword ptr [rsi] ; +0x271, 0x140242c31 subss xmm0, dword ptr [rsp+68h+arg_0] ; +0x275, 0x140242c35 minss xmm0, xmm6 ; +0x27b, 0x140242c3b comiss xmm7, xmm0 ; +0x27f, 0x140242c3f movaps xmm6, xmm0 ; +0x282, 0x140242c42 jnb loc_140242DE0 ; +0x285, 0x140242c45 add rbx, 8 ; +0x28b, 0x140242c4b cmp rbx, rdi ; +0x28f, 0x140242c4f jbe short loc_140242C00 ; +0x292, 0x140242c52 jmp loc_140242DE0 ; +0x294, 0x140242c54 test rbx, rbx; jumptable 0000000140242A22 case 4 ; +0x299, 0x140242c59 jz loc_140242DE0 ; +0x29c, 0x140242c5c mov rbx, [rbx+38h] ; +0x2a2, 0x140242c62 mov eax, [rbx] ; +0x2a6, 0x140242c66 test eax, eax ; +0x2a8, 0x140242c68 jz loc_140242DE0 ; +0x2aa, 0x140242c6a mov rbx, [rbx+10h] ; +0x2b0, 0x140242c70 lea rdi, [rax-1] ; +0x2b4, 0x140242c74 lea rdi, [rbx+rdi*8] ; +0x2b8, 0x140242c78 cmp rbx, rdi ; +0x2bc, 0x140242c7c ja loc_140242DE0 ; +0x2bf, 0x140242c7f movss xmm8, dword ptr cs:xmmword_1406243C0 ; +0x2c5, 0x140242c85 xchg ax, ax ; +0x2ce, 0x140242c8e mov rcx, [rbx] ; +0x2d0, 0x140242c90 test rcx, rcx ; +0x2d3, 0x140242c93 jz loc_140242DE0 ; +0x2d6, 0x140242c96 cmp byte ptr [rcx+28Eh], 0 ; +0x2dc, 0x140242c9c jnz short loc_140242CE1 ; +0x2e3, 0x140242ca3 mov rax, [rcx] ; +0x2e5, 0x140242ca5 lea rdx, [rsp+68h+var_48] ; +0x2e8, 0x140242ca8 call qword ptr [rax+4A8h] ; +0x2ed, 0x140242cad mov rdx, rax ; +0x2f3, 0x140242cb3 lea rcx, [rsp+68h+arg_0] ; +0x2f6, 0x140242cb6 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x2fb, 0x140242cbb movss xmm0, dword ptr [rsp+68h+arg_0+4] ; +0x301, 0x140242cc1 subss xmm0, dword ptr [rsi+4] ; +0x307, 0x140242cc7 andps xmm0, xmm8 ; +0x30c, 0x140242ccc comiss xmm0, xmm6 ; +0x310, 0x140242cd0 ja short loc_140242CD8 ; +0x313, 0x140242cd3 movaps xmm6, xmm0 ; +0x315, 0x140242cd5 comiss xmm7, xmm6 ; +0x318, 0x140242cd8 jnb loc_140242DE0 ; +0x31b, 0x140242cdb add rbx, 8 ; +0x321, 0x140242ce1 cmp rbx, rdi ; +0x325, 0x140242ce5 jbe short loc_140242C90 ; +0x328, 0x140242ce8 jmp loc_140242DE0 ; +0x32a, 0x140242cea test rbx, rbx; jumptable 0000000140242A22 case 5 ; +0x32f, 0x140242cef jz loc_140242DE0 ; +0x332, 0x140242cf2 mov rbx, [rbx+38h] ; +0x338, 0x140242cf8 mov eax, [rbx] ; +0x33c, 0x140242cfc test eax, eax ; +0x33e, 0x140242cfe jz loc_140242DE0 ; +0x340, 0x140242d00 mov rbx, [rbx+10h] ; +0x346, 0x140242d06 lea rdi, [rax-1] ; +0x34a, 0x140242d0a lea rdi, [rbx+rdi*8] ; +0x34e, 0x140242d0e cmp rbx, rdi ; +0x352, 0x140242d12 ja loc_140242DE0 ; +0x355, 0x140242d15 nop dword ptr [rax+rax+00h] ; +0x35b, 0x140242d1b mov rcx, [rbx] ; +0x360, 0x140242d20 test rcx, rcx ; +0x363, 0x140242d23 jz loc_140242DE0 ; +0x366, 0x140242d26 cmp byte ptr [rcx+28Eh], 0 ; +0x36c, 0x140242d2c jnz short loc_140242D68 ; +0x373, 0x140242d33 mov rax, [rcx] ; +0x375, 0x140242d35 lea rdx, [rsp+68h+var_48] ; +0x378, 0x140242d38 call qword ptr [rax+4A8h] ; +0x37d, 0x140242d3d mov rdx, rax ; +0x383, 0x140242d43 lea rcx, [rsp+68h+arg_0] ; +0x386, 0x140242d46 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x38b, 0x140242d4b movss xmm0, dword ptr [rsp+68h+arg_0+4] ; +0x391, 0x140242d51 subss xmm0, dword ptr [rsi+4] ; +0x397, 0x140242d57 minss xmm0, xmm6 ; +0x39c, 0x140242d5c comiss xmm7, xmm0 ; +0x3a0, 0x140242d60 movaps xmm6, xmm0 ; +0x3a3, 0x140242d63 jnb short loc_140242DE0 ; +0x3a6, 0x140242d66 add rbx, 8 ; +0x3a8, 0x140242d68 cmp rbx, rdi ; +0x3ac, 0x140242d6c jbe short loc_140242D20 ; +0x3af, 0x140242d6f jmp short loc_140242DE0 ; +0x3b1, 0x140242d71 test rbx, rbx; jumptable 0000000140242A22 case 6 ; +0x3b3, 0x140242d73 jz short loc_140242DE0 ; +0x3b6, 0x140242d76 mov rbx, [rbx+38h] ; +0x3b8, 0x140242d78 mov eax, [rbx] ; +0x3bc, 0x140242d7c test eax, eax ; +0x3be, 0x140242d7e jz short loc_140242DE0 ; +0x3c0, 0x140242d80 mov rbx, [rbx+10h] ; +0x3c2, 0x140242d82 lea rdi, [rax-1] ; +0x3c6, 0x140242d86 lea rdi, [rbx+rdi*8] ; +0x3ca, 0x140242d8a cmp rbx, rdi ; +0x3ce, 0x140242d8e ja short loc_140242DE0 ; +0x3d1, 0x140242d91 mov rcx, [rbx] ; +0x3d3, 0x140242d93 test rcx, rcx ; +0x3d6, 0x140242d96 jz short loc_140242DE0 ; +0x3d9, 0x140242d99 cmp byte ptr [rcx+28Eh], 0 ; +0x3db, 0x140242d9b jnz short loc_140242DD7 ; +0x3e2, 0x140242da2 mov rax, [rcx] ; +0x3e4, 0x140242da4 lea rdx, [rsp+68h+var_48] ; +0x3e7, 0x140242da7 call qword ptr [rax+4A8h] ; +0x3ec, 0x140242dac mov rdx, rax ; +0x3f2, 0x140242db2 lea rcx, [rsp+68h+arg_0] ; +0x3f5, 0x140242db5 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x3fa, 0x140242dba movss xmm0, dword ptr [rsi+4] ; +0x400, 0x140242dc0 subss xmm0, dword ptr [rsp+68h+arg_0+4] ; +0x405, 0x140242dc5 minss xmm0, xmm6 ; +0x40b, 0x140242dcb comiss xmm7, xmm0 ; +0x40f, 0x140242dcf movaps xmm6, xmm0 ; +0x412, 0x140242dd2 jnb short loc_140242DE0 ; +0x415, 0x140242dd5 add rbx, 8 ; +0x417, 0x140242dd7 cmp rbx, rdi ; +0x41b, 0x140242ddb jbe short loc_140242D93 ; +0x41e, 0x140242dde mov rdi, [rsp+68h+arg_8] ; +0x420, 0x140242de0 movaps xmm8, [rsp+68h+var_38] ; +0x425, 0x140242de5 mov rbx, [rsp+68h+arg_10]; jumptable 0000000140242A22 default case ; +0x42b, 0x140242deb movaps xmm0, xmm6 ; +0x433, 0x140242df3 movaps xmm6, [rsp+68h+var_18] ; +0x436, 0x140242df6 movaps xmm7, [rsp+68h+var_28] ; +0x43b, 0x140242dfb add rsp, 60h ; +0x440, 0x140242e00 pop rsi ; +0x444, 0x140242e04 retn ; +0x445, 0x140242e05 align 8 ; +0x446, 0x140242e06 dd offset loc_140242A24 - 140000000h; jump table for switch statement ; +0x448, 0x140242e08