; ; GJBaseGameLayer::volumeForProximityEffect from 0x14034c740 to 0x14034cb0e (974 bytes) ; ; 7 xrefs: ; > GJBaseGameLayer::activateSFXTrigger @ 0x14034be62 ; > GJBaseGameLayer::updateProximityVolumeEffects @ 0x14034c4b2 ; > GJBaseGameLayer::addProximityVolumeEffect @ 0x14034c6cb ; > @ 0x1408b8350 ; > @ 0x1408b8360 ; > @ 0x1409200a8 ; > @ 0x1409200b4 ; ; 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:45 +0000 ; push rbx ; +0x0, 0x14034c740 push rbp ; +0x2, 0x14034c742 push rsi ; +0x3, 0x14034c743 push rdi ; +0x4, 0x14034c744 push r15 ; +0x5, 0x14034c745 sub rsp, 0B0h ; +0x7, 0x14034c747 mov [rsp+0D8h+var_30], r14 ; +0xe, 0x14034c74e mov rdi, rcx ; +0x16, 0x14034c756 mov r14, rdx ; +0x19, 0x14034c759 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1c, 0x14034c75c mov rcx, rax ; +0x22, 0x14034c762 lea rdx, [rsp+0D8h+arg_8] ; +0x25, 0x14034c765 call cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x2d, 0x14034c76d movss xmm0, dword ptr [rdi+1A8h] ; +0x33, 0x14034c773 lea rcx, [rsp+0D8h+arg_18] ; +0x3b, 0x14034c77b movss xmm1, [rsp+0D8h+arg_8] ; +0x43, 0x14034c783 movss xmm2, [rsp+0D8h+arg_C] ; +0x4c, 0x14034c78c divss xmm1, xmm0 ; +0x55, 0x14034c795 divss xmm2, xmm0 ; +0x59, 0x14034c799 movss [rsp+0D8h+arg_8], xmm1 ; +0x5d, 0x14034c79d mulss xmm1, cs:dword_140834F20 ; +0x66, 0x14034c7a6 movss [rsp+0D8h+arg_C], xmm2 ; +0x6e, 0x14034c7ae mulss xmm2, cs:dword_140834F20 ; +0x77, 0x14034c7b7 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x7f, 0x14034c7bf mov r8, rax ; +0x85, 0x14034c7c5 lea rcx, [rdi+410h] ; +0x88, 0x14034c7c8 lea rdx, [rsp+0D8h+arg_10] ; +0x8f, 0x14034c7cf call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x97, 0x14034c7d7 mov edx, [r14] ; +0x9d, 0x14034c7dd mov rcx, rdi ; +0xa0, 0x14034c7e0 mov rbx, [r14+10h] ; +0xa3, 0x14034c7e3 call GJBaseGameLayer__getGroup ; +0xa7, 0x14034c7e7 lea rcx, [rsp+0D8h+arg_0] ; +0xac, 0x14034c7ec mov rbp, rax ; +0xb4, 0x14034c7f4 call cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xb7, 0x14034c7f7 xor sil, sil ; +0xbd, 0x14034c7fd xor r15b, r15b ; +0xc0, 0x14034c800 cmp [rbx+7B0h], sil ; +0xc3, 0x14034c803 jz short loc_14034C82A ; +0xca, 0x14034c80a lea rdx, [rsp+0D8h+arg_10] ; +0xcc, 0x14034c80c mov sil, 1 ; +0xd4, 0x14034c814 lea rcx, [rsp+0D8h+arg_0] ; +0xd7, 0x14034c817 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xdf, 0x14034c81f jmp loc_14034C8F5 ; +0xe5, 0x14034c825 cmp [rbx+6A4h], sil ; +0xea, 0x14034c82a jz short loc_14034C877 ; +0xf1, 0x14034c831 mov rcx, [rdi+0DB8h] ; +0xf3, 0x14034c833 mov sil, 1 ; +0xfa, 0x14034c83a mov rax, [rcx] ; +0xfd, 0x14034c83d call qword ptr [rax+0C8h] ; +0x100, 0x14034c840 mov rdx, rax ; +0x106, 0x14034c846 lea rcx, [rsp+0D8h+arg_0] ; +0x109, 0x14034c849 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x111, 0x14034c851 cmp [rbx+6A5h], r15b ; +0x117, 0x14034c857 jz loc_14034C8F5 ; +0x11e, 0x14034c85e cmp [rdi+422h], r15b ; +0x124, 0x14034c864 jz loc_14034C8F5 ; +0x12b, 0x14034c86b movzx r15d, sil ; +0x131, 0x14034c871 jmp short loc_14034C8F5 ; +0x135, 0x14034c875 cmp [rbx+6A5h], sil ; +0x137, 0x14034c877 jz short loc_14034C8B8 ; +0x13e, 0x14034c87e mov sil, 1 ; +0x140, 0x14034c880 cmp [rdi+422h], r15b ; +0x143, 0x14034c883 jz short loc_14034C895 ; +0x14a, 0x14034c88a mov rcx, [rdi+0DC0h] ; +0x14c, 0x14034c88c jmp short loc_14034C89C ; +0x153, 0x14034c893 mov rcx, [rdi+0DB8h] ; +0x155, 0x14034c895 mov rax, [rcx] ; +0x15c, 0x14034c89c call qword ptr [rax+0C8h] ; +0x15f, 0x14034c89f mov rdx, rax ; +0x165, 0x14034c8a5 lea rcx, [rsp+0D8h+arg_0] ; +0x168, 0x14034c8a8 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x170, 0x14034c8b0 jmp short loc_14034C8F5 ; +0x176, 0x14034c8b6 mov edx, [r14+4] ; +0x178, 0x14034c8b8 mov rcx, rdi ; +0x17c, 0x14034c8bc call GJBaseGameLayer__tryGetMainObject ; +0x17f, 0x14034c8bf test rax, rax ; +0x184, 0x14034c8c4 jz short loc_14034C8F5 ; +0x187, 0x14034c8c7 mov rcx, [rax] ; +0x189, 0x14034c8c9 lea rdx, [rsp+0D8h+arg_18] ; +0x18c, 0x14034c8cc mov r8, [rcx+4B8h] ; +0x194, 0x14034c8d4 mov rcx, rax ; +0x19b, 0x14034c8db call r8 ; +0x19e, 0x14034c8de mov rdx, rax ; +0x1a1, 0x14034c8e1 lea rcx, [rsp+0D8h+arg_0] ; +0x1a4, 0x14034c8e4 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x1ac, 0x14034c8ec mov sil, 1 ; +0x1b2, 0x14034c8f2 mov r14, [rsp+0D8h+var_30] ; +0x1b5, 0x14034c8f5 test rbp, rbp ; +0x1bd, 0x14034c8fd jz loc_14034CAF8 ; +0x1c0, 0x14034c900 mov rcx, rbp ; +0x1c6, 0x14034c906 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1c9, 0x14034c909 test eax, eax ; +0x1cf, 0x14034c90f jz loc_14034CAF8 ; +0x1d1, 0x14034c911 test sil, sil ; +0x1d7, 0x14034c917 jz loc_14034CAF8 ; +0x1da, 0x14034c91a mov eax, [rbx+7A0h] ; +0x1e0, 0x14034c920 lea rdx, [rsp+0D8h+arg_0] ; +0x1e6, 0x14034c926 mov esi, [rbx+7ACh] ; +0x1ee, 0x14034c92e movaps [rsp+0D8h+var_48], xmm6 ; +0x1f4, 0x14034c934 movss xmm6, dword ptr [rbx+79Ch] ; +0x1fc, 0x14034c93c movaps [rsp+0D8h+var_58], xmm7 ; +0x204, 0x14034c944 lea ecx, [rax+rax*2] ; +0x20c, 0x14034c94c mov eax, [rbx+7A4h] ; +0x20f, 0x14034c94f movaps [rsp+0D8h+var_68], xmm8 ; +0x215, 0x14034c955 movd xmm7, ecx ; +0x21b, 0x14034c95b movaps [rsp+0D8h+var_78], xmm9 ; +0x21f, 0x14034c95f lea ecx, [rax+rax*2] ; +0x225, 0x14034c965 movaps [rsp+0D8h+var_88], xmm10 ; +0x228, 0x14034c968 mov eax, [rbx+7A8h] ; +0x22e, 0x14034c96e movd xmm10, ecx ; +0x234, 0x14034c974 cvtdq2ps xmm10, xmm10 ; +0x239, 0x14034c979 lea ecx, [rax+rax*2] ; +0x23d, 0x14034c97d movaps [rsp+0D8h+var_98], xmm11 ; +0x240, 0x14034c980 movss xmm11, dword ptr [rbx+794h] ; +0x246, 0x14034c986 movd xmm8, ecx ; +0x24f, 0x14034c98f lea rcx, [rsp+0D8h+arg_18] ; +0x254, 0x14034c994 cvtdq2ps xmm7, xmm7 ; +0x25c, 0x14034c99c cvtdq2ps xmm8, xmm8 ; +0x25f, 0x14034c99f addss xmm10, xmm7 ; +0x263, 0x14034c9a3 addss xmm8, xmm10 ; +0x268, 0x14034c9a8 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x26d, 0x14034c9ad movaps xmm3, xmm7 ; +0x273, 0x14034c9b3 mov [rsp+0D8h+var_B8], esi ; +0x276, 0x14034c9b6 mov rdx, rax ; +0x27a, 0x14034c9ba mov r8, rbp ; +0x27d, 0x14034c9bd call GJBaseGameLayer__getMinDistance ; +0x280, 0x14034c9c0 movaps xmm9, xmm0 ; +0x285, 0x14034c9c5 test r15b, r15b ; +0x289, 0x14034c9c9 jz short loc_14034CA41 ; +0x28c, 0x14034c9cc comiss xmm9, xmm7 ; +0x28e, 0x14034c9ce jbe short loc_14034CA41 ; +0x292, 0x14034c9d2 mov rcx, [rdi+0DC0h] ; +0x294, 0x14034c9d4 mov rax, [rcx] ; +0x29b, 0x14034c9db call qword ptr [rax+0C8h] ; +0x29e, 0x14034c9de mov rdx, rax ; +0x2a4, 0x14034c9e4 lea rcx, [rsp+0D8h+arg_18] ; +0x2a7, 0x14034c9e7 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x2af, 0x14034c9ef movaps xmm3, xmm7 ; +0x2b5, 0x14034c9f5 mov [rsp+0D8h+var_B8], esi ; +0x2b8, 0x14034c9f8 mov rdx, rax ; +0x2bc, 0x14034c9fc mov r8, rbp ; +0x2bf, 0x14034c9ff call GJBaseGameLayer__getMinDistance ; +0x2c2, 0x14034ca02 comiss xmm0, xmm9 ; +0x2c7, 0x14034ca07 ja short loc_14034CA41 ; +0x2cb, 0x14034ca0b mov rcx, [rdi+0DC0h] ; +0x2cd, 0x14034ca0d mov rax, [rcx] ; +0x2d4, 0x14034ca14 call qword ptr [rax+0C8h] ; +0x2d7, 0x14034ca17 mov rdx, rax ; +0x2dd, 0x14034ca1d lea rcx, [rsp+0D8h+var_A8] ; +0x2e0, 0x14034ca20 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x2e5, 0x14034ca25 movaps xmm3, xmm7 ; +0x2eb, 0x14034ca2b mov [rsp+0D8h+var_B8], esi ; +0x2ee, 0x14034ca2e mov rdx, rax ; +0x2f2, 0x14034ca32 mov r8, rbp ; +0x2f5, 0x14034ca35 call GJBaseGameLayer__getMinDistance ; +0x2f8, 0x14034ca38 movaps xmm9, xmm0 ; +0x2fd, 0x14034ca3d comiss xmm7, xmm9 ; +0x301, 0x14034ca41 jb short loc_14034CA4C ; +0x305, 0x14034ca45 xorps xmm0, xmm0 ; +0x307, 0x14034ca47 jmp short loc_14034CAB1 ; +0x30a, 0x14034ca4a comiss xmm9, xmm8 ; +0x30c, 0x14034ca4c jb short loc_14034CA5C ; +0x310, 0x14034ca50 movss xmm0, cs:flt_140835080 ; +0x312, 0x14034ca52 jmp short loc_14034CAB1 ; +0x31a, 0x14034ca5a xorps xmm0, xmm0 ; +0x31c, 0x14034ca5c comiss xmm10, xmm0 ; +0x31f, 0x14034ca5f jbe short loc_14034CA97 ; +0x323, 0x14034ca63 comiss xmm9, xmm10 ; +0x325, 0x14034ca65 jb short loc_14034CA82 ; +0x329, 0x14034ca69 movss xmm11, dword ptr [rbx+798h] ; +0x32b, 0x14034ca6b movaps xmm7, xmm10 ; +0x334, 0x14034ca74 movss xmm6, dword ptr [rbx+79Ch] ; +0x338, 0x14034ca78 jmp short loc_14034CA97 ; +0x340, 0x14034ca80 movss xmm11, dword ptr [rbx+794h] ; +0x342, 0x14034ca82 movaps xmm8, xmm10 ; +0x34b, 0x14034ca8b movss xmm6, dword ptr [rbx+798h] ; +0x34f, 0x14034ca8f ucomiss xmm7, xmm8 ; +0x357, 0x14034ca97 jp short loc_14034CA9F ; +0x35b, 0x14034ca9b jz short loc_14034CAB1 ; +0x35d, 0x14034ca9d movaps xmm0, xmm9 ; +0x35f, 0x14034ca9f subss xmm8, xmm7 ; +0x363, 0x14034caa3 subss xmm0, xmm7 ; +0x368, 0x14034caa8 divss xmm0, xmm8 ; +0x36c, 0x14034caac movaps xmm10, [rsp+0D8h+var_88] ; +0x371, 0x14034cab1 subss xmm6, xmm11 ; +0x377, 0x14034cab7 movaps xmm9, [rsp+0D8h+var_78] ; +0x37c, 0x14034cabc movaps xmm8, [rsp+0D8h+var_68] ; +0x382, 0x14034cac2 movaps xmm7, [rsp+0D8h+var_58] ; +0x388, 0x14034cac8 mulss xmm6, xmm0 ; +0x390, 0x14034cad0 addss xmm6, xmm11 ; +0x394, 0x14034cad4 movaps xmm11, [rsp+0D8h+var_98] ; +0x399, 0x14034cad9 movaps xmm0, xmm6 ; +0x39f, 0x14034cadf movaps xmm6, [rsp+0D8h+var_48] ; +0x3a2, 0x14034cae2 add rsp, 0B0h ; +0x3aa, 0x14034caea pop r15 ; +0x3b1, 0x14034caf1 pop rdi ; +0x3b3, 0x14034caf3 pop rsi ; +0x3b4, 0x14034caf4 pop rbp ; +0x3b5, 0x14034caf5 pop rbx ; +0x3b6, 0x14034caf6 retn ; +0x3b7, 0x14034caf7 movss xmm0, cs:flt_140835080 ; +0x3b8, 0x14034caf8 add rsp, 0B0h ; +0x3c0, 0x14034cb00 pop r15 ; +0x3c7, 0x14034cb07 pop rdi ; +0x3c9, 0x14034cb09 pop rsi ; +0x3ca, 0x14034cb0a pop rbp ; +0x3cb, 0x14034cb0b pop rbx ; +0x3cc, 0x14034cb0c retn ; +0x3cd, 0x14034cb0d