{"type": "func", "start": 7762632, "end": 7762746, "name": "DeathHistogram::handleTouchBegan", "pseudocode": "// \n// DeathHistogram::handleTouchBegan from 0x7672c8 to 0x76733a (114 bytes)\n// \n// 1 xrefs:\n// > DeathTrackerPopup::ccTouchBegan @ 0x770a6a\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:08 +0000\n// \n\nScrollableContentLayer *__fastcall DeathHistogram::handleTouchBegan(\n        ScrollableContentLayer **this,\n        cocos2d::CCTouch *a2)\n{\n  ScrollableContentLayer *v4; // r0\n  float v5; // r1\n  ScrollableContentLayer *result; // r0\n  _BYTE v7[8]; // [sp+4h] [bp+0h] BYREF\n\n  if ( *(this + 68) && a2 )\n  {\n    cocos2d::CCNode::convertTouchToNodeSpace((cocos2d::CCNode *)v7, (cocos2d::CCTouch *)this);\n    if ( cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(this + 72), (const cocos2d::CCPoint *)v7) )\n    {\n      v4 = *(this + 68);\n      v5 = 0.0;\nLABEL_7:\n      ScrollableContentLayer::scrollTo(v4, v5);\n      return (ScrollableContentLayer *)(&dword_0 + 1);\n    }\n    if ( cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(this + 76), (const cocos2d::CCPoint *)v7) )\n    {\n      v4 = *(this + 68);\n      v5 = 1000000000.0;\n      goto LABEL_7;\n    }\n  }\n  result = *(this + 68);\n  if ( result )\n    return (ScrollableContentLayer *)ScrollableContentLayer::handleTouchBegan(result, a2);\n  return result;\n}", "assembly": "; \n; DeathHistogram::handleTouchBegan from 0x7672c8 to 0x76733a (114 bytes)\n; \n; 1 xrefs:\n; > DeathTrackerPopup::ccTouchBegan @ 0x770a6a\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:08 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x7672D0)                ; +0x0, 0x7672c8\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x7672ca\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x7672cc\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x7672ce\nSUB             SP, SP, #0x14                                          ; +0x8, 0x7672d0\nMOV             R4, R0                                                 ; +0xa, 0x7672d2\nLDR             R2, [R3]                                               ; +0xc, 0x7672d4\nMOV             R6, R1                                                 ; +0xe, 0x7672d6\nMOV             R5, R3                                                 ; +0x10, 0x7672d8\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x12, 0x7672da\nLDR.W           R2, [R0,#0x110]                                        ; +0x14, 0x7672dc\nCBZ             R2, loc_76731E                                         ; +0x18, 0x7672e0\nCBZ             R1, loc_76731E                                         ; +0x1a, 0x7672e2\nADD             R7, SP, #4                                             ; +0x1c, 0x7672e4\nMOV             R1, R4; cocos2d::CCTouch *                             ; +0x1e, 0x7672e6\nMOV             R2, R6                                                 ; +0x20, 0x7672e8\nMOV             R0, R7; this                                           ; +0x22, 0x7672ea\nBL              _ZN7cocos2d6CCNode23convertTouchToNodeSpaceEPNS_7CCTouchE; cocos2d::CCNode::convertTouchToNodeSpace(cocos2d::CCTouch *) ; +0x24, 0x7672ec\nADD.W           R0, R4, #0x120; this                                   ; +0x28, 0x7672f0\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0x2c, 0x7672f4\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x2e, 0x7672f6\nCBZ             R0, loc_767304                                         ; +0x32, 0x7672fa\nLDR.W           R0, [R4,#0x110]                                        ; +0x34, 0x7672fc\nMOVS            R1, #0                                                 ; +0x38, 0x767300\nB               loc_767316                                             ; +0x3a, 0x767302\nADD.W           R0, R4, #0x130; this                                   ; +0x3c, 0x767304\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0x40, 0x767308\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x42, 0x76730a\nCBZ             R0, loc_76731E                                         ; +0x46, 0x76730e\nLDR.W           R0, [R4,#0x110]; this                                  ; +0x48, 0x767310\nLDR             R1, flt_76733C; float                                  ; +0x4c, 0x767314\nBL              _ZN22ScrollableContentLayer8scrollToEf; ScrollableContentLayer::scrollTo(float) ; +0x4e, 0x767316\nMOVS            R0, #1                                                 ; +0x52, 0x76731a\nB               loc_76732A                                             ; +0x54, 0x76731c\nLDR.W           R0, [R4,#0x110]; this                                  ; +0x56, 0x76731e\nCBZ             R0, loc_76732A                                         ; +0x5a, 0x767322\nMOV             R1, R6; cocos2d::CCTouch *                             ; +0x5c, 0x767324\nBL              _ZN22ScrollableContentLayer16handleTouchBeganEPN7cocos2d7CCTouchE; ScrollableContentLayer::handleTouchBegan(cocos2d::CCTouch *) ; +0x5e, 0x767326\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x62, 0x76732a\nLDR             R3, [R5]                                               ; +0x64, 0x76732c\nCMP             R2, R3                                                 ; +0x66, 0x76732e\nBEQ             loc_767336                                             ; +0x68, 0x767330\nBLX             __stack_chk_fail                                       ; +0x6a, 0x767332\nADD             SP, SP, #0x14                                          ; +0x6e, 0x767336\nPOP             {R4-R7,PC}                                             ; +0x70, 0x767338", "xrefs": ["DeathTrackerPopup::ccTouchBegan @ 0x770a6a"], "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"}