{"type": "func", "start": 5369173216, "end": 5369173378, "name": "SliderTouchLogic::ccTouchBegan", "pseudocode": "// \n// SliderTouchLogic::ccTouchBegan from 0x1400714e0 to 0x140071582 (162 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140536820\n// > <???> @ 0x1406c6228\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool SliderTouchLogic::ccTouchBegan(SliderTouchLogic *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  __int64 v4; // rax\n  __int64 v5; // rdx\n  void (__fastcall ***v6)(_QWORD); // rcx\n  char v8; // [rsp+30h] [rbp+8h] BYREF\n  char v9; // [rsp+48h] [rbp+20h] BYREF\n\n  if ( !cocos2d::CCMenu::ccTouchBegan(a1, a2, a3) )\n    return 0;\n  LOBYTE(a1->m_sTransform.d) = 1;\n  cocos2d::CCNode::convertTouchToNodeSpace((SliderTouchLogic *)((char *)a1 - 320), (struct cocos2d::CCTouch *)&v8);\n  v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_sAdditionalTransform.ty + 200LL))(*(_QWORD *)&a1->m_sAdditionalTransform.ty);\n  cocos2d::CCPoint::operator-(&v8, &v9, v4);\n  cocos2d::CCPoint::operator=(&a1->m_sTransform.tx, &v9);\n  v5 = *(_QWORD *)&a1->m_sTransform.b;\n  if ( v5 )\n  {\n    v6 = *(void (__fastcall ****)(_QWORD))(v5 + 440);\n    if ( v6 )\n      (**v6)(v6);\n  }\n  return 1;\n}", "assembly": "; \n; SliderTouchLogic::ccTouchBegan from 0x1400714e0 to 0x140071582 (162 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140536820\n; > <???> @ 0x1406c6228\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400714e0\npush    rdi                                                            ; +0x5, 0x1400714e5\nsub     rsp, 20h                                                       ; +0x6, 0x1400714e6\nmov     rdi, rdx                                                       ; +0xa, 0x1400714ea\nmov     rbx, rcx                                                       ; +0xd, 0x1400714ed\ncall    cs:?ccTouchBegan@CCMenu@cocos2d@@UEAA_NPEAVCCTouch@2@PEAVCCEvent@2@@Z; cocos2d::CCMenu::ccTouchBegan(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0x10, 0x1400714f0\ntest    al, al                                                         ; +0x16, 0x1400714f6\njz      short loc_140071575                                            ; +0x18, 0x1400714f8\nlea     rcx, [rbx-140h]                                                ; +0x1a, 0x1400714fa\nmov     byte ptr [rbx+98h], 1                                          ; +0x21, 0x140071501\nmov     r8, rdi                                                        ; +0x28, 0x140071508\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x2b, 0x14007150b\ncall    cs:?convertTouchToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@PEAVCCTouch@2@@Z; cocos2d::CCNode::convertTouchToNodeSpace(cocos2d::CCTouch *) ; +0x30, 0x140071510\nmov     rcx, [rbx+88h]                                                 ; +0x36, 0x140071516\nmov     rax, [rcx]                                                     ; +0x3d, 0x14007151d\ncall    qword ptr [rax+0C8h]                                           ; +0x40, 0x140071520\nmov     r8, rax                                                        ; +0x46, 0x140071526\nlea     rdx, [rsp+28h+arg_18]                                          ; +0x49, 0x140071529\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x4e, 0x14007152e\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x53, 0x140071533\nlea     rcx, [rbx+9Ch]                                                 ; +0x59, 0x140071539\nlea     rdx, [rsp+28h+arg_18]                                          ; +0x60, 0x140071540\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x65, 0x140071545\nmov     rdx, [rbx+90h]                                                 ; +0x6b, 0x14007154b\ntest    rdx, rdx                                                       ; +0x72, 0x140071552\njz      short loc_140071568                                            ; +0x75, 0x140071555\nmov     rcx, [rdx+1B8h]                                                ; +0x77, 0x140071557\ntest    rcx, rcx                                                       ; +0x7e, 0x14007155e\njz      short loc_140071568                                            ; +0x81, 0x140071561\nmov     rax, [rcx]                                                     ; +0x83, 0x140071563\ncall    qword ptr [rax]                                                ; +0x86, 0x140071566\nmov     al, 1                                                          ; +0x88, 0x140071568\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x8a, 0x14007156a\nadd     rsp, 20h                                                       ; +0x8f, 0x14007156f\npop     rdi                                                            ; +0x93, 0x140071573\nretn                                                                   ; +0x94, 0x140071574\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x95, 0x140071575\nxor     al, al                                                         ; +0x9a, 0x14007157a\nadd     rsp, 20h                                                       ; +0x9c, 0x14007157c\npop     rdi                                                            ; +0xa0, 0x140071580\nretn                                                                   ; +0xa1, 0x140071581", "xrefs": ["<???> @ 0x140536820", "<???> @ 0x1406c6228"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}