{"type": "func", "start": 4295553744, "end": 4295553888, "name": "GJRewardItem::createWithCoder", "pseudocode": "// \n// GJRewardItem::createWithCoder from 0x10008f2d0 to 0x10008f360 (144 bytes)\n// \n// 1 xrefs:\n// > GJObjectDecoder::getDecodedObject @ 0x1007248c9\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\nGJRewardItem *__fastcall GJRewardItem::createWithCoder(DS_Dictionary *a1)\n{\n  double v1; // xmm0_8\n  cocos2d::CCObject *v2; // rbx\n  cocos2d::CCArray *ArrayForKey; // rax\n  cocos2d::CCObject *v4; // rdi\n  cocos2d::CCArray *v5; // r14\n  __int128 v7; // [rsp+8h] [rbp-28h] BYREF\n\n  LOWORD(v7) = 0;\n  v2 = GJRewardItem::create(0, 0, &v7, v1);\n  LODWORD(v2[1].__vftable) = DS_Dictionary::getIntegerForKey(a1, \"1\");\n  v2[1].m_uID = DS_Dictionary::getIntegerForKey(a1, \"2\");\n  ArrayForKey = DS_Dictionary::getArrayForKey(a1, \"3\", 0);\n  v4 = *(cocos2d::CCObject **)&v2[1].m_nTag;\n  if ( v4 != ArrayForKey )\n  {\n    v5 = ArrayForKey;\n    if ( ArrayForKey )\n    {\n      cocos2d::CCObject::retain(ArrayForKey);\n      v4 = *(cocos2d::CCObject **)&v2[1].m_nTag;\n    }\n    if ( v4 )\n      cocos2d::CCObject::release(v4);\n    *(_QWORD *)&v2[1].m_nTag = v5;\n  }\n  return (GJRewardItem *)v2;\n}", "assembly": "; \n; GJRewardItem::createWithCoder from 0x10008f2d0 to 0x10008f360 (144 bytes)\n; \n; 1 xrefs:\n; > GJObjectDecoder::getDecodedObject @ 0x1007248c9\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, 0x10008f2d0\nmov     rbp, rsp                                                       ; +0x1, 0x10008f2d1\npush    r14                                                            ; +0x4, 0x10008f2d4\npush    rbx                                                            ; +0x6, 0x10008f2d6\nsub     rsp, 20h                                                       ; +0x7, 0x10008f2d7\nmov     r14, rdi                                                       ; +0xb, 0x10008f2db\nmov     word ptr [rbp+var_28], 0                                       ; +0xe, 0x10008f2de\nlea     rdx, [rbp+var_28]                                              ; +0x14, 0x10008f2e4\nxor     edi, edi                                                       ; +0x18, 0x10008f2e8\nxor     esi, esi                                                       ; +0x1a, 0x10008f2ea\ncall    GJRewardItem__create                                           ; +0x1c, 0x10008f2ec\nmov     rbx, rax                                                       ; +0x21, 0x10008f2f1\nlea     rsi, a1; \"1\"                                                   ; +0x24, 0x10008f2f4\nmov     rdi, r14                                                       ; +0x2b, 0x10008f2fb\ncall    DS_Dictionary__getIntegerForKey                                ; +0x2e, 0x10008f2fe\nmov     [rbx+38h], eax                                                 ; +0x33, 0x10008f303\nlea     rsi, a2_1; \"2\"                                                 ; +0x36, 0x10008f306\nmov     rdi, r14                                                       ; +0x3d, 0x10008f30d\ncall    DS_Dictionary__getIntegerForKey                                ; +0x40, 0x10008f310\nmov     [rbx+40h], eax                                                 ; +0x45, 0x10008f315\nlea     rsi, a3; \"3\"                                                   ; +0x48, 0x10008f318\nmov     rdi, r14                                                       ; +0x4f, 0x10008f31f\nxor     edx, edx                                                       ; +0x52, 0x10008f322\ncall    DS_Dictionary__getArrayForKey                                  ; +0x54, 0x10008f324\nmov     rdi, [rbx+48h]                                                 ; +0x59, 0x10008f329\ncmp     rdi, rax                                                       ; +0x5d, 0x10008f32d\njz      short loc_10008F354                                            ; +0x60, 0x10008f330\nmov     r14, rax                                                       ; +0x62, 0x10008f332\ntest    rax, rax                                                       ; +0x65, 0x10008f335\njz      short loc_10008F346                                            ; +0x68, 0x10008f338\nmov     rdi, r14                                                       ; +0x6a, 0x10008f33a\ncall    cocos2d__CCObject__retain                                      ; +0x6d, 0x10008f33d\nmov     rdi, [rbx+48h]                                                 ; +0x72, 0x10008f342\ntest    rdi, rdi                                                       ; +0x76, 0x10008f346\njz      short loc_10008F350                                            ; +0x79, 0x10008f349\ncall    cocos2d__CCObject__release                                     ; +0x7b, 0x10008f34b\nmov     [rbx+48h], r14                                                 ; +0x80, 0x10008f350\nmov     rax, rbx                                                       ; +0x84, 0x10008f354\nadd     rsp, 20h                                                       ; +0x87, 0x10008f357\npop     rbx                                                            ; +0x8b, 0x10008f35b\npop     r14                                                            ; +0x8c, 0x10008f35c\npop     rbp                                                            ; +0x8e, 0x10008f35e\nretn                                                                   ; +0x8f, 0x10008f35f", "xrefs": ["GJObjectDecoder::getDecodedObject @ 0x1007248c9"], "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"}