{"type": "func", "start": 5369490112, "end": 5369490319, "name": "SmartTemplateCell::onClick", "pseudocode": "// \n// SmartTemplateCell::onClick from 0x1400beac0 to 0x1400beb8f (207 bytes)\n// \n// 3 xrefs:\n// > SmartTemplateCell::loadFromObject @ 0x1400be7e5\n// > SmartTemplateCell::loadFromObject @ 0x1400be885\n// > <???> @ 0x1406c7e9c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nvoid SmartTemplateCell::onClick(SmartTemplateCell *a1, cocos2d::CCObject *a2)\n{\n  int v3; // eax\n  TableViewCellDelegate *m_cellDelegate; // rcx\n  __int64 v5; // r9\n  __int64 v6; // rcx\n  void *v7; // [rsp+48h] [rbp+10h]\n\n  if ( a2 )\n  {\n    v3 = a2->getTag(a2);\n    if ( v3 )\n    {\n      if ( v3 == 1 )\n      {\n        m_cellDelegate = a1->m_tableView->m_cellDelegate;\n        if ( m_cellDelegate )\n        {\n          v5 = 6;\nLABEL_11:\n          m_cellDelegate->cellPerformedAction(m_cellDelegate, a1, 22, (CellAction)v5, nullptr);\n        }\n      }\n    }\n    else if ( a1->m_smartTemplate )\n    {\n      v6 = qword_1406C2EC0;\n      if ( !qword_1406C2EC0 )\n      {\n        v7 = operator new(0x3D0u);\n        qword_1406C2EC0 = sub_140141280(v7);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n        v6 = qword_1406C2EC0;\n      }\n      *(_QWORD *)(v6 + 960) = a1->m_smartTemplate;\n      m_cellDelegate = a1->m_tableView->m_cellDelegate;\n      if ( m_cellDelegate )\n      {\n        v5 = 1;\n        goto LABEL_11;\n      }\n    }\n  }\n}", "assembly": "; \n; SmartTemplateCell::onClick from 0x1400beac0 to 0x1400beb8f (207 bytes)\n; \n; 3 xrefs:\n; > SmartTemplateCell::loadFromObject @ 0x1400be7e5\n; > SmartTemplateCell::loadFromObject @ 0x1400be885\n; > <???> @ 0x1406c7e9c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\ntest    rdx, rdx                                                       ; +0x0, 0x1400beac0\njz      locret_1400BEB8E                                               ; +0x3, 0x1400beac3\npush    rbx                                                            ; +0x9, 0x1400beac9\nsub     rsp, 30h                                                       ; +0xa, 0x1400beaca\nmov     rbx, rcx                                                       ; +0xe, 0x1400beace\nmov     rax, [rdx]                                                     ; +0x11, 0x1400bead1\nmov     rcx, rdx                                                       ; +0x14, 0x1400bead4\ncall    qword ptr [rax+38h]                                            ; +0x17, 0x1400bead7\ntest    eax, eax                                                       ; +0x1a, 0x1400beada\njz      short loc_1400BEB06                                            ; +0x1c, 0x1400beadc\ncmp     eax, 1                                                         ; +0x1e, 0x1400beade\njnz     loc_1400BEB89                                                  ; +0x21, 0x1400beae1\nmov     rax, [rbx+1A0h]                                                ; +0x27, 0x1400beae7\nmov     rcx, [rax+260h]                                                ; +0x2e, 0x1400beaee\ntest    rcx, rcx                                                       ; +0x35, 0x1400beaf5\njz      loc_1400BEB89                                                  ; +0x38, 0x1400beaf8\nmov     r9d, 6                                                         ; +0x3e, 0x1400beafe\njmp     short loc_1400BEB72                                            ; +0x44, 0x1400beb04\ncmp     qword ptr [rbx+230h], 0                                        ; +0x46, 0x1400beb06\njz      short loc_1400BEB89                                            ; +0x4e, 0x1400beb0e\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x50, 0x1400beb10\ntest    rcx, rcx                                                       ; +0x57, 0x1400beb17\njnz     short loc_1400BEB4B                                            ; +0x5a, 0x1400beb1a\nmov     ecx, 3D0h; Size                                                ; +0x5c, 0x1400beb1c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x61, 0x1400beb21\nmov     [rsp+38h+arg_8], rax                                           ; +0x66, 0x1400beb26\nmov     rcx, rax                                                       ; +0x6b, 0x1400beb2b\ncall    sub_140141280                                                  ; +0x6e, 0x1400beb2e\nnop                                                                    ; +0x73, 0x1400beb33\nmov     cs:qword_1406C2EC0, rax                                        ; +0x74, 0x1400beb34\nmov     rdx, [rax]                                                     ; +0x7b, 0x1400beb3b\nmov     rcx, rax                                                       ; +0x7e, 0x1400beb3e\ncall    qword ptr [rdx+48h]                                            ; +0x81, 0x1400beb41\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x84, 0x1400beb44\nmov     rax, [rbx+230h]                                                ; +0x8b, 0x1400beb4b\nmov     [rcx+3C0h], rax                                                ; +0x92, 0x1400beb52\nmov     rax, [rbx+1A0h]                                                ; +0x99, 0x1400beb59\nmov     rcx, [rax+260h]                                                ; +0xa0, 0x1400beb60\ntest    rcx, rcx                                                       ; +0xa7, 0x1400beb67\njz      short loc_1400BEB89                                            ; +0xaa, 0x1400beb6a\nmov     r9d, 1                                                         ; +0xac, 0x1400beb6c\nmov     [rsp+38h+var_18], 0                                            ; +0xb2, 0x1400beb72\nmov     rax, [rcx]                                                     ; +0xbb, 0x1400beb7b\nmov     r8d, 16h                                                       ; +0xbe, 0x1400beb7e\nmov     rdx, rbx                                                       ; +0xc4, 0x1400beb84\ncall    qword ptr [rax]                                                ; +0xc7, 0x1400beb87\nadd     rsp, 30h                                                       ; +0xc9, 0x1400beb89\npop     rbx                                                            ; +0xcd, 0x1400beb8d\nretn                                                                   ; +0xce, 0x1400beb8e", "xrefs": ["SmartTemplateCell::loadFromObject @ 0x1400be7e5", "SmartTemplateCell::loadFromObject @ 0x1400be885", "<???> @ 0x1406c7e9c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}