; ; cocos2d::extension::CCControlPotentiometer::potentiometerMoved from 0x1800095c0 to 0x180009711 (337 bytes) ; ; 3 xrefs: ; > cocos2d::extension::CCControlPotentiometer::ccTouchMoved @ 0x180009457 ; > @ 0x18002fdf8 ; > @ 0x1800499f0 ; ; 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_8], rbx ; +0x0, 0x1800095c0 push rbp ; +0x5, 0x1800095c5 push rsi ; +0x6, 0x1800095c6 push rdi ; +0x7, 0x1800095c7 push r14 ; +0x8, 0x1800095c8 push r15 ; +0xa, 0x1800095ca sub rsp, 40h ; +0xc, 0x1800095cc mov r14, rdx ; +0x10, 0x1800095d0 movaps [rsp+68h+var_38], xmm6 ; +0x13, 0x1800095d3 lea rdx, [rcx+1E8h] ; +0x18, 0x1800095d8 mov rbp, rcx ; +0x1f, 0x1800095df lea rcx, [rsp+68h+arg_0] ; +0x22, 0x1800095e2 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x27, 0x1800095e7 mov rcx, [rbp+1E0h] ; +0x2d, 0x1800095ed mov rsi, rax ; +0x34, 0x1800095f4 mov r8, [rcx] ; +0x37, 0x1800095f7 call qword ptr [r8+0C8h] ; +0x3a, 0x1800095fa mov rdx, rax ; +0x41, 0x180009601 lea rcx, [rsp+68h+arg_10] ; +0x44, 0x180009604 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x4c, 0x18000960c mov rdx, r14 ; +0x52, 0x180009612 lea rcx, [rsp+68h+arg_18] ; +0x55, 0x180009615 mov rdi, rax ; +0x5d, 0x18000961d call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x60, 0x180009620 mov rcx, [rbp+1E0h] ; +0x66, 0x180009626 mov rbx, rax ; +0x6d, 0x18000962d mov rdx, [rcx] ; +0x70, 0x180009630 call qword ptr [rdx+0C8h] ; +0x73, 0x180009633 mov rdx, rax ; +0x79, 0x180009639 lea rcx, [rsp+68h+var_48] ; +0x7c, 0x18000963c call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x81, 0x180009641 movss xmm0, dword ptr [rbx] ; +0x87, 0x180009647 movss xmm1, dword ptr [rbx+4] ; +0x8b, 0x18000964b subss xmm0, dword ptr [rax]; Y ; +0x90, 0x180009650 subss xmm1, dword ptr [rax+4]; X ; +0x94, 0x180009654 call atan2f ; +0x99, 0x180009659 movss xmm1, dword ptr [rsi+4] ; +0x9e, 0x18000965e movaps xmm6, xmm0 ; +0xa3, 0x180009663 movss xmm0, dword ptr [rsi] ; +0xa6, 0x180009666 subss xmm0, dword ptr [rdi]; Y ; +0xaa, 0x18000966a subss xmm1, dword ptr [rdi+4]; X ; +0xae, 0x18000966e call atan2f ; +0xb3, 0x180009673 movss xmm3, cs:dword_1800295C8 ; +0xb8, 0x180009678 subss xmm6, xmm0 ; +0xc0, 0x180009680 xorps xmm0, xmm0 ; +0xc4, 0x180009684 mulss xmm6, cs:dword_1800295BC ; +0xc7, 0x180009687 cvtss2sd xmm0, xmm6 ; +0xcf, 0x18000968f divsd xmm0, cs:qword_180029548 ; +0xd3, 0x180009693 cvtpd2ps xmm2, xmm0 ; +0xdb, 0x18000969b comiss xmm2, cs:dword_1800295BC ; +0xdf, 0x18000969f jbe short loc_1800096B2 ; +0xe6, 0x1800096a6 addss xmm2, cs:dword_1800295DC ; +0xe8, 0x1800096a8 jmp short loc_1800096C3 ; +0xf0, 0x1800096b0 movss xmm0, cs:dword_1800295D8 ; +0xf2, 0x1800096b2 comiss xmm0, xmm2 ; +0xfa, 0x1800096ba jbe short loc_1800096C3 ; +0xfd, 0x1800096bd addss xmm2, xmm3 ; +0xff, 0x1800096bf movss xmm1, dword ptr [rbp+1F8h] ; +0x103, 0x1800096c3 mov rcx, rbp; this ; +0x10b, 0x1800096cb subss xmm1, dword ptr [rbp+1F4h] ; +0x10e, 0x1800096ce divss xmm2, xmm3 ; +0x116, 0x1800096d6 mulss xmm1, xmm2 ; +0x11a, 0x1800096da addss xmm1, dword ptr [rbp+1F0h]; float ; +0x11e, 0x1800096de call ?setValue@CCControlPotentiometer@extension@cocos2d@@QEAAXM@Z; cocos2d::extension::CCControlPotentiometer::setValue(float) ; +0x126, 0x1800096e6 mov rdx, r14 ; +0x12b, 0x1800096eb lea rcx, [rbp+1E8h] ; +0x12e, 0x1800096ee mov rbx, [rsp+68h+arg_8] ; +0x135, 0x1800096f5 movaps xmm6, [rsp+68h+var_38] ; +0x13a, 0x1800096fa add rsp, 40h ; +0x13f, 0x1800096ff pop r15 ; +0x143, 0x180009703 pop r14 ; +0x145, 0x180009705 pop rdi ; +0x147, 0x180009707 pop rsi ; +0x148, 0x180009708 pop rbp ; +0x149, 0x180009709 jmp cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x14a, 0x18000970a