{"type": "func", "start": 5369345776, "end": 5369345896, "name": "CreateGuidelinesLayer::ccTouchBegan", "pseudocode": "// \n// CreateGuidelinesLayer::ccTouchBegan from 0x14009b6f0 to 0x14009b768 (120 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1405424e0\n// > <???> @ 0x1405429c8\n// > <???> @ 0x1406c74c4\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 CreateGuidelinesLayer::ccTouchBegan(CreateGuidelinesLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  void (__fastcall ***v4)(_QWORD, __int16 *); // rcx\n  __int16 v6; // [rsp+30h] [rbp+8h] BYREF\n  char v7; // [rsp+32h] [rbp+Ah]\n\n  if ( BYTE4(a1->m_pScriptTouchHandlerEntry) && SLODWORD(a1->m_pScriptKeypadHandlerEntry) <= 1000 )\n  {\n    (*(void (__fastcall **)(GLubyte *, cocos2d::CCTouch *, cocos2d::CCEvent *))(*(_QWORD *)&a1[-1]._displayedOpacity\n                                                                              + 1064LL))(\n      &a1[-1]._displayedOpacity,\n      a2,\n      a3);\n    v4 = (void (__fastcall ***)(_QWORD, __int16 *))(*(_QWORD *)&a1->m_bTouchEnabled + 320LL);\n    v6 = -1;\n    v7 = 0;\n    (**v4)(v4, &v6);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_bTouchEnabled + 160LL))(*(_QWORD *)&a1->m_bTouchEnabled);\n    ++LODWORD(a1->m_pScriptKeypadHandlerEntry);\n  }\n  return 1;\n}", "assembly": "; \n; CreateGuidelinesLayer::ccTouchBegan from 0x14009b6f0 to 0x14009b768 (120 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1405424e0\n; > <???> @ 0x1405429c8\n; > <???> @ 0x1406c74c4\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\npush    rbx                                                            ; +0x0, 0x14009b6f0\nsub     rsp, 20h                                                       ; +0x2, 0x14009b6f2\ncmp     byte ptr [rcx+174h], 0                                         ; +0x6, 0x14009b6f6\nmov     rbx, rcx                                                       ; +0xd, 0x14009b6fd\njz      short loc_14009B760                                            ; +0x10, 0x14009b700\ncmp     dword ptr [rcx+178h], 3E8h                                     ; +0x12, 0x14009b702\njg      short loc_14009B760                                            ; +0x1c, 0x14009b70c\nadd     rcx, 0FFFFFFFFFFFFFEC0h                                        ; +0x1e, 0x14009b70e\nmov     rax, [rcx]                                                     ; +0x25, 0x14009b715\ncall    qword ptr [rax+428h]                                           ; +0x28, 0x14009b718\nmov     rcx, [rbx+168h]                                                ; +0x2e, 0x14009b71e\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x35, 0x14009b725\nadd     rcx, 140h                                                      ; +0x3a, 0x14009b72a\nmov     [rsp+28h+arg_0], 0FFFFh                                        ; +0x41, 0x14009b731\nmov     [rsp+28h+arg_2], 0                                             ; +0x48, 0x14009b738\nmov     rax, [rcx]                                                     ; +0x4d, 0x14009b73d\ncall    qword ptr [rax]                                                ; +0x50, 0x14009b740\nmov     rcx, [rbx+168h]                                                ; +0x52, 0x14009b742\nmovss   xmm1, cs:dword_140622BD8                                       ; +0x59, 0x14009b749\nmov     rax, [rcx]                                                     ; +0x61, 0x14009b751\ncall    qword ptr [rax+0A0h]                                           ; +0x64, 0x14009b754\ninc     dword ptr [rbx+178h]                                           ; +0x6a, 0x14009b75a\nmov     al, 1                                                          ; +0x70, 0x14009b760\nadd     rsp, 20h                                                       ; +0x72, 0x14009b762\npop     rbx                                                            ; +0x76, 0x14009b766\nretn                                                                   ; +0x77, 0x14009b767", "xrefs": ["<???> @ 0x1405424e0", "<???> @ 0x1405429c8", "<???> @ 0x1406c74c4"], "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"}