{"type": "func", "start": 3180588, "end": 3180670, "name": "CreateGuidelinesLayer::ccTouchEnded", "pseudocode": "// \n// CreateGuidelinesLayer::ccTouchEnded from 0x30882c to 0x30887e (82 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CreateGuidelinesLayer::ccTouchEnded @ 0x30888c\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\nvoid CreateGuidelinesLayer::ccTouchEnded(CreateGuidelinesLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  cocos2d::CCSprite *m_circleSprite; // r0\n  cocos2d::CCSprite_vtbl *v5; // r3\n  void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // r3\n  _DWORD v7[3]; // [sp+0h] [bp-Ch] BYREF\n\n  v7[0] = a1;\n  v7[1] = a2;\n  v7[2] = a3;\n  if ( a1->m_recording )\n  {\n    m_circleSprite = a1->m_circleSprite;\n    v5 = m_circleSprite->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    LOWORD(v7[0]) = -26881;\n    setColor = v5->setColor;\n    BYTE2(v7[0]) = 0;\n    setColor(m_circleSprite, (const cocos2d::ccColor3B *)v7);\n    ((void (__fastcall *)(cocos2d::CCSprite *, int))a1->m_circleSprite->setScale)(a1->m_circleSprite, 1061997773);\n  }\n}", "assembly": "; \n; CreateGuidelinesLayer::ccTouchEnded from 0x30882c to 0x30887e (82 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CreateGuidelinesLayer::ccTouchEnded @ 0x30888c\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x308834)                ; +0x0, 0x30882c\nPUSH            {R0-R2,R4,R5,LR}                                       ; +0x2, 0x30882e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x308830\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x308832\nMOV             R5, R0                                                 ; +0x8, 0x308834\nLDR             R2, [R3]                                               ; +0xa, 0x308836\nMOV             R4, R3                                                 ; +0xc, 0x308838\nSTR             R2, [SP,#0xC+var_8]                                    ; +0xe, 0x30883a\nLDRB.W          R2, [R0,#0x210]                                        ; +0x10, 0x30883c\nCBZ             R2, loc_30886E                                         ; +0x14, 0x308840\nLDR.W           R0, [R0,#0x208]                                        ; +0x16, 0x308842\nMOVS            R2, #0xFF                                              ; +0x1a, 0x308846\nMOV             R1, SP                                                 ; +0x1c, 0x308848\nLDR             R3, [R0]                                               ; +0x1e, 0x30884a\nSTRB.W          R2, [SP,#0xC+var_C]                                    ; +0x20, 0x30884c\nMOVS            R2, #0x96                                              ; +0x24, 0x308850\nSTRB.W          R2, [SP,#0xC+var_B]                                    ; +0x26, 0x308852\nMOVS            R2, #0                                                 ; +0x2a, 0x308856\nLDR.W           R3, [R3,#0x1D8]                                        ; +0x2c, 0x308858\nSTRB.W          R2, [SP,#0xC+var_A]                                    ; +0x30, 0x30885c\nBLX             R3                                                     ; +0x34, 0x308860\nLDR.W           R0, [R5,#0x208]                                        ; +0x36, 0x308862\nLDR             R1, =0x3F4CCCCD                                        ; +0x3a, 0x308866\nLDR             R3, [R0]                                               ; +0x3c, 0x308868\nLDR             R3, [R3,#0x50]                                         ; +0x3e, 0x30886a\nBLX             R3                                                     ; +0x40, 0x30886c\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x42, 0x30886e\nLDR             R3, [R4]                                               ; +0x44, 0x308870\nCMP             R2, R3                                                 ; +0x46, 0x308872\nBEQ             loc_30887A                                             ; +0x48, 0x308874\nBLX             __stack_chk_fail                                       ; +0x4a, 0x308876\nADD             SP, SP, #0xC                                           ; +0x4e, 0x30887a\nPOP             {R4,R5,PC}                                             ; +0x50, 0x30887c", "xrefs": ["`non-virtual thunk to'CreateGuidelinesLayer::ccTouchEnded @ 0x30888c"], "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"}