{"type": "func", "start": 6442493344, "end": 6442493597, "name": "cocos2d::extension::CCControlSlider::ccTouchBegan", "pseudocode": "// \n// cocos2d::extension::CCControlSlider::ccTouchBegan from 0x18000a5a0 to 0x18000a69d (253 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180028030\n// > <???> @ 0x180032408\n// > <???> @ 0x18004ba80\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:15:37 +0000\n// \n\nchar __fastcall cocos2d::extension::CCControlSlider::ccTouchBegan(\n        cocos2d::extension::CCControlSlider *this,\n        struct cocos2d::CCTouch *a2,\n        struct cocos2d::CCEvent *a3)\n{\n  _QWORD **v3; // rbx\n  __int64 v5; // rax\n  float *v6; // rax\n  __int64 v7; // rax\n  float v9; // [rsp+30h] [rbp+8h] BYREF\n  char v10; // [rsp+48h] [rbp+20h] BYREF\n\n  v3 = (_QWORD **)((char *)this - 320);\n  if ( !(*(unsigned __int8 (__fastcall **)(char *, struct cocos2d::CCTouch *, struct cocos2d::CCEvent *))(*((_QWORD *)this - 40) + 1120LL))(\n          (char *)this - 320,\n          a2,\n          a3)\n    || !((unsigned __int8 (__fastcall *)(_QWORD **))(*v3)[130])(v3)\n    || !((unsigned __int8 (__fastcall *)(_QWORD **))(*v3)[43])(v3) )\n  {\n    return 0;\n  }\n  cocos2d::CCTouch::getLocation(a2);\n  v5 = cocos2d::CCNode::convertToNodeSpace(v3, &v10, &v9);\n  cocos2d::CCPoint::operator=(&v9, v5);\n  if ( v9 >= 0.0 )\n  {\n    v6 = (float *)(*(__int64 (__fastcall **)(_QWORD *))(*v3[64] + 320LL))(v3[64]);\n    if ( v9 > *v6 )\n      v9 = *(float *)(*(__int64 (__fastcall **)(_QWORD *))(*v3[64] + 320LL))(v3[64]);\n  }\n  else\n  {\n    v9 = 0.0;\n  }\n  v7 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, (const struct cocos2d::CCPoint *)&v9);\n  cocos2d::extension::CCControlSlider::sliderBegan(v3, v7);\n  return 1;\n}", "assembly": "; \n; cocos2d::extension::CCControlSlider::ccTouchBegan from 0x18000a5a0 to 0x18000a69d (253 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180028030\n; > <???> @ 0x180032408\n; > <???> @ 0x18004ba80\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:15:37 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18000a5a0\npush    rdi                                                            ; +0x5, 0x18000a5a5\nsub     rsp, 20h                                                       ; +0x6, 0x18000a5a6\nlea     rbx, [rcx-140h]                                                ; +0xa, 0x18000a5aa\nmov     rdi, rdx                                                       ; +0x11, 0x18000a5b1\nmov     rax, [rbx]                                                     ; +0x14, 0x18000a5b4\nmov     rcx, rbx                                                       ; +0x17, 0x18000a5b7\ncall    qword ptr [rax+460h]                                           ; +0x1a, 0x18000a5ba\ntest    al, al                                                         ; +0x20, 0x18000a5c0\njz      loc_18000A690                                                  ; +0x22, 0x18000a5c2\nmov     rax, [rbx]                                                     ; +0x28, 0x18000a5c8\nmov     rcx, rbx                                                       ; +0x2b, 0x18000a5cb\ncall    qword ptr [rax+410h]                                           ; +0x2e, 0x18000a5ce\ntest    al, al                                                         ; +0x34, 0x18000a5d4\njz      loc_18000A690                                                  ; +0x36, 0x18000a5d6\nmov     rax, [rbx]                                                     ; +0x3c, 0x18000a5dc\nmov     rcx, rbx                                                       ; +0x3f, 0x18000a5df\ncall    qword ptr [rax+158h]                                           ; +0x42, 0x18000a5e2\ntest    al, al                                                         ; +0x48, 0x18000a5e8\njz      loc_18000A690                                                  ; +0x4a, 0x18000a5ea\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x50, 0x18000a5f0\nmov     rcx, rdi                                                       ; +0x55, 0x18000a5f5\ncall    cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x58, 0x18000a5f8\nlea     r8, [rsp+28h+arg_0]                                            ; +0x5e, 0x18000a5fe\nmov     rcx, rbx                                                       ; +0x63, 0x18000a603\nlea     rdx, [rsp+28h+arg_18]                                          ; +0x66, 0x18000a606\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x6b, 0x18000a60b\nmov     rdx, rax                                                       ; +0x71, 0x18000a611\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x74, 0x18000a614\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x79, 0x18000a619\nxorps   xmm0, xmm0                                                     ; +0x7f, 0x18000a61f\ncomiss  xmm0, [rsp+28h+arg_0]                                          ; +0x82, 0x18000a622\njbe     short loc_18000A633                                            ; +0x87, 0x18000a627\nmov     [rsp+28h+arg_0], 0                                             ; +0x89, 0x18000a629\njmp     short loc_18000A668                                            ; +0x91, 0x18000a631\nmov     rcx, [rbx+200h]                                                ; +0x93, 0x18000a633\nmov     rax, [rcx]                                                     ; +0x9a, 0x18000a63a\ncall    qword ptr [rax+140h]                                           ; +0x9d, 0x18000a63d\nmovss   xmm0, [rsp+28h+arg_0]                                          ; +0xa3, 0x18000a643\ncomiss  xmm0, dword ptr [rax]                                          ; +0xa9, 0x18000a649\njbe     short loc_18000A668                                            ; +0xac, 0x18000a64c\nmov     rcx, [rbx+200h]                                                ; +0xae, 0x18000a64e\nmov     rax, [rcx]                                                     ; +0xb5, 0x18000a655\ncall    qword ptr [rax+140h]                                           ; +0xb8, 0x18000a658\nmovss   xmm0, dword ptr [rax]                                          ; +0xbe, 0x18000a65e\nmovss   [rsp+28h+arg_0], xmm0                                          ; +0xc2, 0x18000a662\nlea     rdx, [rsp+28h+arg_0]                                           ; +0xc8, 0x18000a668\nlea     rcx, [rsp+28h+arg_18]                                          ; +0xcd, 0x18000a66d\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xd2, 0x18000a672\nmov     rdx, rax                                                       ; +0xd8, 0x18000a678\nmov     rcx, rbx                                                       ; +0xdb, 0x18000a67b\ncall    ?sliderBegan@CCControlSlider@extension@cocos2d@@IEAAXVCCPoint@3@@Z; cocos2d::extension::CCControlSlider::sliderBegan(cocos2d::CCPoint) ; +0xde, 0x18000a67e\nmov     al, 1                                                          ; +0xe3, 0x18000a683\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xe5, 0x18000a685\nadd     rsp, 20h                                                       ; +0xea, 0x18000a68a\npop     rdi                                                            ; +0xee, 0x18000a68e\nretn                                                                   ; +0xef, 0x18000a68f\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xf0, 0x18000a690\nxor     al, al                                                         ; +0xf5, 0x18000a695\nadd     rsp, 20h                                                       ; +0xf7, 0x18000a697\npop     rdi                                                            ; +0xfb, 0x18000a69b\nretn                                                                   ; +0xfc, 0x18000a69c", "xrefs": ["<???> @ 0x180028030", "<???> @ 0x180032408", "<???> @ 0x18004ba80"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}