{"type": "func", "start": 13277320, "end": 13277764, "name": "DeathTrackerPopup::ccTouchBegan", "pseudocode": "// \n// DeathTrackerPopup::ccTouchBegan from 0xca9888 to 0xca9a44 (444 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'DeathTrackerPopup::ccTouchBegan @ 0xca9a48\n// > <???> @ 0xda830\n// > <???> @ 0x14f8df0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:06:04 +0000\n// \n\n__int64 __fastcall DeathTrackerPopup::ccTouchBegan(__int64 a1, cocos2d::CCTouch *this, __int64 a3)\n{\n  int v6; // w0\n  __int64 v7; // x22\n  int v8; // w25\n  __int64 v10; // x22\n  int v11; // w27\n  __int64 v12; // [xsp+60h] [xbp+60h] BYREF\n  float v13; // [xsp+68h] [xbp+68h] BYREF\n  float v14; // [xsp+6Ch] [xbp+6Ch]\n  __int64 v15; // [xsp+70h] [xbp+70h] BYREF\n  _BYTE v16[16]; // [xsp+78h] [xbp+78h] BYREF\n\n  cocos2d::CCTouch::getLocation(&v12, this);\n  v6 = *(_DWORD *)(a1 + 728);\n  switch ( v6 )\n  {\n    case 0:\nLABEL_9:\n      v10 = *(_QWORD *)(a1 + 712);\n      v11 = 1;\n      if ( !v10 )\n        goto LABEL_14;\n      goto LABEL_10;\n    case 2:\n      if ( !*(_BYTE *)(a1 + 986) )\n        goto LABEL_4;\n      goto LABEL_9;\n    case 1:\nLABEL_4:\n      v7 = *(_QWORD *)(a1 + 688);\n      if ( v7 )\n      {\n        cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v13, (const cocos2d::CCSize *)(v7 + 424));\n        cocos2d::CCNode::convertToWorldSpace(&v15, (cocos2d::CCNode *)v7, (const cocos2d::CCPoint *)&unk_155F060);\n        cocos2d::CCRect::CCRect((cocos2d::CCRect *)v16, *(float *)&v15, *((float *)&v15 + 1), v13, v14);\n        if ( (unsigned __int8)cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v16, (const cocos2d::CCPoint *)&v12) )\n        {\n          v8 = 1;\n          ScrollableContentLayer::handleTouchBegan(*(ScrollableContentLayer **)(a1 + 688), this);\n          return (unsigned __int8)FLAlertLayer::ccTouchBegan(a1, (__int64)this, a3) | (unsigned int)v8;\n        }\n      }\nLABEL_14:\n      v8 = 0;\n      return (unsigned __int8)FLAlertLayer::ccTouchBegan(a1, (__int64)this, a3) | (unsigned int)v8;\n  }\n  v10 = *(_QWORD *)(a1 + 720);\n  v11 = 0;\n  if ( !v10 )\n    goto LABEL_14;\nLABEL_10:\n  v8 = 0;\n  cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v13, (const cocos2d::CCSize *)(v10 + 316));\n  cocos2d::CCNode::convertToWorldSpace(&v15, (cocos2d::CCNode *)v10, (const cocos2d::CCPoint *)&unk_155F060);\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v16, *(float *)&v15, *((float *)&v15 + 1), v13, v14);\n  if ( (unsigned __int8)cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v16, (const cocos2d::CCPoint *)&v12) )\n  {\n    v8 = 1;\n    if ( v11 )\n      DeathHistogram::handleTouchBegan(*(DeathHistogram **)(a1 + 712), this);\n    else\n      DeathHistogram::handleTouchBegan(*(DeathHistogram **)(a1 + 720), this);\n  }\n  return (unsigned __int8)FLAlertLayer::ccTouchBegan(a1, (__int64)this, a3) | (unsigned int)v8;\n}", "assembly": "; \n; DeathTrackerPopup::ccTouchBegan from 0xca9888 to 0xca9a44 (444 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'DeathTrackerPopup::ccTouchBegan @ 0xca9a48\n; > <???> @ 0xda830\n; > <???> @ 0x14f8df0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:06:04 +0000\n; \nSTP             X29, X30, [SP,#var_90]!                                ; +0x0, 0xca9888\nMOV             X29, SP                                                ; +0x4, 0xca988c\nSTP             X19, X20, [SP,#0x90+var_80]                            ; +0x8, 0xca9890\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xca9894\nMOV             X19, X0                                                ; +0x10, 0xca9898\nSTP             X23, X24, [SP,#0x90+var_60]                            ; +0x14, 0xca989c\nMOV             X0, X1; this                                           ; +0x18, 0xca98a0\nMOV             X23, X1                                                ; +0x1c, 0xca98a4\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xca98a8\nADD             X24, X29, #0x90+var_30                                 ; +0x24, 0xca98ac\nSTP             X25, X26, [SP,#0x90+var_50]                            ; +0x28, 0xca98b0\nSTP             X21, X22, [SP,#0x90+var_70]                            ; +0x2c, 0xca98b4\nSTR             X27, [SP,#0x90+var_40]                                 ; +0x30, 0xca98b8\nMOV             X8, X24                                                ; +0x34, 0xca98bc\nMOV             X26, X2                                                ; +0x38, 0xca98c0\nLDR             X1, [X1]                                               ; +0x3c, 0xca98c4\nSTR             X1, [X29,#0x90+var_8]                                  ; +0x40, 0xca98c8\nBL              _ZNK7cocos2d7CCTouch11getLocationEv; cocos2d::CCTouch::getLocation(void) ; +0x44, 0xca98cc\nLDR             W0, [X19,#0x2D8]                                       ; +0x48, 0xca98d0\nCBZ             W0, loc_CA99A0                                         ; +0x4c, 0xca98d4\nCMP             W0, #2                                                 ; +0x50, 0xca98d8\nB.EQ            loc_CA9998                                             ; +0x54, 0xca98dc\nCMP             W0, #1                                                 ; +0x58, 0xca98e0\nB.NE            loc_CA9A18                                             ; +0x5c, 0xca98e4\nLDR             X22, [X19,#0x2B0]                                      ; +0x60, 0xca98e8\nCBZ             X22, loc_CA9A24                                        ; +0x64, 0xca98ec\nADD             X0, X29, #0x90+var_28; this                            ; +0x68, 0xca98f0\nADD             X1, X22, #0x1A8; cocos2d::CCSize *                     ; +0x6c, 0xca98f4\nADD             X21, X29, #0x90+var_18                                 ; +0x70, 0xca98f8\nBL              _ZN7cocos2d6CCSizeC1ERKS0_; cocos2d::CCSize::CCSize(cocos2d::CCSize const&) ; +0x74, 0xca98fc\nADRP            X1, #unk_155F060@PAGE                                  ; +0x78, 0xca9900\nADD             X8, X29, #0x90+var_20                                  ; +0x7c, 0xca9904\nADD             X1, X1, #unk_155F060@PAGEOFF; cocos2d::CCPoint *       ; +0x80, 0xca9908\nMOV             X0, X22; this                                          ; +0x84, 0xca990c\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0x88, 0xca9910\nLDR             S0, [X29,#0x90+var_20]; float                          ; +0x8c, 0xca9914\nMOV             X0, X21; this                                          ; +0x90, 0xca9918\nLDR             S1, [X29,#0x90+var_1C]; float                          ; +0x94, 0xca991c\nLDR             S2, [X29,#0x90+var_28]; float                          ; +0x98, 0xca9920\nLDR             S3, [X29,#0x90+var_24]; float                          ; +0x9c, 0xca9924\nBL              _ZN7cocos2d6CCRectC2Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xa0, 0xca9928\nMOV             X0, X21; this                                          ; +0xa4, 0xca992c\nMOV             X1, X24; cocos2d::CCPoint *                            ; +0xa8, 0xca9930\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0xac, 0xca9934\nUXTB            W0, W0                                                 ; +0xb0, 0xca9938\nCBZ             W0, loc_CA9A24                                         ; +0xb4, 0xca993c\nLDR             X0, [X19,#0x2B0]; this                                 ; +0xb8, 0xca9940\nMOV             X1, X23; cocos2d::CCTouch *                            ; +0xbc, 0xca9944\nMOV             W25, #1                                                ; +0xc0, 0xca9948\nBL              _ZN22ScrollableContentLayer16handleTouchBeganEPN7cocos2d7CCTouchE; ScrollableContentLayer::handleTouchBegan(cocos2d::CCTouch *) ; +0xc4, 0xca994c\nMOV             X0, X19                                                ; +0xc8, 0xca9950\nMOV             X1, X23                                                ; +0xcc, 0xca9954\nMOV             X2, X26                                                ; +0xd0, 0xca9958\nBL              _ZN12FLAlertLayer12ccTouchBeganEPN7cocos2d7CCTouchEPNS0_7CCEventE; FLAlertLayer::ccTouchBegan(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0xd4, 0xca995c\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xd8, 0xca9960\nLDR             X19, [X29,#0x90+var_8]                                 ; +0xdc, 0xca9964\nUXTB            W0, W0                                                 ; +0xe0, 0xca9968\nORR             W0, W0, W25                                            ; +0xe4, 0xca996c\nLDR             X1, [X20]                                              ; +0xe8, 0xca9970\nCMP             X19, X1                                                ; +0xec, 0xca9974\nB.NE            loc_CA9A40                                             ; +0xf0, 0xca9978\nLDP             X19, X20, [SP,#0x90+var_80]                            ; +0xf4, 0xca997c\nLDP             X21, X22, [SP,#0x90+var_70]                            ; +0xf8, 0xca9980\nLDP             X23, X24, [SP,#0x90+var_60]                            ; +0xfc, 0xca9984\nLDP             X25, X26, [SP,#0x90+var_50]                            ; +0x100, 0xca9988\nLDR             X27, [SP,#0x90+var_40]                                 ; +0x104, 0xca998c\nLDP             X29, X30, [SP+0x90+var_90],#0x90                       ; +0x108, 0xca9990\nRET                                                                    ; +0x10c, 0xca9994\nLDRB            W0, [X19,#0x3DA]                                       ; +0x110, 0xca9998\nCBZ             W0, loc_CA98E8                                         ; +0x114, 0xca999c\nLDR             X22, [X19,#0x2C8]                                      ; +0x118, 0xca99a0\nMOV             W27, #1                                                ; +0x11c, 0xca99a4\nCBZ             X22, loc_CA9A24                                        ; +0x120, 0xca99a8\nADD             X0, X29, #0x90+var_28; this                            ; +0x124, 0xca99ac\nADD             X1, X22, #0x13C; cocos2d::CCSize *                     ; +0x128, 0xca99b0\nADD             X21, X29, #0x90+var_18                                 ; +0x12c, 0xca99b4\nMOV             W25, #0                                                ; +0x130, 0xca99b8\nBL              _ZN7cocos2d6CCSizeC1ERKS0_; cocos2d::CCSize::CCSize(cocos2d::CCSize const&) ; +0x134, 0xca99bc\nADRP            X1, #unk_155F060@PAGE                                  ; +0x138, 0xca99c0\nADD             X8, X29, #0x90+var_20                                  ; +0x13c, 0xca99c4\nADD             X1, X1, #unk_155F060@PAGEOFF; cocos2d::CCPoint *       ; +0x140, 0xca99c8\nMOV             X0, X22; this                                          ; +0x144, 0xca99cc\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0x148, 0xca99d0\nLDR             S0, [X29,#0x90+var_20]; float                          ; +0x14c, 0xca99d4\nMOV             X0, X21; this                                          ; +0x150, 0xca99d8\nLDR             S1, [X29,#0x90+var_1C]; float                          ; +0x154, 0xca99dc\nLDR             S2, [X29,#0x90+var_28]; float                          ; +0x158, 0xca99e0\nLDR             S3, [X29,#0x90+var_24]; float                          ; +0x15c, 0xca99e4\nBL              _ZN7cocos2d6CCRectC2Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x160, 0xca99e8\nMOV             X0, X21; this                                          ; +0x164, 0xca99ec\nMOV             X1, X24; cocos2d::CCPoint *                            ; +0x168, 0xca99f0\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x16c, 0xca99f4\nUXTB            W0, W0                                                 ; +0x170, 0xca99f8\nCBZ             W0, loc_CA9950                                         ; +0x174, 0xca99fc\nCBNZ            W27, loc_CA9A2C                                        ; +0x178, 0xca9a00\nLDR             X0, [X19,#0x2D0]; this                                 ; +0x17c, 0xca9a04\nMOV             X1, X23; cocos2d::CCTouch *                            ; +0x180, 0xca9a08\nMOV             W25, #1                                                ; +0x184, 0xca9a0c\nBL              _ZN14DeathHistogram16handleTouchBeganEPN7cocos2d7CCTouchE; DeathHistogram::handleTouchBegan(cocos2d::CCTouch *) ; +0x188, 0xca9a10\nB               loc_CA9950                                             ; +0x18c, 0xca9a14\nLDR             X22, [X19,#0x2D0]                                      ; +0x190, 0xca9a18\nMOV             W27, #0                                                ; +0x194, 0xca9a1c\nCBNZ            X22, loc_CA99AC                                        ; +0x198, 0xca9a20\nMOV             W25, #0                                                ; +0x19c, 0xca9a24\nB               loc_CA9950                                             ; +0x1a0, 0xca9a28\nLDR             X0, [X19,#0x2C8]; this                                 ; +0x1a4, 0xca9a2c\nMOV             X1, X23; cocos2d::CCTouch *                            ; +0x1a8, 0xca9a30\nMOV             W25, #1                                                ; +0x1ac, 0xca9a34\nBL              _ZN14DeathHistogram16handleTouchBeganEPN7cocos2d7CCTouchE; DeathHistogram::handleTouchBegan(cocos2d::CCTouch *) ; +0x1b0, 0xca9a38\nB               loc_CA9950                                             ; +0x1b4, 0xca9a3c\nBL              .__stack_chk_fail                                      ; +0x1b8, 0xca9a40", "xrefs": ["`non-virtual thunk to'DeathTrackerPopup::ccTouchBegan @ 0xca9a48", "<???> @ 0xda830", "<???> @ 0x14f8df0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}