{"type": "func", "start": 4295553888, "end": 4295554002, "name": "GJRewardItem::dataLoaded", "pseudocode": "// \n// GJRewardItem::dataLoaded from 0x10008f360 to 0x10008f3d2 (114 bytes)\n// \n// 0 xrefs:\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\nvoid __fastcall GJRewardItem::dataLoaded(GJRewardItem *a1, DS_Dictionary *a2)\n{\n  cocos2d::CCArray *ArrayForKey; // rax\n  cocos2d::CCArray *m_rewardObjects; // rdi\n  cocos2d::CCArray *v5; // r14\n\n  a1->m_chestID = DS_Dictionary::getIntegerForKey(a2, \"1\");\n  a1->m_rewardType = DS_Dictionary::getIntegerForKey(a2, \"2\");\n  ArrayForKey = DS_Dictionary::getArrayForKey(a2, \"3\", 0);\n  m_rewardObjects = a1->m_rewardObjects;\n  if ( m_rewardObjects != ArrayForKey )\n  {\n    v5 = ArrayForKey;\n    if ( ArrayForKey )\n    {\n      cocos2d::CCObject::retain(ArrayForKey);\n      m_rewardObjects = a1->m_rewardObjects;\n    }\n    if ( m_rewardObjects )\n      cocos2d::CCObject::release(m_rewardObjects);\n    a1->m_rewardObjects = v5;\n  }\n}", "assembly": "; \n; GJRewardItem::dataLoaded from 0x10008f360 to 0x10008f3d2 (114 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x10008f360\nmov     rbp, rsp                                                       ; +0x1, 0x10008f361\npush    r14                                                            ; +0x4, 0x10008f364\npush    rbx                                                            ; +0x6, 0x10008f366\nmov     r14, rsi                                                       ; +0x7, 0x10008f367\nmov     rbx, rdi                                                       ; +0xa, 0x10008f36a\nlea     rsi, a1; \"1\"                                                   ; +0xd, 0x10008f36d\nmov     rdi, r14                                                       ; +0x14, 0x10008f374\ncall    DS_Dictionary__getIntegerForKey                                ; +0x17, 0x10008f377\nmov     [rbx+38h], eax                                                 ; +0x1c, 0x10008f37c\nlea     rsi, a2_1; \"2\"                                                 ; +0x1f, 0x10008f37f\nmov     rdi, r14                                                       ; +0x26, 0x10008f386\ncall    DS_Dictionary__getIntegerForKey                                ; +0x29, 0x10008f389\nmov     [rbx+40h], eax                                                 ; +0x2e, 0x10008f38e\nlea     rsi, a3; \"3\"                                                   ; +0x31, 0x10008f391\nmov     rdi, r14                                                       ; +0x38, 0x10008f398\nxor     edx, edx                                                       ; +0x3b, 0x10008f39b\ncall    DS_Dictionary__getArrayForKey                                  ; +0x3d, 0x10008f39d\nmov     rdi, [rbx+48h]                                                 ; +0x42, 0x10008f3a2\ncmp     rdi, rax                                                       ; +0x46, 0x10008f3a6\njz      short loc_10008F3CD                                            ; +0x49, 0x10008f3a9\nmov     r14, rax                                                       ; +0x4b, 0x10008f3ab\ntest    rax, rax                                                       ; +0x4e, 0x10008f3ae\njz      short loc_10008F3BF                                            ; +0x51, 0x10008f3b1\nmov     rdi, r14                                                       ; +0x53, 0x10008f3b3\ncall    cocos2d__CCObject__retain                                      ; +0x56, 0x10008f3b6\nmov     rdi, [rbx+48h]                                                 ; +0x5b, 0x10008f3bb\ntest    rdi, rdi                                                       ; +0x5f, 0x10008f3bf\njz      short loc_10008F3C9                                            ; +0x62, 0x10008f3c2\ncall    cocos2d__CCObject__release                                     ; +0x64, 0x10008f3c4\nmov     [rbx+48h], r14                                                 ; +0x69, 0x10008f3c9\npop     rbx                                                            ; +0x6d, 0x10008f3cd\npop     r14                                                            ; +0x6e, 0x10008f3ce\npop     rbp                                                            ; +0x70, 0x10008f3d0\nretn                                                                   ; +0x71, 0x10008f3d1", "xrefs": [], "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"}