{"type": "func", "start": 4295319024, "end": 4295319168, "name": "GJRewardItem::createWithCoder", "pseudocode": "// \n// GJRewardItem::createWithCoder from 0x100055df0 to 0x100055e80 (144 bytes)\n// \n// 1 xrefs:\n// > GJObjectDecoder::getDecodedObject @ 0x1008037e9\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:19:36 +0000\n// \n\n_QWORD *__fastcall GJRewardItem::createWithCoder(__int64 a1)\n{\n  _QWORD *v1; // rbx\n  __int64 ArrayForKey; // rax\n  __int64 v3; // rdi\n  __int64 v4; // r14\n  __int128 v6; // [rsp+8h] [rbp-28h] BYREF\n\n  LOWORD(v6) = 0;\n  v1 = GJRewardItem::create(0, 0, &v6);\n  *((_DWORD *)v1 + 14) = DS_Dictionary::getIntegerForKey(a1, \"1\");\n  *((_DWORD *)v1 + 16) = DS_Dictionary::getIntegerForKey(a1, \"2\");\n  ArrayForKey = DS_Dictionary::getArrayForKey(a1, \"3\", 0);\n  v3 = v1[9];\n  if ( v3 != ArrayForKey )\n  {\n    v4 = ArrayForKey;\n    if ( ArrayForKey )\n    {\n      cocos2d::CCObject::retain(ArrayForKey);\n      v3 = v1[9];\n    }\n    if ( v3 )\n      cocos2d::CCObject::release(v3);\n    v1[9] = v4;\n  }\n  return v1;\n}", "assembly": "; \n; GJRewardItem::createWithCoder from 0x100055df0 to 0x100055e80 (144 bytes)\n; \n; 1 xrefs:\n; > GJObjectDecoder::getDecodedObject @ 0x1008037e9\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:19:36 +0000\n; \npush    rbp                                                            ; +0x0, 0x100055df0\nmov     rbp, rsp                                                       ; +0x1, 0x100055df1\npush    r14                                                            ; +0x4, 0x100055df4\npush    rbx                                                            ; +0x6, 0x100055df6\nsub     rsp, 20h                                                       ; +0x7, 0x100055df7\nmov     r14, rdi                                                       ; +0xb, 0x100055dfb\nmov     word ptr [rbp+var_28], 0                                       ; +0xe, 0x100055dfe\nlea     rdx, [rbp+var_28]                                              ; +0x14, 0x100055e04\nxor     edi, edi                                                       ; +0x18, 0x100055e08\nxor     esi, esi                                                       ; +0x1a, 0x100055e0a\ncall    GJRewardItem__create                                           ; +0x1c, 0x100055e0c\nmov     rbx, rax                                                       ; +0x21, 0x100055e11\nlea     rsi, a1; \"1\"                                                   ; +0x24, 0x100055e14\nmov     rdi, r14                                                       ; +0x2b, 0x100055e1b\ncall    DS_Dictionary__getIntegerForKey                                ; +0x2e, 0x100055e1e\nmov     [rbx+38h], eax                                                 ; +0x33, 0x100055e23\nlea     rsi, a2; \"2\"                                                   ; +0x36, 0x100055e26\nmov     rdi, r14                                                       ; +0x3d, 0x100055e2d\ncall    DS_Dictionary__getIntegerForKey                                ; +0x40, 0x100055e30\nmov     [rbx+40h], eax                                                 ; +0x45, 0x100055e35\nlea     rsi, a3; \"3\"                                                   ; +0x48, 0x100055e38\nmov     rdi, r14                                                       ; +0x4f, 0x100055e3f\nxor     edx, edx                                                       ; +0x52, 0x100055e42\ncall    DS_Dictionary__getArrayForKey                                  ; +0x54, 0x100055e44\nmov     rdi, [rbx+48h]                                                 ; +0x59, 0x100055e49\ncmp     rdi, rax                                                       ; +0x5d, 0x100055e4d\njz      short loc_100055E74                                            ; +0x60, 0x100055e50\nmov     r14, rax                                                       ; +0x62, 0x100055e52\ntest    rax, rax                                                       ; +0x65, 0x100055e55\njz      short loc_100055E66                                            ; +0x68, 0x100055e58\nmov     rdi, r14                                                       ; +0x6a, 0x100055e5a\ncall    cocos2d__CCObject__retain                                      ; +0x6d, 0x100055e5d\nmov     rdi, [rbx+48h]                                                 ; +0x72, 0x100055e62\ntest    rdi, rdi                                                       ; +0x76, 0x100055e66\njz      short loc_100055E70                                            ; +0x79, 0x100055e69\ncall    cocos2d__CCObject__release                                     ; +0x7b, 0x100055e6b\nmov     [rbx+48h], r14                                                 ; +0x80, 0x100055e70\nmov     rax, rbx                                                       ; +0x84, 0x100055e74\nadd     rsp, 20h                                                       ; +0x87, 0x100055e77\npop     rbx                                                            ; +0x8b, 0x100055e7b\npop     r14                                                            ; +0x8c, 0x100055e7c\npop     rbp                                                            ; +0x8e, 0x100055e7e\nretn                                                                   ; +0x8f, 0x100055e7f", "xrefs": ["GJObjectDecoder::getDecodedObject @ 0x1008037e9"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}