{"type": "func", "start": 5369817344, "end": 5369817784, "name": "DeathTrackerPopup::ccTouchBegan", "pseudocode": "// \n// DeathTrackerPopup::ccTouchBegan from 0x14010e900 to 0x14010eab8 (440 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14072f470\n// > <???> @ 0x140915b90\n// \n// This function is hookable on this platform (idp: pc, 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 11:26:48 +0000\n// \n\nchar __fastcall DeathTrackerPopup::ccTouchBegan(__int64 a1, __int64 a2, __int64 a3)\n{\n  int v6; // ecx\n  bool v7; // r14\n  bool v8; // si\n  __int64 v9; // rax\n  __int64 v10; // r13\n  __int64 *v11; // r15\n  const struct cocos2d::CCSize *v12; // rdx\n  cocos2d::CCRect *v13; // rax\n  __int64 v14; // rcx\n  char result; // al\n  _BYTE v16[8]; // [rsp+30h] [rbp-48h] BYREF\n  _BYTE v17[16]; // [rsp+38h] [rbp-40h] BYREF\n  _BYTE v18[48]; // [rsp+48h] [rbp-30h] BYREF\n  float v19; // [rsp+80h] [rbp+8h] BYREF\n  float v20; // [rsp+84h] [rbp+Ch]\n  float v21; // [rsp+98h] [rbp+20h] BYREF\n  float v22; // [rsp+9Ch] [rbp+24h]\n\n  cocos2d::CCTouch::getLocation(a2, v18);\n  v6 = *(_DWORD *)(a1 + 408);\n  v7 = !v6 || v6 == 2 && *(_BYTE *)(a1 + 666);\n  v8 = v6 == 1 || v6 == 2 && !*(_BYTE *)(a1 + 666);\n  if ( v7 )\n    v9 = 392;\n  else\n    v9 = 32 * !v8 + 368LL;\n  v10 = *(_QWORD *)(v9 + a1);\n  if ( v10 )\n  {\n    if ( v8 )\n    {\n      v11 = (__int64 *)(a1 + 368);\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)v16, (const struct cocos2d::CCSize *)(*(_QWORD *)(a1 + 368) + 424LL));\n      v12 = (const struct cocos2d::CCSize *)v16;\n    }\n    else\n    {\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)v17, (const struct cocos2d::CCSize *)(v10 + 320));\n      v12 = (const struct cocos2d::CCSize *)v17;\n      v11 = (__int64 *)(a1 + 368);\n    }\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v19, v12);\n    cocos2d::CCNode::convertToWorldSpace(v10, &v21, &unk_14090A1C8);\n    v13 = (cocos2d::CCRect *)cocos2d::CCRect::CCRect((cocos2d::CCRect *)v17, v21, v22, v19, v20);\n    if ( cocos2d::CCRect::containsPoint(v13, (const struct cocos2d::CCPoint *)v18) )\n    {\n      if ( v7 )\n      {\n        v14 = *(_QWORD *)(a1 + 392);\n      }\n      else\n      {\n        if ( v8 )\n        {\n          ScrollableContentLayer::handleTouchBegan(*v11, a2);\n          goto LABEL_22;\n        }\n        v14 = *(_QWORD *)(a1 + 400);\n      }\n      DeathHistogram::handleTouchBegan(v14, a2);\nLABEL_22:\n      FLAlertLayer::ccTouchBegan(a1, a2, a3);\n      return 1;\n    }\n  }\n  result = FLAlertLayer::ccTouchBegan(a1, a2, a3);\n  if ( result )\n    return 1;\n  return result;\n}", "assembly": "; \n; DeathTrackerPopup::ccTouchBegan from 0x14010e900 to 0x14010eab8 (440 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14072f470\n; > <???> @ 0x140915b90\n; \n; This function is hookable on this platform (idp: pc, 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 11:26:48 +0000\n; \npush    rbx                                                            ; +0x0, 0x14010e900\npush    rbp                                                            ; +0x2, 0x14010e902\npush    rdi                                                            ; +0x3, 0x14010e903\npush    r13                                                            ; +0x4, 0x14010e904\npush    r14                                                            ; +0x6, 0x14010e906\nsub     rsp, 50h                                                       ; +0x8, 0x14010e908\nmov     rdi, rdx                                                       ; +0xc, 0x14010e90c\nmov     rbx, rcx                                                       ; +0xf, 0x14010e90f\nmov     rcx, rdi                                                       ; +0x12, 0x14010e912\nlea     rdx, [rsp+78h+var_30]                                          ; +0x15, 0x14010e915\nmov     rbp, r8                                                        ; +0x1a, 0x14010e91a\ncall    cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x1d, 0x14010e91d\nmov     ecx, [rbx+198h]                                                ; +0x23, 0x14010e923\ntest    ecx, ecx                                                       ; +0x29, 0x14010e929\njz      short loc_14010E940                                            ; +0x2b, 0x14010e92b\ncmp     ecx, 2                                                         ; +0x2d, 0x14010e92d\njnz     short loc_14010E93B                                            ; +0x30, 0x14010e930\ncmp     byte ptr [rbx+29Ah], 0                                         ; +0x32, 0x14010e932\njnz     short loc_14010E940                                            ; +0x39, 0x14010e939\nxor     r14b, r14b                                                     ; +0x3b, 0x14010e93b\njmp     short loc_14010E943                                            ; +0x3e, 0x14010e93e\nmov     r14b, 1                                                        ; +0x40, 0x14010e940\nmov     [rsp+78h+arg_8], rsi                                           ; +0x43, 0x14010e943\ncmp     ecx, 1                                                         ; +0x4b, 0x14010e94b\njz      short loc_14010E963                                            ; +0x4e, 0x14010e94e\ncmp     ecx, 2                                                         ; +0x50, 0x14010e950\njnz     short loc_14010E95E                                            ; +0x53, 0x14010e953\ncmp     byte ptr [rbx+29Ah], 0                                         ; +0x55, 0x14010e955\njz      short loc_14010E963                                            ; +0x5c, 0x14010e95c\nxor     sil, sil                                                       ; +0x5e, 0x14010e95e\njmp     short loc_14010E966                                            ; +0x61, 0x14010e961\nmov     sil, 1                                                         ; +0x63, 0x14010e963\ntest    r14b, r14b                                                     ; +0x66, 0x14010e966\njz      short loc_14010E972                                            ; +0x69, 0x14010e969\nmov     eax, 188h                                                      ; +0x6b, 0x14010e96b\njmp     short loc_14010E984                                            ; +0x70, 0x14010e970\nmovzx   eax, sil                                                       ; +0x72, 0x14010e972\nxor     rax, 1                                                         ; +0x76, 0x14010e976\nshl     rax, 5                                                         ; +0x7a, 0x14010e97a\nadd     rax, 170h                                                      ; +0x7e, 0x14010e97e\nmov     [rsp+78h+arg_10], r15                                          ; +0x84, 0x14010e984\nmov     r13, [rax+rbx]                                                 ; +0x8c, 0x14010e98c\ntest    r13, r13                                                       ; +0x90, 0x14010e990\njz      loc_14010EAA4                                                  ; +0x93, 0x14010e993\ntest    sil, sil                                                       ; +0x99, 0x14010e999\njz      short loc_14010E9C1                                            ; +0x9c, 0x14010e99c\nlea     r15, [rbx+170h]                                                ; +0x9e, 0x14010e99e\nmov     rdx, [r15]                                                     ; +0xa5, 0x14010e9a5\nlea     rcx, [rsp+78h+var_48]                                          ; +0xa8, 0x14010e9a8\nadd     rdx, 1A8h                                                      ; +0xad, 0x14010e9ad\ncall    cs:??0CCSize@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCSize::CCSize(cocos2d::CCSize const &) ; +0xb4, 0x14010e9b4\nlea     rdx, [rsp+78h+var_48]                                          ; +0xba, 0x14010e9ba\njmp     short loc_14010E9DF                                            ; +0xbf, 0x14010e9bf\nlea     rdx, [r13+140h]                                                ; +0xc1, 0x14010e9c1\nlea     rcx, [rsp+78h+var_40]                                          ; +0xc8, 0x14010e9c8\ncall    cs:??0CCSize@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCSize::CCSize(cocos2d::CCSize const &) ; +0xcd, 0x14010e9cd\nlea     rdx, [rsp+78h+var_40]                                          ; +0xd3, 0x14010e9d3\nlea     r15, [rbx+170h]                                                ; +0xd8, 0x14010e9d8\nlea     rcx, [rsp+78h+arg_0]                                           ; +0xdf, 0x14010e9df\ncall    cs:??0CCSize@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCSize::CCSize(cocos2d::CCSize const &) ; +0xe7, 0x14010e9e7\nlea     r8, unk_14090A1C8                                              ; +0xed, 0x14010e9ed\nmov     rcx, r13                                                       ; +0xf4, 0x14010e9f4\nlea     rdx, [rsp+78h+arg_18]                                          ; +0xf7, 0x14010e9f7\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0xff, 0x14010e9ff\nmovss   xmm0, [rsp+78h+arg_4]                                          ; +0x105, 0x14010ea05\nlea     rcx, [rsp+78h+var_40]                                          ; +0x10e, 0x14010ea0e\nmovss   xmm3, [rsp+78h+arg_0]                                          ; +0x113, 0x14010ea13\nmovss   xmm2, [rsp+78h+arg_1C]                                         ; +0x11c, 0x14010ea1c\nmovss   xmm1, [rsp+78h+arg_18]                                         ; +0x125, 0x14010ea25\nmovss   [rsp+78h+var_58], xmm0                                         ; +0x12e, 0x14010ea2e\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x134, 0x14010ea34\nmov     rcx, rax                                                       ; +0x13a, 0x14010ea3a\nlea     rdx, [rsp+78h+var_30]                                          ; +0x13d, 0x14010ea3d\ncall    cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0x142, 0x14010ea42\ntest    al, al                                                         ; +0x148, 0x14010ea48\njz      short loc_14010EAA4                                            ; +0x14a, 0x14010ea4a\nmov     rdx, rdi                                                       ; +0x14c, 0x14010ea4c\ntest    r14b, r14b                                                     ; +0x14f, 0x14010ea4f\njz      short loc_14010EA8C                                            ; +0x152, 0x14010ea52\nmov     rcx, [rbx+188h]                                                ; +0x154, 0x14010ea54\ncall    DeathHistogram__handleTouchBegan                               ; +0x15b, 0x14010ea5b\nmov     r8, rbp                                                        ; +0x160, 0x14010ea60\nmov     rdx, rdi                                                       ; +0x163, 0x14010ea63\nmov     rcx, rbx                                                       ; +0x166, 0x14010ea66\ncall    FLAlertLayer__ccTouchBegan                                     ; +0x169, 0x14010ea69\nmov     al, 1                                                          ; +0x16e, 0x14010ea6e\nmov     r15, [rsp+78h+arg_10]                                          ; +0x170, 0x14010ea70\nmov     rsi, [rsp+78h+arg_8]                                           ; +0x178, 0x14010ea78\nadd     rsp, 50h                                                       ; +0x180, 0x14010ea80\npop     r14                                                            ; +0x184, 0x14010ea84\npop     r13                                                            ; +0x186, 0x14010ea86\npop     rdi                                                            ; +0x188, 0x14010ea88\npop     rbp                                                            ; +0x189, 0x14010ea89\npop     rbx                                                            ; +0x18a, 0x14010ea8a\nretn                                                                   ; +0x18b, 0x14010ea8b\ntest    sil, sil                                                       ; +0x18c, 0x14010ea8c\njz      short loc_14010EA9B                                            ; +0x18f, 0x14010ea8f\nmov     rcx, [r15]                                                     ; +0x191, 0x14010ea91\ncall    ScrollableContentLayer__handleTouchBegan                       ; +0x194, 0x14010ea94\njmp     short loc_14010EA60                                            ; +0x199, 0x14010ea99\nmov     rcx, [rbx+190h]                                                ; +0x19b, 0x14010ea9b\njmp     short loc_14010EA5B                                            ; +0x1a2, 0x14010eaa2\nmov     r8, rbp                                                        ; +0x1a4, 0x14010eaa4\nmov     rdx, rdi                                                       ; +0x1a7, 0x14010eaa7\nmov     rcx, rbx                                                       ; +0x1aa, 0x14010eaaa\ncall    FLAlertLayer__ccTouchBegan                                     ; +0x1ad, 0x14010eaad\ntest    al, al                                                         ; +0x1b2, 0x14010eab2\njnz     short loc_14010EA6E                                            ; +0x1b4, 0x14010eab4\njmp     short loc_14010EA70                                            ; +0x1b6, 0x14010eab6", "xrefs": ["<???> @ 0x14072f470", "<???> @ 0x140915b90"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}