; ; cocos2d::extension::CCControlSaturationBrightnessPicker::checkSliderPosition from 0x180009b80 to 0x180009ca1 (289 bytes) ; ; 4 xrefs: ; > cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchBegan @ 0x180009d11 ; > cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchMoved @ 0x180009d6a ; > @ 0x180032408 ; > @ 0x18004b9cc ; ; 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, 0x180009b80 mov [rsp+arg_10], rsi ; +0x5, 0x180009b85 push rdi ; +0xa, 0x180009b8a sub rsp, 50h ; +0xb, 0x180009b8b mov rsi, rdx ; +0xf, 0x180009b8f movaps [rsp+58h+var_18], xmm6 ; +0x12, 0x180009b92 mov rbx, rcx ; +0x17, 0x180009b97 movaps [rsp+58h+var_28], xmm7 ; +0x1a, 0x180009b9a mov rcx, [rcx+1E0h] ; +0x1f, 0x180009b9f lea rdx, [rsp+58h+var_38] ; +0x26, 0x180009ba6 movzx edi, r8b ; +0x2b, 0x180009bab call cs:?boundingBox@CCNode@cocos2d@@QEAA?AVCCRect@2@XZ; cocos2d::CCNode::boundingBox(void) ; +0x2f, 0x180009baf mov rcx, [rbx+1E0h] ; +0x35, 0x180009bb5 lea rdx, [rsp+58h+var_38] ; +0x3c, 0x180009bbc movss xmm6, dword ptr [rbx+204h] ; +0x41, 0x180009bc1 movss xmm7, dword ptr [rax+8] ; +0x49, 0x180009bc9 mulss xmm7, cs:dword_18002BBD8 ; +0x4e, 0x180009bce addss xmm7, dword ptr [rbx+200h] ; +0x56, 0x180009bd6 call cs:?boundingBox@CCNode@cocos2d@@QEAA?AVCCRect@2@XZ; cocos2d::CCNode::boundingBox(void) ; +0x5e, 0x180009bde movss xmm1, dword ptr [rsi] ; +0x64, 0x180009be4 movss xmm2, dword ptr [rsi+4] ; +0x68, 0x180009be8 subss xmm1, xmm7 ; +0x6d, 0x180009bed movss xmm0, dword ptr [rax+0Ch] ; +0x71, 0x180009bf1 mulss xmm0, cs:dword_18002BBD8 ; +0x76, 0x180009bf6 mulss xmm1, xmm1 ; +0x7e, 0x180009bfe addss xmm0, xmm6 ; +0x82, 0x180009c02 subss xmm2, xmm0 ; +0x86, 0x180009c06 xorps xmm0, xmm0 ; +0x8a, 0x180009c0a mulss xmm2, xmm2 ; +0x8d, 0x180009c0d addss xmm2, xmm1 ; +0x91, 0x180009c11 ucomiss xmm0, xmm2 ; +0x95, 0x180009c15 ja short loc_180009C23 ; +0x98, 0x180009c18 xorps xmm6, xmm6 ; +0x9a, 0x180009c1a sqrtss xmm6, xmm2 ; +0x9d, 0x180009c1d jmp short loc_180009C2E ; +0xa1, 0x180009c21 movaps xmm0, xmm2; X ; +0xa3, 0x180009c23 call sqrtf ; +0xa6, 0x180009c26 movaps xmm6, xmm0 ; +0xab, 0x180009c2b mov rcx, [rbx+1E0h] ; +0xae, 0x180009c2e lea rdx, [rsp+58h+var_38] ; +0xb5, 0x180009c35 call cs:?boundingBox@CCNode@cocos2d@@QEAA?AVCCRect@2@XZ; cocos2d::CCNode::boundingBox(void) ; +0xba, 0x180009c3a movss xmm1, dword ptr [rax+8] ; +0xc0, 0x180009c40 mulss xmm1, cs:dword_18002BBD8 ; +0xc5, 0x180009c45 comiss xmm1, xmm6 ; +0xcd, 0x180009c4d jnb short loc_180009C5B ; +0xd0, 0x180009c50 test dil, dil ; +0xd2, 0x180009c52 jnz short loc_180009C5B ; +0xd5, 0x180009c55 xor al, al ; +0xd7, 0x180009c57 jmp short loc_180009C87 ; +0xd9, 0x180009c59 mov rdx, rsi ; +0xdb, 0x180009c5b lea rcx, [rsp+58h+arg_0] ; +0xde, 0x180009c5e call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xe3, 0x180009c63 mov rdx, rax ; +0xe9, 0x180009c69 mov rcx, rbx ; +0xec, 0x180009c6c call ?updateSliderPosition@CCControlSaturationBrightnessPicker@extension@cocos2d@@IEAAXVCCPoint@3@@Z; cocos2d::extension::CCControlSaturationBrightnessPicker::updateSliderPosition(cocos2d::CCPoint) ; +0xef, 0x180009c6f mov rax, [rbx] ; +0xf4, 0x180009c74 mov edx, 100h ; +0xf7, 0x180009c77 mov rcx, rbx ; +0xfc, 0x180009c7c call qword ptr [rax+440h] ; +0xff, 0x180009c7f mov al, 1 ; +0x105, 0x180009c85 mov rbx, [rsp+58h+arg_8] ; +0x107, 0x180009c87 mov rsi, [rsp+58h+arg_10] ; +0x10c, 0x180009c8c movaps xmm6, [rsp+58h+var_18] ; +0x111, 0x180009c91 movaps xmm7, [rsp+58h+var_28] ; +0x116, 0x180009c96 add rsp, 50h ; +0x11b, 0x180009c9b pop rdi ; +0x11f, 0x180009c9f retn ; +0x120, 0x180009ca0