; ; GJBaseGameLayer::addProximityVolumeEffect from 0x10015e6e0 to 0x10015e90d (557 bytes) ; ; 4 xrefs: ; > GJBaseGameLayer::activateSongEditTrigger @ 0x10015a64d ; > GJBaseGameLayer::activateSFXTrigger @ 0x10015aa99 ; > GJBaseGameLayer::activateSFXEditTrigger @ 0x10015add5 ; > GJBaseGameLayer::activateSFXEditTrigger @ 0x10015ae5f ; ; 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, 0x10015e6e0 mov rbp, rsp ; +0x1, 0x10015e6e1 push r15 ; +0x4, 0x10015e6e4 push r14 ; +0x6, 0x10015e6e6 push r13 ; +0x8, 0x10015e6e8 push r12 ; +0xa, 0x10015e6ea push rbx ; +0xc, 0x10015e6ec sub rsp, 38h ; +0xd, 0x10015e6ed mov r12, rcx ; +0x11, 0x10015e6f1 mov r15d, edx ; +0x14, 0x10015e6f4 mov r14d, esi ; +0x17, 0x10015e6f7 mov rbx, rdi ; +0x1a, 0x10015e6fa lea rdx, [rdi+6F0h] ; +0x1d, 0x10015e6fd mov rdi, [rdi+6F0h] ; +0x24, 0x10015e704 test rdi, rdi ; +0x2b, 0x10015e70b mov [rbp+var_48], rbx ; +0x2e, 0x10015e70e mov [rbp+var_40], rcx ; +0x32, 0x10015e712 jz short loc_10015E78D ; +0x36, 0x10015e716 mov r13, rdx ; +0x38, 0x10015e718 mov rax, rdi ; +0x3b, 0x10015e71b jmp short loc_10015E72C ; +0x3e, 0x10015e71e add rax, 8 ; +0x40, 0x10015e720 mov rax, [rax] ; +0x44, 0x10015e724 test rax, rax ; +0x47, 0x10015e727 jz short loc_10015E753 ; +0x4a, 0x10015e72a cmp [rax+20h], r14d ; +0x4c, 0x10015e72c jl short loc_10015E720 ; +0x50, 0x10015e730 jle short loc_10015E740 ; +0x52, 0x10015e732 mov r13, rax ; +0x54, 0x10015e734 jmp short loc_10015E724 ; +0x57, 0x10015e737 align 20h ; +0x59, 0x10015e739 xor ecx, ecx ; +0x60, 0x10015e740 cmp [rax+24h], r15d ; +0x62, 0x10015e742 setl cl ; +0x66, 0x10015e746 cmovge r13, rax ; +0x69, 0x10015e749 lea rax, [rax+rcx*8] ; +0x6d, 0x10015e74d jmp short loc_10015E724 ; +0x71, 0x10015e751 cmp r13, rdx ; +0x73, 0x10015e753 jz loc_10015E7F2 ; +0x76, 0x10015e756 cmp [r13+20h], r14d ; +0x7c, 0x10015e75c jg loc_10015E7F2 ; +0x80, 0x10015e760 jl short loc_10015E772 ; +0x86, 0x10015e766 cmp [r13+24h], r15d ; +0x88, 0x10015e768 jg loc_10015E7F2 ; +0x8c, 0x10015e76c mov rcx, [r13+8] ; +0x92, 0x10015e772 test rcx, rcx ; +0x96, 0x10015e776 jz short loc_10015E7A8 ; +0x99, 0x10015e779 nop dword ptr [rax+rax+00h] ; +0x9b, 0x10015e77b mov rax, rcx ; +0xa0, 0x10015e780 mov rcx, [rcx] ; +0xa3, 0x10015e783 test rcx, rcx ; +0xa6, 0x10015e786 jnz short loc_10015E780 ; +0xa9, 0x10015e789 jmp short loc_10015E7BC ; +0xab, 0x10015e78b movsd xmm0, qword ptr [r12+5B8h] ; +0xad, 0x10015e78d movaps [rbp+var_60], xmm0 ; +0xb7, 0x10015e797 mov eax, [r12+688h] ; +0xbb, 0x10015e79b mov [rbp+var_34], eax ; +0xc3, 0x10015e7a3 jmp short loc_10015E810 ; +0xc6, 0x10015e7a6 mov rcx, r13 ; +0xc8, 0x10015e7a8 nop dword ptr [rax+rax+00h] ; +0xcb, 0x10015e7ab mov rax, [rcx+10h] ; +0xd0, 0x10015e7b0 cmp [rax], rcx ; +0xd4, 0x10015e7b4 mov rcx, rax ; +0xd7, 0x10015e7b7 jnz short loc_10015E7B0 ; +0xda, 0x10015e7ba mov [rbp+var_30], rdx ; +0xdc, 0x10015e7bc cmp [rbx+6E8h], r13 ; +0xe0, 0x10015e7c0 jnz short loc_10015E7D0 ; +0xe7, 0x10015e7c7 mov [rbx+6E8h], rax ; +0xe9, 0x10015e7c9 dec qword ptr [rbx+6F8h] ; +0xf0, 0x10015e7d0 mov rsi, r13 ; +0xf7, 0x10015e7d7 call sub_100165F60 ; +0xfa, 0x10015e7da mov rdi, r13; __p ; +0xff, 0x10015e7df call __ZdlPv; operator delete(void *) ; +0x102, 0x10015e7e2 mov rdi, [rbx+6F0h] ; +0x107, 0x10015e7e7 mov rdx, [rbp+var_30] ; +0x10e, 0x10015e7ee movsd xmm0, qword ptr [r12+5B8h] ; +0x112, 0x10015e7f2 mov eax, [r12+688h] ; +0x11c, 0x10015e7fc test rdi, rdi ; +0x124, 0x10015e804 movaps [rbp+var_60], xmm0 ; +0x127, 0x10015e807 mov [rbp+var_34], eax ; +0x12b, 0x10015e80b jnz short loc_10015E829 ; +0x12e, 0x10015e80e mov r13, rdx ; +0x130, 0x10015e810 mov [rbp+var_30], rdx ; +0x133, 0x10015e813 jmp short loc_10015E857 ; +0x137, 0x10015e817 align 20h ; +0x139, 0x10015e819 mov rdi, [r13+0] ; +0x140, 0x10015e820 test rdi, rdi ; +0x144, 0x10015e824 jz short loc_10015E853 ; +0x147, 0x10015e827 mov r13, rdi ; +0x149, 0x10015e829 cmp [rdi+20h], r14d ; +0x14c, 0x10015e82c jg short loc_10015E820 ; +0x150, 0x10015e830 jl short loc_10015E840 ; +0x152, 0x10015e832 cmp [r13+24h], r15d ; +0x154, 0x10015e834 jg short loc_10015E820 ; +0x158, 0x10015e838 jge loc_10015E8D3 ; +0x15a, 0x10015e83a mov rdi, [r13+8] ; +0x160, 0x10015e840 test rdi, rdi ; +0x164, 0x10015e844 jnz short loc_10015E829 ; +0x167, 0x10015e847 lea rcx, [r13+8] ; +0x169, 0x10015e849 mov [rbp+var_30], rcx ; +0x16d, 0x10015e84d jmp short loc_10015E857 ; +0x171, 0x10015e851 mov [rbp+var_30], r13 ; +0x173, 0x10015e853 mov r12, r13 ; +0x177, 0x10015e857 mov rbx, r15 ; +0x17a, 0x10015e85a shl rbx, 20h ; +0x17d, 0x10015e85d mov edi, 40h ; '@'; __sz ; +0x181, 0x10015e861 call __Znwm; operator new(ulong) ; +0x186, 0x10015e866 mov r13, rax ; +0x18b, 0x10015e86b mov eax, r14d ; +0x18e, 0x10015e86e or rax, rbx ; +0x191, 0x10015e871 mov [r13+20h], rax ; +0x194, 0x10015e874 movaps xmm0, [rbp+var_60] ; +0x198, 0x10015e878 movlps qword ptr [r13+28h], xmm0 ; +0x19c, 0x10015e87c mov eax, [rbp+var_34] ; +0x1a1, 0x10015e881 mov [r13+30h], eax ; +0x1a4, 0x10015e884 mov rax, [rbp+var_40] ; +0x1a8, 0x10015e888 mov [r13+38h], rax ; +0x1ac, 0x10015e88c xorps xmm0, xmm0 ; +0x1b0, 0x10015e890 movups xmmword ptr [r13+0], xmm0 ; +0x1b3, 0x10015e893 mov [r13+10h], r12 ; +0x1b8, 0x10015e898 mov rax, [rbp+var_30] ; +0x1bc, 0x10015e89c mov [rax], r13 ; +0x1c0, 0x10015e8a0 mov rbx, [rbp+var_48] ; +0x1c3, 0x10015e8a3 mov rax, [rbx+6E8h] ; +0x1c7, 0x10015e8a7 mov rax, [rax] ; +0x1ce, 0x10015e8ae test rax, rax ; +0x1d1, 0x10015e8b1 jz short loc_10015E8BD ; +0x1d4, 0x10015e8b4 mov [rbx+6E8h], rax ; +0x1d6, 0x10015e8b6 mov rdi, [rbx+6F0h] ; +0x1dd, 0x10015e8bd mov rsi, r13 ; +0x1e4, 0x10015e8c4 call sub_100054DD0 ; +0x1e7, 0x10015e8c7 inc qword ptr [rbx+6F8h] ; +0x1ec, 0x10015e8cc add r13, 28h ; '(' ; +0x1f3, 0x10015e8d3 mov rdi, rbx ; +0x1f7, 0x10015e8d7 mov rsi, r13 ; +0x1fa, 0x10015e8da call GJBaseGameLayer__volumeForProximityEffect ; +0x1fd, 0x10015e8dd movss dword ptr [rbp+var_30], xmm0 ; +0x202, 0x10015e8e2 call FMODAudioEngine__sharedEngine ; +0x207, 0x10015e8e7 mov rdi, rax ; +0x20c, 0x10015e8ec mov esi, r14d ; +0x20f, 0x10015e8ef mov edx, r15d ; +0x212, 0x10015e8f2 movss xmm0, dword ptr [rbp+var_30] ; +0x215, 0x10015e8f5 add rsp, 38h ; +0x21a, 0x10015e8fa pop rbx ; +0x21e, 0x10015e8fe pop r12 ; +0x21f, 0x10015e8ff pop r13 ; +0x221, 0x10015e901 pop r14 ; +0x223, 0x10015e903 pop r15 ; +0x225, 0x10015e905 pop rbp ; +0x227, 0x10015e907 jmp FMODAudioEngine__setChannelVolumeMod ; +0x228, 0x10015e908