{"type": "func", "start": 6970912, "end": 6971086, "name": "CustomSFXRowMenu::ccTouchBegan", "pseudocode": "// \n// CustomSFXRowMenu::ccTouchBegan from 0x6a5e20 to 0x6a5ece (174 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CustomSFXRowMenu::ccTouchBegan @ 0x6a5ee0\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:56:30 +0000\n// \n\nint __fastcall CustomSFXRowMenu::ccTouchBegan(int a1, int a2, int a3)\n{\n  int (*i)(void); // r3\n  const void *v7; // r0\n  const void *v8; // r5\n  const cocos2d::CCPoint *v9; // r4\n  float v10; // r11\n  int v11; // r0\n  int result; // r0\n  _BYTE v13[8]; // [sp+Ch] [bp-20h] BYREF\n  _BYTE v14[16]; // [sp+14h] [bp-18h] BYREF\n\n  for ( i = *(int (**)(void))(*(_DWORD *)a1 + 256); ; i = *(int (**)(void))(*(_DWORD *)v8 + 256) )\n  {\n    v7 = (const void *)i();\n    v8 = v7;\n    if ( !v7 )\n      break;\n    v9 = (const cocos2d::CCPoint *)_dynamic_cast(\n                                     v7,\n                                     (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,\n                                     (const struct __class_type_info *)&`typeinfo for'CCScrollLayerExt,\n                                     0);\n    if ( v9 )\n    {\n      cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v14);\n      cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v13, v9);\n      v10 = *(float *)(*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v9 + 164))(v9);\n      v11 = (*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v9 + 164))(v9);\n      cocos2d::CCRect::CCRect((cocos2d::CCRect *)v14, 0.0, 0.0, v10, *(float *)(v11 + 4));\n      result = cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v14, (const cocos2d::CCPoint *)v13);\n      if ( !result )\n        return result;\n      return cocos2d::CCMenu::ccTouchBegan(a1, a2, a3);\n    }\n  }\n  return cocos2d::CCMenu::ccTouchBegan(a1, a2, a3);\n}", "assembly": "; \n; CustomSFXRowMenu::ccTouchBegan from 0x6a5e20 to 0x6a5ece (174 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CustomSFXRowMenu::ccTouchBegan @ 0x6a5ee0\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:56:30 +0000\n; \nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x6a5e20\nSUB             SP, SP, #0x2C                                          ; +0x4, 0x6a5e24\nLDR             R6, =(__stack_chk_guard_ptr - 0x6A5E32)                ; +0x6, 0x6a5e26\nMOV             R8, R0                                                 ; +0x8, 0x6a5e28\nMOV             R7, R1                                                 ; +0xa, 0x6a5e2a\nMOV             R9, R2                                                 ; +0xc, 0x6a5e2c\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x6a5e2e\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x6a5e30\nLDR             R3, [R6]                                               ; +0x12, 0x6a5e32\nSTR             R3, [SP,#0x2C+var_8]                                   ; +0x14, 0x6a5e34\nLDR             R3, [R0]                                               ; +0x16, 0x6a5e36\nLDR.W           R3, [R3,#0x100]                                        ; +0x18, 0x6a5e38\nBLX             R3                                                     ; +0x1c, 0x6a5e3c\nMOV             R5, R0                                                 ; +0x1e, 0x6a5e3e\nCMP             R0, #0                                                 ; +0x20, 0x6a5e40\nBEQ             loc_6A5EB2                                             ; +0x22, 0x6a5e42\nLDR             R1, =(_ZTIN7cocos2d6CCNodeE_ptr - 0x6A5E50)            ; +0x24, 0x6a5e44\nMOV             R0, R5; lpsrc                                          ; +0x26, 0x6a5e46\nLDR             R2, =(_ZTI16CCScrollLayerExt_ptr - 0x6A5E54)           ; +0x28, 0x6a5e48\nMOVS            R3, #0; s2d                                            ; +0x2a, 0x6a5e4a\nADD             R1, PC; _ZTIN7cocos2d6CCNodeE_ptr                      ; +0x2c, 0x6a5e4c\nLDR             R1, [R1]; lpstype                                      ; +0x2e, 0x6a5e4e\nADD             R2, PC; _ZTI16CCScrollLayerExt_ptr                     ; +0x30, 0x6a5e50\nLDR             R2, [R2]; lpdtype                                      ; +0x32, 0x6a5e52\nBL              __dynamic_cast                                         ; +0x34, 0x6a5e54\nMOV             R4, R0                                                 ; +0x38, 0x6a5e58\nCBZ             R0, loc_6A5EA8                                         ; +0x3a, 0x6a5e5a\nADD             R5, SP, #0x2C+var_18                                   ; +0x3c, 0x6a5e5c\nADD.W           R10, SP, #0x2C+var_20                                  ; +0x3e, 0x6a5e5e\nMOV             R1, R7                                                 ; +0x42, 0x6a5e62\nMOV             R0, R5; this                                           ; +0x44, 0x6a5e64\nBL              _ZNK7cocos2d7CCTouch11getLocationEv; cocos2d::CCTouch::getLocation(void) ; +0x46, 0x6a5e66\nMOV             R1, R4; cocos2d::CCPoint *                             ; +0x4a, 0x6a5e6a\nMOV             R2, R5                                                 ; +0x4c, 0x6a5e6c\nMOV             R0, R10; this                                          ; +0x4e, 0x6a5e6e\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x50, 0x6a5e70\nLDR             R3, [R4]                                               ; +0x54, 0x6a5e74\nMOV             R0, R4                                                 ; +0x56, 0x6a5e76\nLDR.W           R3, [R3,#0xA4]                                         ; +0x58, 0x6a5e78\nBLX             R3                                                     ; +0x5c, 0x6a5e7c\nLDR             R3, [R4]                                               ; +0x5e, 0x6a5e7e\nLDR.W           R3, [R3,#0xA4]                                         ; +0x60, 0x6a5e80\nLDR.W           R11, [R0]                                              ; +0x64, 0x6a5e84\nMOV             R0, R4                                                 ; +0x68, 0x6a5e88\nBLX             R3                                                     ; +0x6a, 0x6a5e8a\nMOVS            R1, #0; float                                          ; +0x6c, 0x6a5e8c\nMOV             R2, R1; float                                          ; +0x6e, 0x6a5e8e\nLDR             R3, [R0,#4]                                            ; +0x70, 0x6a5e90\nMOV             R0, R5; this                                           ; +0x72, 0x6a5e92\nSTR             R3, [SP,#0x2C+var_2C]; float                           ; +0x74, 0x6a5e94\nMOV             R3, R11; float                                         ; +0x76, 0x6a5e96\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x78, 0x6a5e98\nMOV             R0, R5; this                                           ; +0x7c, 0x6a5e9c\nMOV             R1, R10; cocos2d::CCPoint *                            ; +0x7e, 0x6a5e9e\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x80, 0x6a5ea0\nCBNZ            R0, loc_6A5EB2                                         ; +0x84, 0x6a5ea4\nB               loc_6A5EBC                                             ; +0x86, 0x6a5ea6\nLDR             R3, [R5]                                               ; +0x88, 0x6a5ea8\nMOV             R0, R5                                                 ; +0x8a, 0x6a5eaa\nLDR.W           R3, [R3,#0x100]                                        ; +0x8c, 0x6a5eac\nB               loc_6A5E3C                                             ; +0x90, 0x6a5eb0\nMOV             R0, R8                                                 ; +0x92, 0x6a5eb2\nMOV             R1, R7                                                 ; +0x94, 0x6a5eb4\nMOV             R2, R9                                                 ; +0x96, 0x6a5eb6\nBL              _ZN7cocos2d6CCMenu12ccTouchBeganEPNS_7CCTouchEPNS_7CCEventE; cocos2d::CCMenu::ccTouchBegan(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0x98, 0x6a5eb8\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0x9c, 0x6a5ebc\nLDR             R3, [R6]                                               ; +0x9e, 0x6a5ebe\nCMP             R2, R3                                                 ; +0xa0, 0x6a5ec0\nBEQ             loc_6A5EC8                                             ; +0xa2, 0x6a5ec2\nBLX             __stack_chk_fail                                       ; +0xa4, 0x6a5ec4\nADD             SP, SP, #0x2C ; ','                                    ; +0xa8, 0x6a5ec8\nPOP.W           {R4-R11,PC}                                            ; +0xaa, 0x6a5eca", "xrefs": ["`non-virtual thunk to'CustomSFXRowMenu::ccTouchBegan @ 0x6a5ee0"], "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"}