{"type": "func", "start": 6025824, "end": 6026008, "name": "CreateGuidelinesLayer::ccTouchBegan", "pseudocode": "// \n// CreateGuidelinesLayer::ccTouchBegan from 0x5bf260 to 0x5bf318 (184 bytes)\n// \n// 4 xrefs:\n// > `non-virtual thunk to'CreateGuidelinesLayer::ccTouchBegan @ 0x5bf320\n// > <???> @ 0x70d88\n// > <???> @ 0x11461f0\n// > <???> @ 0x1146900\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  cocos2d::CCSprite *m_circleSprite; // x0\n  cocos2d::CCSprite_vtbl *v6; // x3\n  void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // x2\n  _BYTE v8[8]; // [xsp+20h] [xbp+20h] BYREF\n\n  if ( a1->m_recording && a1->m_guidelines <= 1000 )\n  {\n    a1->registerTouch(a1);\n    m_circleSprite = a1->m_circleSprite;\n    v6 = m_circleSprite->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v8[0] = -1;\n    v8[1] = -1;\n    setColor = v6->setColor;\n    v8[2] = 0;\n    setColor(m_circleSprite, (const cocos2d::ccColor3B *)v8);\n    a1->m_circleSprite->setScale(a1->m_circleSprite, 0.9);\n    ++a1->m_guidelines;\n  }\n  return 1;\n}", "assembly": "; \n; CreateGuidelinesLayer::ccTouchBegan from 0x5bf260 to 0x5bf318 (184 bytes)\n; \n; 4 xrefs:\n; > `non-virtual thunk to'CreateGuidelinesLayer::ccTouchBegan @ 0x5bf320\n; > <???> @ 0x70d88\n; > <???> @ 0x11461f0\n; > <???> @ 0x1146900\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x5bf260\nMOV             X29, SP                                                ; +0x4, 0x5bf264\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x5bf268\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x5bf26c\nLDRB            W1, [X0,#0x2B4]                                        ; +0x10, 0x5bf270\nMOV             X20, X0                                                ; +0x14, 0x5bf274\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x5bf278\nLDR             X2, [X2]                                               ; +0x1c, 0x5bf27c\nSTR             X2, [X29,#0x30+var_8]                                  ; +0x20, 0x5bf280\nCBZ             W1, loc_5BF294                                         ; +0x24, 0x5bf284\nLDR             W1, [X0,#0x2B8]                                        ; +0x28, 0x5bf288\nCMP             W1, #0x3E8                                             ; +0x2c, 0x5bf28c\nB.LE            loc_5BF2B8                                             ; +0x30, 0x5bf290\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x34, 0x5bf294\nMOV             W0, #1                                                 ; +0x38, 0x5bf298\nLDR             X2, [X29,#0x30+var_8]                                  ; +0x3c, 0x5bf29c\nLDR             X1, [X19]                                              ; +0x40, 0x5bf2a0\nCMP             X2, X1                                                 ; +0x44, 0x5bf2a4\nB.NE            loc_5BF314                                             ; +0x48, 0x5bf2a8\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x4c, 0x5bf2ac\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x50, 0x5bf2b0\nRET                                                                    ; +0x54, 0x5bf2b4\nLDR             X1, [X0]                                               ; +0x58, 0x5bf2b8\nLDR             X1, [X1,#0x530]                                        ; +0x5c, 0x5bf2bc\nBLR             X1                                                     ; +0x60, 0x5bf2c0\nLDR             X3, [X20,#0x2A8]                                       ; +0x64, 0x5bf2c4\nMOV             W2, #0xFFFFFFFF                                        ; +0x68, 0x5bf2c8\nADD             X1, X29, #0x30+var_10                                  ; +0x6c, 0x5bf2cc\nMOV             X0, X3                                                 ; +0x70, 0x5bf2d0\nLDR             X3, [X3]                                               ; +0x74, 0x5bf2d4\nSTRB            W2, [X29,#0x30+var_10]                                 ; +0x78, 0x5bf2d8\nSTRB            W2, [X29,#0x30+var_F]                                  ; +0x7c, 0x5bf2dc\nLDR             X2, [X3,#0x3B0]                                        ; +0x80, 0x5bf2e0\nSTRB            WZR, [X29,#0x30+var_E]                                 ; +0x84, 0x5bf2e4\nBLR             X2                                                     ; +0x88, 0x5bf2e8\nLDR             X1, [X20,#0x2A8]                                       ; +0x8c, 0x5bf2ec\nLDR             S0, =0x3F666666                                        ; +0x90, 0x5bf2f0\nMOV             X0, X1                                                 ; +0x94, 0x5bf2f4\nLDR             X1, [X1]                                               ; +0x98, 0x5bf2f8\nLDR             X1, [X1,#0xA0]                                         ; +0x9c, 0x5bf2fc\nBLR             X1                                                     ; +0xa0, 0x5bf300\nLDR             W0, [X20,#0x2B8]                                       ; +0xa4, 0x5bf304\nADD             W0, W0, #1                                             ; +0xa8, 0x5bf308\nSTR             W0, [X20,#0x2B8]                                       ; +0xac, 0x5bf30c\nB               loc_5BF294                                             ; +0xb0, 0x5bf310\nBL              .__stack_chk_fail                                      ; +0xb4, 0x5bf314", "xrefs": ["`non-virtual thunk to'CreateGuidelinesLayer::ccTouchBegan @ 0x5bf320", "<???> @ 0x70d88", "<???> @ 0x11461f0", "<???> @ 0x1146900"], "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"}