{"type": "func", "start": 13210396, "end": 13210632, "name": "DeathHistogram::handleTouchBegan", "pseudocode": "// \n// DeathHistogram::handleTouchBegan from 0xc9931c to 0xc99408 (236 bytes)\n// \n// 3 xrefs:\n// > DeathTrackerPopup::ccTouchBegan @ 0xca9a10\n// > DeathTrackerPopup::ccTouchBegan @ 0xca9a38\n// > <???> @ 0xd4e00\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:05:55 +0000\n// \n\nbool __fastcall DeathHistogram::handleTouchBegan(DeathHistogram *this, cocos2d::CCTouch *a2)\n{\n  ScrollableContentLayer *v4; // x3\n  _BOOL4 v5; // w19\n  __int64 v7; // [xsp+40h] [xbp+40h] BYREF\n\n  v4 = *((ScrollableContentLayer **)this + 41);\n  v5 = a2 != nullptr && v4 != nullptr;\n  if ( a2 != nullptr && v4 != nullptr )\n  {\n    cocos2d::CCNode::convertTouchToNodeSpace(&v7, this, a2);\n    if ( (unsigned __int8)cocos2d::CCRect::containsPoint(\n                            (DeathHistogram *)((char *)this + 356),\n                            (const cocos2d::CCPoint *)&v7) )\n    {\n      ScrollableContentLayer::scrollTo(*((ScrollableContentLayer **)this + 41), 0.0);\n      return v5;\n    }\n    if ( (unsigned __int8)cocos2d::CCRect::containsPoint(\n                            (DeathHistogram *)((char *)this + 372),\n                            (const cocos2d::CCPoint *)&v7) )\n    {\n      ScrollableContentLayer::scrollTo(*((ScrollableContentLayer **)this + 41), 1000000000.0);\n      return v5;\n    }\n    v4 = *((ScrollableContentLayer **)this + 41);\n  }\n  if ( v4 )\n    return ScrollableContentLayer::handleTouchBegan(v4, a2);\n  else\n    return 0;\n}", "assembly": "; \n; DeathHistogram::handleTouchBegan from 0xc9931c to 0xc99408 (236 bytes)\n; \n; 3 xrefs:\n; > DeathTrackerPopup::ccTouchBegan @ 0xca9a10\n; > DeathTrackerPopup::ccTouchBegan @ 0xca9a38\n; > <???> @ 0xd4e00\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:05:55 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0xc9931c\nCMP             X1, XZR                                                ; +0x4, 0xc99320\nMOV             X29, SP                                                ; +0x8, 0xc99324\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0xc99328\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0xc9932c\nSTR             X23, [SP,#0x50+var_20]                                 ; +0x14, 0xc99330\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x18, 0xc99334\nCSET            W19, NE                                                ; +0x1c, 0xc99338\nMOV             X21, X0                                                ; +0x20, 0xc9933c\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0xc99340\nMOV             X22, X1                                                ; +0x28, 0xc99344\nLDR             X3, [X0,#0x148]                                        ; +0x2c, 0xc99348\nCMP             X3, XZR                                                ; +0x30, 0xc9934c\nLDR             X4, [X2]                                               ; +0x34, 0xc99350\nCSET            W2, NE                                                 ; +0x38, 0xc99354\nSTR             X4, [X29,#0x50+var_8]                                  ; +0x3c, 0xc99358\nANDS            W19, W19, W2                                           ; +0x40, 0xc9935c\nB.EQ            loc_C9939C                                             ; +0x44, 0xc99360\nADD             X23, X29, #0x50+var_10                                 ; +0x48, 0xc99364\nMOV             X8, X23                                                ; +0x4c, 0xc99368\nBL              _ZN7cocos2d6CCNode23convertTouchToNodeSpaceEPNS_7CCTouchE; cocos2d::CCNode::convertTouchToNodeSpace(cocos2d::CCTouch *) ; +0x50, 0xc9936c\nADD             X0, X21, #0x164; this                                  ; +0x54, 0xc99370\nMOV             X1, X23; cocos2d::CCPoint *                            ; +0x58, 0xc99374\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x5c, 0xc99378\nUXTB            W0, W0                                                 ; +0x60, 0xc9937c\nCBNZ            W0, loc_C993DC                                         ; +0x64, 0xc99380\nADD             X0, X21, #0x174; this                                  ; +0x68, 0xc99384\nMOV             X1, X23; cocos2d::CCPoint *                            ; +0x6c, 0xc99388\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x70, 0xc9938c\nUXTB            W0, W0                                                 ; +0x74, 0xc99390\nCBNZ            W0, loc_C993F4                                         ; +0x78, 0xc99394\nLDR             X3, [X21,#0x148]                                       ; +0x7c, 0xc99398\nCBZ             X3, loc_C993EC                                         ; +0x80, 0xc9939c\nMOV             X0, X3; this                                           ; +0x84, 0xc993a0\nMOV             X1, X22; cocos2d::CCTouch *                            ; +0x88, 0xc993a4\nBL              _ZN22ScrollableContentLayer16handleTouchBeganEPN7cocos2d7CCTouchE; ScrollableContentLayer::handleTouchBegan(cocos2d::CCTouch *) ; +0x8c, 0xc993a8\nUXTB            W19, W0                                                ; +0x90, 0xc993ac\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x94, 0xc993b0\nMOV             W0, W19                                                ; +0x98, 0xc993b4\nLDR             X2, [X29,#0x50+var_8]                                  ; +0x9c, 0xc993b8\nLDR             X1, [X20]                                              ; +0xa0, 0xc993bc\nCMP             X2, X1                                                 ; +0xa4, 0xc993c0\nB.NE            loc_C99404                                             ; +0xa8, 0xc993c4\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xac, 0xc993c8\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xb0, 0xc993cc\nLDR             X23, [SP,#0x50+var_20]                                 ; +0xb4, 0xc993d0\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xb8, 0xc993d4\nRET                                                                    ; +0xbc, 0xc993d8\nFMOV            S0, WZR; float                                         ; +0xc0, 0xc993dc\nLDR             X0, [X21,#0x148]; this                                 ; +0xc4, 0xc993e0\nBL              _ZN22ScrollableContentLayer8scrollToEf; ScrollableContentLayer::scrollTo(float) ; +0xc8, 0xc993e4\nB               loc_C993B0                                             ; +0xcc, 0xc993e8\nMOV             W19, #0                                                ; +0xd0, 0xc993ec\nB               loc_C993B0                                             ; +0xd4, 0xc993f0\nLDR             S0, flt_C99408; float                                  ; +0xd8, 0xc993f4\nLDR             X0, [X21,#0x148]; this                                 ; +0xdc, 0xc993f8\nBL              _ZN22ScrollableContentLayer8scrollToEf; ScrollableContentLayer::scrollTo(float) ; +0xe0, 0xc993fc\nB               loc_C993B0                                             ; +0xe4, 0xc99400\nBL              .__stack_chk_fail                                      ; +0xe8, 0xc99404", "xrefs": ["DeathTrackerPopup::ccTouchBegan @ 0xca9a10", "DeathTrackerPopup::ccTouchBegan @ 0xca9a38", "<???> @ 0xd4e00"], "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"}