{"type": "func", "start": 4300264032, "end": 4300264140, "name": "CreateGuidelinesLayer::ccTouchBegan", "pseudocode": "// \n// CreateGuidelinesLayer::ccTouchBegan from 0x10050d260 to 0x10050d2cc (108 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x10095bfa0\n// > <???> @ 0x10095c6e0\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 __fastcall CreateGuidelinesLayer::ccTouchBegan(\n        CreateGuidelinesLayer *a1,\n        cocos2d::CCTouch *a2,\n        cocos2d::CCEvent *a3)\n{\n  __int64 v3; // rax\n  cocos2d::CCSprite *m_circleSprite; // rdi\n  int v7; // [rsp-14h] [rbp-14h] BYREF\n\n  if ( a1->m_recording && a1->m_guidelines <= 1000 )\n  {\n    v7 = HIDWORD(v3);\n    ((void (__fastcall *)(CreateGuidelinesLayer *, cocos2d::CCTouch *, cocos2d::CCEvent *))a1->registerTouch)(\n      a1,\n      a2,\n      a3);\n    m_circleSprite = a1->m_circleSprite;\n    BYTE2(v7) = 0;\n    LOWORD(v7) = -1;\n    ((void (__fastcall *)(cocos2d::CCSprite *, int *))m_circleSprite->setColor)(m_circleSprite, &v7);\n    ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_circleSprite->setScale)(a1->m_circleSprite, 0.89999998);\n    ++a1->m_guidelines;\n  }\n  return 1;\n}", "assembly": "; \n; CreateGuidelinesLayer::ccTouchBegan from 0x10050d260 to 0x10050d2cc (108 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x10095bfa0\n; > <???> @ 0x10095c6e0\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\ncmp     byte ptr [rdi+2B4h], 1                                         ; +0x0, 0x10050d260\njnz     short loc_10050D2C9                                            ; +0x7, 0x10050d267\ncmp     dword ptr [rdi+2B8h], 3E8h                                     ; +0x9, 0x10050d269\njg      short loc_10050D2C9                                            ; +0x13, 0x10050d273\npush    rbp                                                            ; +0x15, 0x10050d275\nmov     rbp, rsp                                                       ; +0x16, 0x10050d276\npush    rbx                                                            ; +0x19, 0x10050d279\npush    rax                                                            ; +0x1a, 0x10050d27a\nmov     rax, [rdi]                                                     ; +0x1b, 0x10050d27b\nmov     rbx, rdi                                                       ; +0x1e, 0x10050d27e\ncall    qword ptr [rax+530h]                                           ; +0x21, 0x10050d281\nmov     rdi, [rbx+2A8h]                                                ; +0x27, 0x10050d287\nmov     byte ptr [rbp-0Ah], 0                                          ; +0x2e, 0x10050d28e\nmov     word ptr [rbp-0Ch], 0FFFFh                                     ; +0x32, 0x10050d292\nmov     rax, [rdi]                                                     ; +0x38, 0x10050d298\nlea     rsi, [rbp-0Ch]                                                 ; +0x3b, 0x10050d29b\ncall    qword ptr [rax+3B0h]                                           ; +0x3f, 0x10050d29f\nmov     rdi, [rbx+2A8h]                                                ; +0x45, 0x10050d2a5\nmov     rax, [rdi]                                                     ; +0x4c, 0x10050d2ac\nmovss   xmm0, cs:dword_100815210                                       ; +0x4f, 0x10050d2af\ncall    qword ptr [rax+0A0h]                                           ; +0x57, 0x10050d2b7\ninc     dword ptr [rbx+2B8h]                                           ; +0x5d, 0x10050d2bd\nadd     rsp, 8                                                         ; +0x63, 0x10050d2c3\npop     rbx                                                            ; +0x67, 0x10050d2c7\npop     rbp                                                            ; +0x68, 0x10050d2c8\nmov     al, 1                                                          ; +0x69, 0x10050d2c9\nretn                                                                   ; +0x6b, 0x10050d2cb", "xrefs": ["<???> @ 0x10095bfa0", "<???> @ 0x10095c6e0"], "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"}