{"type": "func", "start": 5372043856, "end": 5372044036, "name": "LikeItemLayer::triggerLike", "pseudocode": "// \n// LikeItemLayer::triggerLike from 0x14032e250 to 0x14032e304 (180 bytes)\n// \n// 3 xrefs:\n// > LikeItemLayer::onLike @ 0x14032e232\n// > LikeItemLayer::onDislike @ 0x14032e242\n// > <???> @ 0x1406d4f7c\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 LikeItemLayer::triggerLike(LikeItemLayer *a1, bool a2)\n{\n  GameLevelManager *v4; // rcx\n  LikeItemDelegate *m_likeDelegate; // rcx\n  _BOOL8 v6; // rdx\n  void *v7; // [rsp+40h] [rbp+8h]\n\n  v4 = (GameLevelManager *)qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v7 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v4 = (GameLevelManager *)qword_1406C2EC0;\n  }\n  GameLevelManager::likeItem(v4, a1->m_itemType, a1->m_itemID, a2, a1->m_commentSourceID);\n  m_likeDelegate = a1->m_likeDelegate;\n  if ( m_likeDelegate )\n    m_likeDelegate->likedItem(m_likeDelegate, a1->m_itemType, a1->m_itemID, a2);\n  a1->setKeypadEnabled(a1, 0);\n  LOBYTE(v6) = 1;\n  a1->removeFromParentAndCleanup(a1, v6);\n}", "assembly": "; \n; LikeItemLayer::triggerLike from 0x14032e250 to 0x14032e304 (180 bytes)\n; \n; 3 xrefs:\n; > LikeItemLayer::onLike @ 0x14032e232\n; > LikeItemLayer::onDislike @ 0x14032e242\n; > <???> @ 0x1406d4f7c\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14032e250\npush    rdi                                                            ; +0x5, 0x14032e255\nsub     rsp, 30h                                                       ; +0x6, 0x14032e256\nmovzx   edi, dl                                                        ; +0xa, 0x14032e25a\nmov     rbx, rcx                                                       ; +0xd, 0x14032e25d\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x10, 0x14032e260\ntest    rcx, rcx                                                       ; +0x17, 0x14032e267\njnz     short loc_14032E29B                                            ; +0x1a, 0x14032e26a\nmov     ecx, 3D0h; Size                                                ; +0x1c, 0x14032e26c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x21, 0x14032e271\nmov     [rsp+38h+arg_0], rax                                           ; +0x26, 0x14032e276\nmov     rcx, rax                                                       ; +0x2b, 0x14032e27b\ncall    sub_140141280                                                  ; +0x2e, 0x14032e27e\nnop                                                                    ; +0x33, 0x14032e283\nmov     cs:qword_1406C2EC0, rax                                        ; +0x34, 0x14032e284\nmov     rdx, [rax]                                                     ; +0x3b, 0x14032e28b\nmov     rcx, rax                                                       ; +0x3e, 0x14032e28e\ncall    qword ptr [rdx+48h]                                            ; +0x41, 0x14032e291\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x44, 0x14032e294\nmov     eax, [rbx+280h]                                                ; +0x4b, 0x14032e29b\nmov     [rsp+38h+var_18], eax                                          ; +0x51, 0x14032e2a1\nmovzx   r9d, dil                                                       ; +0x55, 0x14032e2a5\nmov     r8d, [rbx+27Ch]                                                ; +0x59, 0x14032e2a9\nmov     edx, [rbx+278h]                                                ; +0x60, 0x14032e2b0\ncall    GameLevelManager__likeItem                                     ; +0x66, 0x14032e2b6\nmov     rcx, [rbx+288h]                                                ; +0x6b, 0x14032e2bb\ntest    rcx, rcx                                                       ; +0x72, 0x14032e2c2\njz      short loc_14032E2DD                                            ; +0x75, 0x14032e2c5\nmov     rax, [rcx]                                                     ; +0x77, 0x14032e2c7\nmovzx   r9d, dil                                                       ; +0x7a, 0x14032e2ca\nmov     r8d, [rbx+27Ch]                                                ; +0x7e, 0x14032e2ce\nmov     edx, [rbx+278h]                                                ; +0x85, 0x14032e2d5\ncall    qword ptr [rax]                                                ; +0x8b, 0x14032e2db\nmov     rax, [rbx]                                                     ; +0x8d, 0x14032e2dd\nxor     edx, edx                                                       ; +0x90, 0x14032e2e0\nmov     rcx, rbx                                                       ; +0x92, 0x14032e2e2\ncall    qword ptr [rax+3D0h]                                           ; +0x95, 0x14032e2e5\nmov     rax, [rbx]                                                     ; +0x9b, 0x14032e2eb\nmov     dl, 1                                                          ; +0x9e, 0x14032e2ee\nmov     rcx, rbx                                                       ; +0xa0, 0x14032e2f0\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xa3, 0x14032e2f3\nadd     rsp, 30h                                                       ; +0xa8, 0x14032e2f8\npop     rdi                                                            ; +0xac, 0x14032e2fc\njmp     qword ptr [rax+1F8h]                                           ; +0xad, 0x14032e2fd", "xrefs": ["LikeItemLayer::onLike @ 0x14032e232", "LikeItemLayer::onDislike @ 0x14032e242", "<???> @ 0x1406d4f7c"], "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"}