{"type": "func", "start": 5372701440, "end": 5372701620, "name": "RewardUnlockLayer::showCollectReward", "pseudocode": "// \n// RewardUnlockLayer::showCollectReward from 0x1403ceb00 to 0x1403cebb4 (180 bytes)\n// \n// 2 xrefs:\n// > RewardsPage::rewardsStatusFinished @ 0x1403cd5ca\n// > <???> @ 0x1406d7c10\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\nbool RewardUnlockLayer::showCollectReward(RewardUnlockLayer *a1, GJRewardItem *a2)\n{\n  GJRewardItem *m_rewardItem; // rcx\n  bool v5; // zf\n\n  if ( !a2 )\n    return 0;\n  m_rewardItem = a1->m_rewardItem;\n  if ( m_rewardItem )\n    cocos2d::CCObject::release(m_rewardItem);\n  a1->m_rewardItem = a2;\n  cocos2d::CCObject::retain(a2);\n  if ( a2->m_unk && a2->m_rewardType != a1->m_chestType )\n    return 0;\n  a1->m_closeBtn->setVisible(a1->m_closeBtn, 0);\n  a1->m_closeBtn->setEnabled(a1->m_closeBtn, 0);\n  a1->m_wrongLabel->setVisible(a1->m_wrongLabel, 0);\n  v5 = !a1->m_animationPlayed;\n  a1->m_rewardCollected = 1;\n  if ( !v5 )\n    RewardUnlockLayer::playRewardEffect(a1);\n  return 1;\n}", "assembly": "; \n; RewardUnlockLayer::showCollectReward from 0x1403ceb00 to 0x1403cebb4 (180 bytes)\n; \n; 2 xrefs:\n; > RewardsPage::rewardsStatusFinished @ 0x1403cd5ca\n; > <???> @ 0x1406d7c10\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_0], rbx                                               ; +0x0, 0x1403ceb00\npush    rdi                                                            ; +0x5, 0x1403ceb05\nsub     rsp, 20h                                                       ; +0x6, 0x1403ceb06\nmov     rdi, rdx                                                       ; +0xa, 0x1403ceb0a\nmov     rbx, rcx                                                       ; +0xd, 0x1403ceb0d\ntest    rdx, rdx                                                       ; +0x10, 0x1403ceb10\njz      loc_1403CEBA7                                                  ; +0x13, 0x1403ceb13\nmov     rcx, [rcx+2A0h]                                                ; +0x19, 0x1403ceb19\ntest    rcx, rcx                                                       ; +0x20, 0x1403ceb20\njz      short loc_1403CEB2B                                            ; +0x23, 0x1403ceb23\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x25, 0x1403ceb25\nmov     rcx, rdi                                                       ; +0x2b, 0x1403ceb2b\nmov     [rbx+2A0h], rdi                                                ; +0x2e, 0x1403ceb2e\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x35, 0x1403ceb35\ncmp     byte ptr [rdi+50h], 0                                          ; +0x3b, 0x1403ceb3b\njz      short loc_1403CEB4C                                            ; +0x3f, 0x1403ceb3f\nmov     eax, [rbx+298h]                                                ; +0x41, 0x1403ceb41\ncmp     [rdi+40h], eax                                                 ; +0x47, 0x1403ceb47\njnz     short loc_1403CEBA7                                            ; +0x4a, 0x1403ceb4a\nmov     rcx, [rbx+2B0h]                                                ; +0x4c, 0x1403ceb4c\nxor     edx, edx                                                       ; +0x53, 0x1403ceb53\nmov     rax, [rcx]                                                     ; +0x55, 0x1403ceb55\ncall    qword ptr [rax+140h]                                           ; +0x58, 0x1403ceb58\nmov     rcx, [rbx+2B0h]                                                ; +0x5e, 0x1403ceb5e\nxor     edx, edx                                                       ; +0x65, 0x1403ceb65\nmov     rax, [rcx]                                                     ; +0x67, 0x1403ceb67\ncall    qword ptr [rax+398h]                                           ; +0x6a, 0x1403ceb6a\nmov     rcx, [rbx+2A8h]                                                ; +0x70, 0x1403ceb70\nxor     edx, edx                                                       ; +0x77, 0x1403ceb77\nmov     rax, [rcx]                                                     ; +0x79, 0x1403ceb79\ncall    qword ptr [rax+140h]                                           ; +0x7c, 0x1403ceb7c\ncmp     byte ptr [rbx+29Dh], 0                                         ; +0x82, 0x1403ceb82\nmov     byte ptr [rbx+29Ch], 1                                         ; +0x89, 0x1403ceb89\njz      short loc_1403CEB9A                                            ; +0x90, 0x1403ceb90\nmov     rcx, rbx                                                       ; +0x92, 0x1403ceb92\ncall    RewardUnlockLayer__playRewardEffect                            ; +0x95, 0x1403ceb95\nmov     al, 1                                                          ; +0x9a, 0x1403ceb9a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9c, 0x1403ceb9c\nadd     rsp, 20h                                                       ; +0xa1, 0x1403ceba1\npop     rdi                                                            ; +0xa5, 0x1403ceba5\nretn                                                                   ; +0xa6, 0x1403ceba6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa7, 0x1403ceba7\nxor     al, al                                                         ; +0xac, 0x1403cebac\nadd     rsp, 20h                                                       ; +0xae, 0x1403cebae\npop     rdi                                                            ; +0xb2, 0x1403cebb2\nretn                                                                   ; +0xb3, 0x1403cebb3", "xrefs": ["RewardsPage::rewardsStatusFinished @ 0x1403cd5ca", "<???> @ 0x1406d7c10"], "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"}