{"type": "func", "start": 7905248, "end": 7905420, "name": "EditorSoundsLayer::ccTouchBegan", "pseudocode": "// \n// EditorSoundsLayer::ccTouchBegan from 0x789fe0 to 0x78a08c (172 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorSoundsLayer::ccTouchBegan @ 0x78a098\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:59:35 +0000\n// \n\nint __fastcall EditorSoundsLayer::ccTouchBegan(int a1, cocos2d::CCTouch *a2, int a3)\n{\n  ScrollableContentLayer *v6; // r0\n  int v7; // r0\n  int v8; // r4\n  int result; // r0\n  _BYTE v10[8]; // [sp+Ch] [bp-30h] BYREF\n  float v11[2]; // [sp+14h] [bp-28h] BYREF\n  float v12[2]; // [sp+1Ch] [bp-20h] BYREF\n  _BYTE v13[16]; // [sp+24h] [bp-18h] BYREF\n\n  if ( *(_DWORD *)(a1 + 784)\n    && (cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v10),\n        cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v11, *(const cocos2d::CCPoint **)(a1 + 784)),\n        cocos2d::CCSize::CCSize((cocos2d::CCSize *)v12, (const cocos2d::CCSize *)(*(_DWORD *)(a1 + 784) + 324)),\n        cocos2d::CCRect::CCRect((cocos2d::CCRect *)v13, v11[0], v11[1], v12[0], v12[1]),\n        cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v13, (const cocos2d::CCPoint *)v10)) )\n  {\n    v6 = *(ScrollableContentLayer **)(a1 + 784);\n    if ( v6 )\n      ScrollableContentLayer::handleTouchBegan(v6, a2);\n    v7 = *(_DWORD *)(a1 + 788);\n    if ( v7 )\n      v7 = (*(int (__fastcall **)(int, cocos2d::CCTouch *, int))(*(_DWORD *)v7 + 448))(v7, a2, a3);\n    v8 = v7;\n  }\n  else\n  {\n    v8 = 0;\n  }\n  result = FLAlertLayer::ccTouchBegan((_DWORD *)a1, (int)a2, a3);\n  if ( v8 )\n    result = 1;\n  *(_BYTE *)(a1 + 792) = v8;\n  return result;\n}", "assembly": "; \n; EditorSoundsLayer::ccTouchBegan from 0x789fe0 to 0x78a08c (172 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorSoundsLayer::ccTouchBegan @ 0x78a098\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:59:35 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x789FEA)                ; +0x0, 0x789fe0\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x789fe2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x789fe6\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x789fe8\nMOV             R8, R2                                                 ; +0xa, 0x789fea\nSUB             SP, SP, #0x3C                                          ; +0xc, 0x789fec\nLDR             R2, [R3]                                               ; +0xe, 0x789fee\nMOV             R5, R0                                                 ; +0x10, 0x789ff0\nMOV             R7, R1                                                 ; +0x12, 0x789ff2\nMOV             R6, R3                                                 ; +0x14, 0x789ff4\nSTR             R2, [SP,#0x3C+var_8]                                   ; +0x16, 0x789ff6\nLDR.W           R2, [R0,#0x310]                                        ; +0x18, 0x789ff8\nCMP             R2, #0                                                 ; +0x1c, 0x789ffc\nBEQ             loc_78A082                                             ; +0x1e, 0x789ffe\nADD.W           R9, SP, #0x3C+var_30                                   ; +0x20, 0x78a000\nADD             R4, SP, #0x3C+var_18                                   ; +0x24, 0x78a004\nMOV             R0, R9; this                                           ; +0x26, 0x78a006\nBL              _ZNK7cocos2d7CCTouch11getLocationEv; cocos2d::CCTouch::getLocation(void) ; +0x28, 0x78a008\nLDR             R2, =(unk_D2E3D8 - 0x78A018)                           ; +0x2c, 0x78a00c\nADD             R0, SP, #0x3C+var_28; this                             ; +0x2e, 0x78a00e\nLDR.W           R1, [R5,#0x310]; cocos2d::CCPoint *                    ; +0x30, 0x78a010\nADD             R2, PC; unk_D2E3D8                                     ; +0x34, 0x78a014\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0x36, 0x78a016\nLDR.W           R1, [R5,#0x310]                                        ; +0x3a, 0x78a01a\nADD             R0, SP, #0x3C+var_20; this                             ; +0x3e, 0x78a01e\nADD.W           R1, R1, #0x144; cocos2d::CCSize *                      ; +0x40, 0x78a020\nBL              _ZN7cocos2d6CCSizeC1ERKS0_; cocos2d::CCSize::CCSize(cocos2d::CCSize const&) ; +0x44, 0x78a024\nLDR             R3, [SP,#0x3C+var_1C]                                  ; +0x48, 0x78a028\nLDR             R1, [SP,#0x3C+var_28]; float                           ; +0x4a, 0x78a02a\nMOV             R0, R4; this                                           ; +0x4c, 0x78a02c\nLDR             R2, [SP,#0x3C+var_24]; float                           ; +0x4e, 0x78a02e\nSTR             R3, [SP,#0x3C+var_3C]; float                           ; +0x50, 0x78a030\nLDR             R3, [SP,#0x3C+var_20]; float                           ; +0x52, 0x78a032\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x54, 0x78a034\nMOV             R0, R4; this                                           ; +0x58, 0x78a038\nMOV             R1, R9; cocos2d::CCPoint *                             ; +0x5a, 0x78a03a\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x5c, 0x78a03c\nCBZ             R0, loc_78A082                                         ; +0x60, 0x78a040\nLDR.W           R0, [R5,#0x310]; this                                  ; +0x62, 0x78a042\nCBZ             R0, loc_78A04E                                         ; +0x66, 0x78a046\nMOV             R1, R7; cocos2d::CCTouch *                             ; +0x68, 0x78a048\nBL              _ZN22ScrollableContentLayer16handleTouchBeganEPN7cocos2d7CCTouchE; ScrollableContentLayer::handleTouchBegan(cocos2d::CCTouch *) ; +0x6a, 0x78a04a\nLDR.W           R0, [R5,#0x314]                                        ; +0x6e, 0x78a04e\nCBZ             R0, loc_78A060                                         ; +0x72, 0x78a052\nLDR             R3, [R0]                                               ; +0x74, 0x78a054\nMOV             R1, R7                                                 ; +0x76, 0x78a056\nMOV             R2, R8                                                 ; +0x78, 0x78a058\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x7a, 0x78a05a\nBLX             R3                                                     ; +0x7e, 0x78a05e\nMOV             R4, R0                                                 ; +0x80, 0x78a060\nMOV             R2, R8                                                 ; +0x82, 0x78a062\nMOV             R0, R5                                                 ; +0x84, 0x78a064\nMOV             R1, R7                                                 ; +0x86, 0x78a066\nBL              _ZN12FLAlertLayer12ccTouchBeganEPN7cocos2d7CCTouchEPNS0_7CCEventE; FLAlertLayer::ccTouchBegan(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0x88, 0x78a068\nCMP             R4, #0                                                 ; +0x8c, 0x78a06c\nLDR             R2, [SP,#0x3C+var_8]                                   ; +0x8e, 0x78a06e\nLDR             R3, [R6]                                               ; +0x90, 0x78a070\nIT NE                                                                  ; +0x92, 0x78a072\nMOVNE           R0, #1                                                 ; +0x94, 0x78a074\nSTRB.W          R4, [R5,#0x318]                                        ; +0x96, 0x78a076\nCMP             R2, R3                                                 ; +0x9a, 0x78a07a\nBEQ             loc_78A086                                             ; +0x9c, 0x78a07c\nBLX             __stack_chk_fail                                       ; +0x9e, 0x78a07e\nMOVS            R4, #0                                                 ; +0xa2, 0x78a082\nB               loc_78A062                                             ; +0xa4, 0x78a084\nADD             SP, SP, #0x3C ; '<'                                    ; +0xa6, 0x78a086\nPOP.W           {R4-R9,PC}                                             ; +0xa8, 0x78a088", "xrefs": ["`non-virtual thunk to'EditorSoundsLayer::ccTouchBegan @ 0x78a098"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}