; ; cocos2d::extension::CCControlPotentiometer::potentiometerMoved from 0x180009070 to 0x1800091c1 (337 bytes) ; ; 3 xrefs: ; > cocos2d::extension::CCControlPotentiometer::ccTouchMoved @ 0x180008f07 ; > @ 0x180032408 ; > @ 0x18004b924 ; ; 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 12:15:37 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x180009070 push rbp ; +0x5, 0x180009075 push rsi ; +0x6, 0x180009076 push rdi ; +0x7, 0x180009077 push r14 ; +0x8, 0x180009078 push r15 ; +0xa, 0x18000907a sub rsp, 40h ; +0xc, 0x18000907c mov r14, rdx ; +0x10, 0x180009080 movaps [rsp+68h+var_38], xmm6 ; +0x13, 0x180009083 lea rdx, [rcx+1E8h] ; +0x18, 0x180009088 mov rbp, rcx ; +0x1f, 0x18000908f lea rcx, [rsp+68h+arg_0] ; +0x22, 0x180009092 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x27, 0x180009097 mov rcx, [rbp+1E0h] ; +0x2d, 0x18000909d mov rsi, rax ; +0x34, 0x1800090a4 mov r8, [rcx] ; +0x37, 0x1800090a7 call qword ptr [r8+0C8h] ; +0x3a, 0x1800090aa mov rdx, rax ; +0x41, 0x1800090b1 lea rcx, [rsp+68h+arg_10] ; +0x44, 0x1800090b4 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x4c, 0x1800090bc mov rdx, r14 ; +0x52, 0x1800090c2 lea rcx, [rsp+68h+arg_18] ; +0x55, 0x1800090c5 mov rdi, rax ; +0x5d, 0x1800090cd call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x60, 0x1800090d0 mov rcx, [rbp+1E0h] ; +0x66, 0x1800090d6 mov rbx, rax ; +0x6d, 0x1800090dd mov rdx, [rcx] ; +0x70, 0x1800090e0 call qword ptr [rdx+0C8h] ; +0x73, 0x1800090e3 mov rdx, rax ; +0x79, 0x1800090e9 lea rcx, [rsp+68h+var_48] ; +0x7c, 0x1800090ec call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x81, 0x1800090f1 movss xmm0, dword ptr [rbx] ; +0x87, 0x1800090f7 movss xmm1, dword ptr [rbx+4] ; +0x8b, 0x1800090fb subss xmm0, dword ptr [rax]; Y ; +0x90, 0x180009100 subss xmm1, dword ptr [rax+4]; X ; +0x94, 0x180009104 call atan2f ; +0x99, 0x180009109 movss xmm1, dword ptr [rsi+4] ; +0x9e, 0x18000910e movaps xmm6, xmm0 ; +0xa3, 0x180009113 movss xmm0, dword ptr [rsi] ; +0xa6, 0x180009116 subss xmm0, dword ptr [rdi]; Y ; +0xaa, 0x18000911a subss xmm1, dword ptr [rdi+4]; X ; +0xae, 0x18000911e call atan2f ; +0xb3, 0x180009123 movss xmm3, cs:dword_18002BC90 ; +0xb8, 0x180009128 subss xmm6, xmm0 ; +0xc0, 0x180009130 xorps xmm0, xmm0 ; +0xc4, 0x180009134 mulss xmm6, cs:dword_18002BC84 ; +0xc7, 0x180009137 cvtss2sd xmm0, xmm6 ; +0xcf, 0x18000913f divsd xmm0, cs:qword_18002BC10 ; +0xd3, 0x180009143 cvtpd2ps xmm2, xmm0 ; +0xdb, 0x18000914b comiss xmm2, cs:dword_18002BC84 ; +0xdf, 0x18000914f jbe short loc_180009162 ; +0xe6, 0x180009156 addss xmm2, cs:dword_18002BCA4 ; +0xe8, 0x180009158 jmp short loc_180009173 ; +0xf0, 0x180009160 movss xmm0, cs:dword_18002BCA0 ; +0xf2, 0x180009162 comiss xmm0, xmm2 ; +0xfa, 0x18000916a jbe short loc_180009173 ; +0xfd, 0x18000916d addss xmm2, xmm3 ; +0xff, 0x18000916f movss xmm1, dword ptr [rbp+1F8h] ; +0x103, 0x180009173 mov rcx, rbp; this ; +0x10b, 0x18000917b subss xmm1, dword ptr [rbp+1F4h] ; +0x10e, 0x18000917e divss xmm2, xmm3 ; +0x116, 0x180009186 mulss xmm1, xmm2 ; +0x11a, 0x18000918a addss xmm1, dword ptr [rbp+1F0h]; float ; +0x11e, 0x18000918e call ?setValue@CCControlPotentiometer@extension@cocos2d@@QEAAXM@Z; cocos2d::extension::CCControlPotentiometer::setValue(float) ; +0x126, 0x180009196 mov rdx, r14 ; +0x12b, 0x18000919b lea rcx, [rbp+1E8h] ; +0x12e, 0x18000919e mov rbx, [rsp+68h+arg_8] ; +0x135, 0x1800091a5 movaps xmm6, [rsp+68h+var_38] ; +0x13a, 0x1800091aa add rsp, 40h ; +0x13f, 0x1800091af pop r15 ; +0x143, 0x1800091b3 pop r14 ; +0x145, 0x1800091b5 pop rdi ; +0x147, 0x1800091b7 pop rsi ; +0x148, 0x1800091b8 pop rbp ; +0x149, 0x1800091b9 jmp cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x14a, 0x1800091ba