{"type": "func", "start": 6442497872, "end": 6442498113, "name": "cocos2d::extension::CCControlStepper::ccTouchBegan", "pseudocode": "// \n// cocos2d::extension::CCControlStepper::ccTouchBegan from 0x18000b750 to 0x18000b841 (241 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180028620\n// > <???> @ 0x180032408\n// > <???> @ 0x18004bbc4\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::CCControlStepper::ccTouchBegan(\n        cocos2d::extension::CCControlStepper *this,\n        struct cocos2d::CCTouch *a2,\n        struct cocos2d::CCEvent *a3)\n{\n  _DWORD *v3; // rbx\n  float *v6; // rax\n  __int64 v7; // r8\n  bool v8; // zf\n  char v10; // [rsp+40h] [rbp+8h] BYREF\n  char v11; // [rsp+58h] [rbp+20h] BYREF\n\n  v3 = (_DWORD *)((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 **)(_DWORD *))(*(_QWORD *)v3 + 1040LL))(v3)\n    || !(*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)v3 + 344LL))(v3) )\n  {\n    return 0;\n  }\n  (*(void (__fastcall **)(_DWORD *, char *, struct cocos2d::CCTouch *))(*(_QWORD *)v3 + 1112LL))(v3, &v10, a2);\n  v6 = (float *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, (const struct cocos2d::CCPoint *)&v10);\n  cocos2d::extension::CCControlStepper::updateLayoutUsingTouchLocation((__int64)v3, v6);\n  v8 = *((_BYTE *)this + 193) == 0;\n  *((_BYTE *)this + 224) = 1;\n  if ( !v8 )\n  {\n    v3[138] = -1;\n    cocos2d::CCNode::schedule(v3, sub_18000BA74, v7, 4294967294LL, 1055286887);\n  }\n  return 1;\n}", "assembly": "; \n; cocos2d::extension::CCControlStepper::ccTouchBegan from 0x18000b750 to 0x18000b841 (241 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180028620\n; > <???> @ 0x180032408\n; > <???> @ 0x18004bbc4\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, 0x18000b750\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18000b755\npush    rdi                                                            ; +0xa, 0x18000b75a\nsub     rsp, 30h                                                       ; +0xb, 0x18000b75b\nlea     rbx, [rcx-140h]                                                ; +0xf, 0x18000b75f\nmov     rdi, rcx                                                       ; +0x16, 0x18000b766\nmov     rax, [rbx]                                                     ; +0x19, 0x18000b769\nmov     rcx, rbx                                                       ; +0x1c, 0x18000b76c\nmov     rsi, rdx                                                       ; +0x1f, 0x18000b76f\ncall    qword ptr [rax+460h]                                           ; +0x22, 0x18000b772\ntest    al, al                                                         ; +0x28, 0x18000b778\njz      loc_18000B82F                                                  ; +0x2a, 0x18000b77a\nmov     rax, [rbx]                                                     ; +0x30, 0x18000b780\nmov     rcx, rbx                                                       ; +0x33, 0x18000b783\ncall    qword ptr [rax+410h]                                           ; +0x36, 0x18000b786\ntest    al, al                                                         ; +0x3c, 0x18000b78c\njz      loc_18000B82F                                                  ; +0x3e, 0x18000b78e\nmov     rax, [rbx]                                                     ; +0x44, 0x18000b794\nmov     rcx, rbx                                                       ; +0x47, 0x18000b797\ncall    qword ptr [rax+158h]                                           ; +0x4a, 0x18000b79a\ntest    al, al                                                         ; +0x50, 0x18000b7a0\njz      loc_18000B82F                                                  ; +0x52, 0x18000b7a2\nmov     rax, [rbx]                                                     ; +0x58, 0x18000b7a8\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x5b, 0x18000b7ab\nmov     r8, rsi                                                        ; +0x60, 0x18000b7b0\nmov     rcx, rbx                                                       ; +0x63, 0x18000b7b3\ncall    qword ptr [rax+458h]                                           ; +0x66, 0x18000b7b6\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x6c, 0x18000b7bc\nlea     rcx, [rsp+38h+arg_18]                                          ; +0x71, 0x18000b7c1\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x76, 0x18000b7c6\nmov     rdx, rax                                                       ; +0x7c, 0x18000b7cc\nmov     rcx, rbx                                                       ; +0x7f, 0x18000b7cf\ncall    ?updateLayoutUsingTouchLocation@CCControlStepper@extension@cocos2d@@QEAAXVCCPoint@3@@Z; cocos2d::extension::CCControlStepper::updateLayoutUsingTouchLocation(cocos2d::CCPoint) ; +0x82, 0x18000b7d2\ncmp     byte ptr [rdi+0C1h], 0                                         ; +0x87, 0x18000b7d7\nmov     byte ptr [rdi+0E0h], 1                                         ; +0x8e, 0x18000b7de\njz      short loc_18000B81D                                            ; +0x95, 0x18000b7e5\nmovss   xmm0, cs:dword_18002BBD4                                       ; +0x97, 0x18000b7e7\nlea     rdx, sub_18000BA74                                             ; +0x9f, 0x18000b7ef\nmovss   xmm2, cs:flt_18002BBCC                                         ; +0xa6, 0x18000b7f6\nmov     r9d, 0FFFFFFFEh                                                ; +0xae, 0x18000b7fe\nmov     rcx, rbx                                                       ; +0xb4, 0x18000b804\nmovss   [rsp+38h+var_18], xmm0                                         ; +0xb7, 0x18000b807\nmov     dword ptr [rbx+228h], 0FFFFFFFFh                               ; +0xbd, 0x18000b80d\ncall    cs:?schedule@CCNode@cocos2d@@QEAAXP8CCObject@2@EAAXM@ZMIM@Z; cocos2d::CCNode::schedule(void (cocos2d::CCObject::*)(float),float,uint,float) ; +0xc7, 0x18000b817\nmov     al, 1                                                          ; +0xcd, 0x18000b81d\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xcf, 0x18000b81f\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xd4, 0x18000b824\nadd     rsp, 30h                                                       ; +0xd9, 0x18000b829\npop     rdi                                                            ; +0xdd, 0x18000b82d\nretn                                                                   ; +0xde, 0x18000b82e\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xdf, 0x18000b82f\nxor     al, al                                                         ; +0xe4, 0x18000b834\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xe6, 0x18000b836\nadd     rsp, 30h                                                       ; +0xeb, 0x18000b83b\npop     rdi                                                            ; +0xef, 0x18000b83f\nretn                                                                   ; +0xf0, 0x18000b840", "xrefs": ["<???> @ 0x180028620", "<???> @ 0x180032408", "<???> @ 0x18004bbc4"], "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"}