; ; GJScaleControl::ccTouchMoved from 0x14012a770 to 0x14012ab83 (1043 bytes) ; ; 4 xrefs: ; > @ 0x140552be8 ; > @ 0x140670998 ; > @ 0x1406709a8 ; > @ 0x1406c9b10 ; ; 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 r11, rsp ; +0x0, 0x14012a770 mov [r11+10h], rbx ; +0x3, 0x14012a773 mov [r11+18h], rbp ; +0x7, 0x14012a777 push rsi ; +0xb, 0x14012a77b sub rsp, 80h ; +0xc, 0x14012a77c mov eax, [rdx+38h] ; +0x13, 0x14012a783 mov rbp, r8 ; +0x16, 0x14012a786 mov rsi, rdx ; +0x19, 0x14012a789 mov rbx, rcx ; +0x1c, 0x14012a78c cmp [rcx+70h], eax ; +0x1f, 0x14012a78f jnz loc_14012AB6E ; +0x22, 0x14012a792 movzx eax, word ptr [rcx+8Ah] ; +0x28, 0x14012a798 mov [r11+8], rdi ; +0x2f, 0x14012a79f movaps [rsp+88h+var_18], xmm6 ; +0x33, 0x14012a7a3 movaps [rsp+88h+var_28], xmm7 ; +0x38, 0x14012a7a8 movaps xmmword ptr [r11-38h], xmm8 ; +0x3d, 0x14012a7ad movaps xmmword ptr [r11-48h], xmm9 ; +0x42, 0x14012a7b2 movaps xmmword ptr [r11-58h], xmm10 ; +0x47, 0x14012a7b7 movaps xmmword ptr [r11-68h], xmm11 ; +0x4c, 0x14012a7bc test ax, ax ; +0x51, 0x14012a7c1 jnz short loc_14012A7CC ; +0x54, 0x14012a7c4 mov rdi, [rcx+58h] ; +0x56, 0x14012a7c6 jmp short loc_14012A7DC ; +0x5a, 0x14012a7ca cmp ax, 1 ; +0x5c, 0x14012a7cc jnz short loc_14012A7D8 ; +0x60, 0x14012a7d0 mov rdi, [rcx+60h] ; +0x62, 0x14012a7d2 jmp short loc_14012A7DC ; +0x66, 0x14012a7d6 mov rdi, [rcx+68h] ; +0x68, 0x14012a7d8 mov rax, [rdi+198h] ; +0x6c, 0x14012a7dc mov rcx, [rax+1C8h] ; +0x73, 0x14012a7e3 call SliderThumb__getValue ; +0x7a, 0x14012a7ea lea rcx, [rdi+140h] ; +0x7f, 0x14012a7ef mov r8, rbp ; +0x86, 0x14012a7f6 mov rax, [rcx] ; +0x89, 0x14012a7f9 mov rdx, rsi ; +0x8c, 0x14012a7fc movaps xmm11, xmm0 ; +0x8f, 0x14012a7ff call qword ptr [rax+10h] ; +0x93, 0x14012a803 mov rax, [rdi+198h] ; +0x96, 0x14012a806 mov rcx, [rax+1C8h] ; +0x9d, 0x14012a80d call SliderThumb__getValue ; +0xa4, 0x14012a814 movss xmm1, dword ptr [rbx+0B4h] ; +0xa9, 0x14012a819 lea rcx, a02f; "%.02f" ; +0xb1, 0x14012a821 movss xmm2, dword ptr [rbx+0B0h] ; +0xb8, 0x14012a828 subss xmm2, xmm1 ; +0xc0, 0x14012a830 mulss xmm2, xmm0 ; +0xc4, 0x14012a834 addss xmm2, xmm1 ; +0xc8, 0x14012a838 cvtps2pd xmm1, xmm2 ; +0xcc, 0x14012a83c movq rdx, xmm1 ; +0xcf, 0x14012a83f call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xd4, 0x14012a844 mov rcx, rax ; +0xda, 0x14012a84a call cs:?floatValue@CCString@cocos2d@@QEBAMXZ; cocos2d::CCString::floatValue(void) ; +0xdd, 0x14012a84d cmp byte ptr [rbx+88h], 0 ; +0xe3, 0x14012a853 xorps xmm9, xmm9 ; +0xea, 0x14012a85a movss xmm10, cs:flt_140622C24 ; +0xee, 0x14012a85e movaps xmm8, xmm0 ; +0xf7, 0x14012a867 jz short loc_14012A8C0 ; +0xfb, 0x14012a86b comiss xmm0, cs:dword_140622C04 ; +0xfd, 0x14012a86d jbe short loc_14012A8C0 ; +0x104, 0x14012a874 movss xmm1, cs:dword_140622C30 ; +0x106, 0x14012a876 comiss xmm1, xmm0 ; +0x10e, 0x14012a87e jbe short loc_14012A8C0 ; +0x111, 0x14012a881 movss xmm1, dword ptr [rbx+0B4h] ; +0x113, 0x14012a883 movaps xmm2, xmm10 ; +0x11b, 0x14012a88b movss xmm0, dword ptr [rbx+0B0h] ; +0x11f, 0x14012a88f subss xmm2, xmm1 ; +0x127, 0x14012a897 subss xmm0, xmm1 ; +0x12b, 0x14012a89b movaps xmm8, xmm10 ; +0x12f, 0x14012a89f movaps xmm1, xmm10 ; +0x133, 0x14012a8a3 divss xmm2, xmm0 ; +0x137, 0x14012a8a7 minss xmm1, xmm2 ; +0x13b, 0x14012a8ab comiss xmm9, xmm1 ; +0x13f, 0x14012a8af jbe short loc_14012A8B8 ; +0x143, 0x14012a8b3 xorps xmm1, xmm1 ; +0x145, 0x14012a8b5 mov rcx, rdi ; +0x148, 0x14012a8b8 call Slider__setValue ; +0x14b, 0x14012a8bb movzx esi, word ptr [rbx+8Ah] ; +0x150, 0x14012a8c0 movaps xmm6, xmm8 ; +0x157, 0x14012a8c7 movaps xmm7, xmm8 ; +0x15b, 0x14012a8cb cmp si, 2 ; +0x15f, 0x14012a8cf jnz loc_14012A9EA ; +0x163, 0x14012a8d3 movss xmm1, dword ptr [rbx+74h] ; +0x169, 0x14012a8d9 movss xmm2, dword ptr [rbx+78h] ; +0x16e, 0x14012a8de ucomiss xmm1, xmm2 ; +0x173, 0x14012a8e3 jp short loc_14012A8EF ; +0x176, 0x14012a8e6 jnz short loc_14012A8EF ; +0x178, 0x14012a8e8 jmp loc_14012A988 ; +0x17a, 0x14012a8ea comiss xmm1, xmm2 ; +0x17f, 0x14012a8ef movaps xmm0, xmm8 ; +0x182, 0x14012a8f2 jbe short loc_14012A943 ; +0x186, 0x14012a8f6 movss xmm6, cs:dword_1406232BC ; +0x188, 0x14012a8f8 divss xmm0, xmm1 ; +0x190, 0x14012a900 mulss xmm0, xmm2 ; +0x194, 0x14012a904 mulss xmm0, xmm6 ; +0x198, 0x14012a908 comiss xmm0, xmm9 ; +0x19c, 0x14012a90c jb short loc_14012A921 ; +0x1a0, 0x14012a910 addss xmm0, cs:dword_140622B08; X ; +0x1a2, 0x14012a912 call floorf ; +0x1aa, 0x14012a91a jmp short loc_14012A92E ; +0x1af, 0x14012a91f subss xmm0, cs:dword_140622B08; X ; +0x1b1, 0x14012a921 call ceilf ; +0x1b9, 0x14012a929 cvttss2si eax, xmm0 ; +0x1be, 0x14012a92e movd xmm7, eax ; +0x1c2, 0x14012a932 cvtdq2ps xmm7, xmm7 ; +0x1c6, 0x14012a936 divss xmm7, xmm6 ; +0x1c9, 0x14012a939 movaps xmm6, xmm8 ; +0x1cd, 0x14012a93d jmp short loc_14012A98C ; +0x1d1, 0x14012a941 movss xmm7, cs:dword_1406232BC ; +0x1d3, 0x14012a943 divss xmm0, xmm2 ; +0x1db, 0x14012a94b mulss xmm0, xmm1 ; +0x1df, 0x14012a94f mulss xmm0, xmm7 ; +0x1e3, 0x14012a953 comiss xmm0, xmm9 ; +0x1e7, 0x14012a957 jb short loc_14012A96C ; +0x1eb, 0x14012a95b addss xmm0, cs:dword_140622B08; X ; +0x1ed, 0x14012a95d call floorf ; +0x1f5, 0x14012a965 jmp short loc_14012A979 ; +0x1fa, 0x14012a96a subss xmm0, cs:dword_140622B08; X ; +0x1fc, 0x14012a96c call ceilf ; +0x204, 0x14012a974 cvttss2si eax, xmm0 ; +0x209, 0x14012a979 movd xmm6, eax ; +0x20d, 0x14012a97d cvtdq2ps xmm6, xmm6 ; +0x211, 0x14012a981 divss xmm6, xmm7 ; +0x214, 0x14012a984 movaps xmm7, xmm8 ; +0x218, 0x14012a988 ucomiss xmm6, dword ptr [rbx+80h] ; +0x21c, 0x14012a98c jp short loc_14012A9A2 ; +0x223, 0x14012a993 jnz short loc_14012A9A2 ; +0x225, 0x14012a995 lea rax, [rbx+84h] ; +0x227, 0x14012a997 mov cl, 1 ; +0x22e, 0x14012a99e jmp short loc_14012A9B6 ; +0x230, 0x14012a9a0 lea rax, [rbx+84h] ; +0x232, 0x14012a9a2 ucomiss xmm7, dword ptr [rax] ; +0x239, 0x14012a9a9 jp short loc_14012A9B4 ; +0x23c, 0x14012a9ac jnz short loc_14012A9B4 ; +0x23e, 0x14012a9ae mov cl, 1 ; +0x240, 0x14012a9b0 jmp short loc_14012A9B6 ; +0x242, 0x14012a9b2 xor cl, cl ; +0x244, 0x14012a9b4 movaps xmm0, xmm6 ; +0x246, 0x14012a9b6 maxss xmm0, xmm7 ; +0x249, 0x14012a9b9 comiss xmm0, dword ptr [rbx+0B0h] ; +0x24d, 0x14012a9bd ja short loc_14012A9DE ; +0x254, 0x14012a9c4 movss xmm0, dword ptr [rbx+0B4h] ; +0x256, 0x14012a9c6 movaps xmm1, xmm6 ; +0x25e, 0x14012a9ce minss xmm1, xmm7 ; +0x261, 0x14012a9d1 comiss xmm0, xmm1 ; +0x265, 0x14012a9d5 ja short loc_14012A9DE ; +0x268, 0x14012a9d8 test cl, cl ; +0x26a, 0x14012a9da jz short loc_14012A9F1 ; +0x26c, 0x14012a9dc movaps xmm1, xmm11 ; +0x26e, 0x14012a9de mov rcx, rdi ; +0x272, 0x14012a9e2 jmp loc_14012AB3F ; +0x275, 0x14012a9e5 lea rax, [rbx+84h] ; +0x27a, 0x14012a9ea mov rcx, [rbx+0A8h] ; +0x281, 0x14012a9f1 movss dword ptr [rbx+80h], xmm6 ; +0x288, 0x14012a9f8 movss dword ptr [rax], xmm7 ; +0x290, 0x14012aa00 test rcx, rcx ; +0x294, 0x14012aa04 jz short loc_14012AA3F ; +0x297, 0x14012aa07 movzx r9d, byte ptr [rbx+0C8h] ; +0x299, 0x14012aa09 mov rax, [rcx] ; +0x2a1, 0x14012aa11 test si, si ; +0x2a4, 0x14012aa14 jnz short loc_14012AA24 ; +0x2a7, 0x14012aa17 movzx r8d, r9b ; +0x2a9, 0x14012aa19 movaps xmm1, xmm6 ; +0x2ad, 0x14012aa1d call qword ptr [rax] ; +0x2b0, 0x14012aa20 jmp short loc_14012AA3F ; +0x2b2, 0x14012aa22 cmp si, 1 ; +0x2b4, 0x14012aa24 jnz short loc_14012AA36 ; +0x2b8, 0x14012aa28 movzx r8d, r9b ; +0x2ba, 0x14012aa2a movaps xmm1, xmm7 ; +0x2be, 0x14012aa2e call qword ptr [rax+8] ; +0x2c1, 0x14012aa31 jmp short loc_14012AA3F ; +0x2c4, 0x14012aa34 movaps xmm2, xmm7 ; +0x2c6, 0x14012aa36 movaps xmm1, xmm6 ; +0x2c9, 0x14012aa39 call qword ptr [rax+10h] ; +0x2cc, 0x14012aa3c movzx eax, word ptr [rbx+8Ah] ; +0x2cf, 0x14012aa3f test ax, ax ; +0x2d6, 0x14012aa46 jnz short loc_14012AA57 ; +0x2d9, 0x14012aa49 movaps xmm8, xmm6 ; +0x2db, 0x14012aa4b maxss xmm8, dword ptr [rbx+78h] ; +0x2df, 0x14012aa4f jmp short loc_14012AA7A ; +0x2e5, 0x14012aa55 cmp ax, 1 ; +0x2e7, 0x14012aa57 jnz short loc_14012AA71 ; +0x2eb, 0x14012aa5b movss xmm8, dword ptr [rbx+74h] ; +0x2ed, 0x14012aa5d lea rdi, [rbx-140h] ; +0x2f3, 0x14012aa63 maxss xmm8, xmm7 ; +0x2fa, 0x14012aa6a jmp short loc_14012AA8C ; +0x2ff, 0x14012aa6f movaps xmm8, xmm6 ; +0x301, 0x14012aa71 maxss xmm8, xmm7 ; +0x305, 0x14012aa75 lea rdi, [rbx-140h] ; +0x30a, 0x14012aa7a movaps xmm1, xmm6 ; +0x311, 0x14012aa81 mov rcx, rdi ; +0x314, 0x14012aa84 call GJScaleControl__updateLabelX ; +0x317, 0x14012aa87 cmp word ptr [rbx+8Ah], 0 ; +0x31c, 0x14012aa8c jz short loc_14012AAA1 ; +0x324, 0x14012aa94 movaps xmm1, xmm7 ; +0x326, 0x14012aa96 mov rcx, rdi ; +0x329, 0x14012aa99 call GJScaleControl__updateLabelY ; +0x32c, 0x14012aa9c movaps xmm1, xmm8 ; +0x331, 0x14012aaa1 mov rcx, rdi ; +0x335, 0x14012aaa5 call GJScaleControl__updateLabelXY ; +0x338, 0x14012aaa8 cmp word ptr [rbx+8Ah], 2 ; +0x33d, 0x14012aaad movss xmm1, dword ptr [rbx+0B4h] ; +0x345, 0x14012aab5 movss xmm0, dword ptr [rbx+0B0h] ; +0x34d, 0x14012aabd subss xmm0, xmm1 ; +0x355, 0x14012aac5 jz short loc_14012AAEA ; +0x359, 0x14012aac9 subss xmm8, xmm1 ; +0x35b, 0x14012aacb divss xmm8, xmm0 ; +0x360, 0x14012aad0 minss xmm10, xmm8 ; +0x365, 0x14012aad5 comiss xmm9, xmm10 ; +0x36a, 0x14012aada ja short loc_14012AAE4 ; +0x36e, 0x14012aade movaps xmm9, xmm10 ; +0x370, 0x14012aae0 mov rcx, [rbx+68h] ; +0x374, 0x14012aae4 jmp short loc_14012AB3B ; +0x378, 0x14012aae8 subss xmm6, xmm1 ; +0x37a, 0x14012aaea movaps xmm1, xmm10 ; +0x37e, 0x14012aaee divss xmm6, xmm0 ; +0x382, 0x14012aaf2 minss xmm1, xmm6 ; +0x386, 0x14012aaf6 comiss xmm9, xmm1 ; +0x38a, 0x14012aafa jbe short loc_14012AB03 ; +0x38e, 0x14012aafe xorps xmm1, xmm1 ; +0x390, 0x14012ab00 mov rcx, [rbx+58h] ; +0x393, 0x14012ab03 call Slider__setValue ; +0x397, 0x14012ab07 movss xmm1, dword ptr [rbx+0B4h] ; +0x39c, 0x14012ab0c movss xmm0, dword ptr [rbx+0B0h] ; +0x3a4, 0x14012ab14 subss xmm7, xmm1 ; +0x3ac, 0x14012ab1c subss xmm0, xmm1 ; +0x3b0, 0x14012ab20 divss xmm7, xmm0 ; +0x3b4, 0x14012ab24 minss xmm10, xmm7 ; +0x3b8, 0x14012ab28 comiss xmm9, xmm10 ; +0x3bd, 0x14012ab2d ja short loc_14012AB37 ; +0x3c1, 0x14012ab31 movaps xmm9, xmm10 ; +0x3c3, 0x14012ab33 mov rcx, [rbx+60h] ; +0x3c7, 0x14012ab37 movaps xmm1, xmm9 ; +0x3cb, 0x14012ab3b call Slider__setValue ; +0x3cf, 0x14012ab3f movaps xmm10, [rsp+88h+var_58] ; +0x3d4, 0x14012ab44 movaps xmm9, [rsp+88h+var_48] ; +0x3da, 0x14012ab4a movaps xmm8, [rsp+88h+var_38] ; +0x3e0, 0x14012ab50 movaps xmm7, [rsp+88h+var_28] ; +0x3e6, 0x14012ab56 movaps xmm6, [rsp+88h+var_18] ; +0x3eb, 0x14012ab5b mov rdi, [rsp+88h+arg_0] ; +0x3f0, 0x14012ab60 movaps xmm11, [rsp+88h+var_68] ; +0x3f8, 0x14012ab68 lea r11, [rsp+88h+var_8] ; +0x3fe, 0x14012ab6e mov rbx, [r11+18h] ; +0x406, 0x14012ab76 mov rbp, [r11+20h] ; +0x40a, 0x14012ab7a mov rsp, r11 ; +0x40e, 0x14012ab7e pop rsi ; +0x411, 0x14012ab81 retn ; +0x412, 0x14012ab82