{"type": "func", "start": 6442499136, "end": 6442499377, "name": "cocos2d::extension::CCControlStepper::ccTouchBegan", "pseudocode": "// \n// cocos2d::extension::CCControlStepper::ccTouchBegan from 0x18000bc40 to 0x18000bd31 (241 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180026028\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x180049cfc\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\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) + 1104LL))(\n          (char *)this - 320,\n          a2,\n          a3)\n    || !(*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)v3 + 1024LL))(v3)\n    || !(*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)v3 + 328LL))(v3) )\n  {\n    return 0;\n  }\n  (*(void (__fastcall **)(_DWORD *, char *, struct cocos2d::CCTouch *))(*(_QWORD *)v3 + 1096LL))(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_18000BF64, v7, 4294967294LL, 1055286887);\n  }\n  return 1;\n}", "assembly": "; \n; cocos2d::extension::CCControlStepper::ccTouchBegan from 0x18000bc40 to 0x18000bd31 (241 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180026028\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x180049cfc\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, 0x18000bc40\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18000bc45\npush    rdi                                                            ; +0xa, 0x18000bc4a\nsub     rsp, 30h                                                       ; +0xb, 0x18000bc4b\nlea     rbx, [rcx-140h]                                                ; +0xf, 0x18000bc4f\nmov     rdi, rcx                                                       ; +0x16, 0x18000bc56\nmov     rax, [rbx]                                                     ; +0x19, 0x18000bc59\nmov     rcx, rbx                                                       ; +0x1c, 0x18000bc5c\nmov     rsi, rdx                                                       ; +0x1f, 0x18000bc5f\ncall    qword ptr [rax+450h]                                           ; +0x22, 0x18000bc62\ntest    al, al                                                         ; +0x28, 0x18000bc68\njz      loc_18000BD1F                                                  ; +0x2a, 0x18000bc6a\nmov     rax, [rbx]                                                     ; +0x30, 0x18000bc70\nmov     rcx, rbx                                                       ; +0x33, 0x18000bc73\ncall    qword ptr [rax+400h]                                           ; +0x36, 0x18000bc76\ntest    al, al                                                         ; +0x3c, 0x18000bc7c\njz      loc_18000BD1F                                                  ; +0x3e, 0x18000bc7e\nmov     rax, [rbx]                                                     ; +0x44, 0x18000bc84\nmov     rcx, rbx                                                       ; +0x47, 0x18000bc87\ncall    qword ptr [rax+148h]                                           ; +0x4a, 0x18000bc8a\ntest    al, al                                                         ; +0x50, 0x18000bc90\njz      loc_18000BD1F                                                  ; +0x52, 0x18000bc92\nmov     rax, [rbx]                                                     ; +0x58, 0x18000bc98\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x5b, 0x18000bc9b\nmov     r8, rsi                                                        ; +0x60, 0x18000bca0\nmov     rcx, rbx                                                       ; +0x63, 0x18000bca3\ncall    qword ptr [rax+448h]                                           ; +0x66, 0x18000bca6\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x6c, 0x18000bcac\nlea     rcx, [rsp+38h+arg_18]                                          ; +0x71, 0x18000bcb1\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x76, 0x18000bcb6\nmov     rdx, rax                                                       ; +0x7c, 0x18000bcbc\nmov     rcx, rbx                                                       ; +0x7f, 0x18000bcbf\ncall    ?updateLayoutUsingTouchLocation@CCControlStepper@extension@cocos2d@@QEAAXVCCPoint@3@@Z; cocos2d::extension::CCControlStepper::updateLayoutUsingTouchLocation(cocos2d::CCPoint) ; +0x82, 0x18000bcc2\ncmp     byte ptr [rdi+0C1h], 0                                         ; +0x87, 0x18000bcc7\nmov     byte ptr [rdi+0E0h], 1                                         ; +0x8e, 0x18000bcce\njz      short loc_18000BD0D                                            ; +0x95, 0x18000bcd5\nmovss   xmm0, cs:dword_18002950C                                       ; +0x97, 0x18000bcd7\nlea     rdx, sub_18000BF64                                             ; +0x9f, 0x18000bcdf\nmovss   xmm2, cs:flt_180029504                                         ; +0xa6, 0x18000bce6\nmov     r9d, 0FFFFFFFEh                                                ; +0xae, 0x18000bcee\nmov     rcx, rbx                                                       ; +0xb4, 0x18000bcf4\nmovss   [rsp+38h+var_18], xmm0                                         ; +0xb7, 0x18000bcf7\nmov     dword ptr [rbx+228h], 0FFFFFFFFh                               ; +0xbd, 0x18000bcfd\ncall    cs:?schedule@CCNode@cocos2d@@QEAAXP8CCObject@2@EAAXM@ZMIM@Z; cocos2d::CCNode::schedule(void (cocos2d::CCObject::*)(float),float,uint,float) ; +0xc7, 0x18000bd07\nmov     al, 1                                                          ; +0xcd, 0x18000bd0d\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xcf, 0x18000bd0f\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xd4, 0x18000bd14\nadd     rsp, 30h                                                       ; +0xd9, 0x18000bd19\npop     rdi                                                            ; +0xdd, 0x18000bd1d\nretn                                                                   ; +0xde, 0x18000bd1e\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xdf, 0x18000bd1f\nxor     al, al                                                         ; +0xe4, 0x18000bd24\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xe6, 0x18000bd26\nadd     rsp, 30h                                                       ; +0xeb, 0x18000bd2b\npop     rdi                                                            ; +0xef, 0x18000bd2f\nretn                                                                   ; +0xf0, 0x18000bd30", "xrefs": ["<???> @ 0x180026028", "<???> @ 0x18002fdf8", "<???> @ 0x180049cfc"], "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"}