{"type": "func", "start": 4295307088, "end": 4295307195, "name": "GJRewardItem::createWithObject", "pseudocode": "// \n// GJRewardItem::createWithObject from 0x100052f50 to 0x100052fbb (107 bytes)\n// \n// 0 xrefs:\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:35 +0000\n// \n\n_QWORD *__fastcall GJRewardItem::createWithObject(int a1, __int64 a2)\n{\n  __int64 v2; // rbx\n  _QWORD *v3; // r14\n  __int64 v4; // rdi\n  __int128 v6[3]; // [rsp+0h] [rbp-30h] BYREF\n\n  v2 = sub_1007FE9A0(a2);\n  LOWORD(v6[0]) = 0;\n  v3 = GJRewardItem::create(0, 0, v6);\n  *((_DWORD *)v3 + 16) = a1;\n  v4 = v3[9];\n  if ( v4 != v2 )\n  {\n    if ( v2 )\n    {\n      cocos2d::CCObject::retain(v2);\n      v4 = v3[9];\n    }\n    if ( v4 )\n      cocos2d::CCObject::release(v4);\n    v3[9] = v2;\n  }\n  return v3;\n}", "assembly": "; \n; GJRewardItem::createWithObject from 0x100052f50 to 0x100052fbb (107 bytes)\n; \n; 0 xrefs:\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:35 +0000\n; \npush    rbp                                                            ; +0x0, 0x100052f50\nmov     rbp, rsp                                                       ; +0x1, 0x100052f51\npush    r15                                                            ; +0x4, 0x100052f54\npush    r14                                                            ; +0x6, 0x100052f56\npush    rbx                                                            ; +0x8, 0x100052f58\nsub     rsp, 18h                                                       ; +0x9, 0x100052f59\nmov     r15d, edi                                                      ; +0xd, 0x100052f5d\nmov     rdi, rsi                                                       ; +0x10, 0x100052f60\ncall    sub_1007FE9A0                                                  ; +0x13, 0x100052f63\nmov     rbx, rax                                                       ; +0x18, 0x100052f68\nmov     word ptr [rbp+var_30], 0                                       ; +0x1b, 0x100052f6b\nlea     rdx, [rbp+var_30]                                              ; +0x21, 0x100052f71\nxor     edi, edi                                                       ; +0x25, 0x100052f75\nxor     esi, esi                                                       ; +0x27, 0x100052f77\ncall    GJRewardItem__create                                           ; +0x29, 0x100052f79\nmov     r14, rax                                                       ; +0x2e, 0x100052f7e\nmov     [rax+40h], r15d                                                ; +0x31, 0x100052f81\nmov     rdi, [rax+48h]                                                 ; +0x35, 0x100052f85\ncmp     rdi, rbx                                                       ; +0x39, 0x100052f89\njz      short loc_100052FAD                                            ; +0x3c, 0x100052f8c\ntest    rbx, rbx                                                       ; +0x3e, 0x100052f8e\njz      short loc_100052F9F                                            ; +0x41, 0x100052f91\nmov     rdi, rbx                                                       ; +0x43, 0x100052f93\ncall    cocos2d__CCObject__retain                                      ; +0x46, 0x100052f96\nmov     rdi, [r14+48h]                                                 ; +0x4b, 0x100052f9b\ntest    rdi, rdi                                                       ; +0x4f, 0x100052f9f\njz      short loc_100052FA9                                            ; +0x52, 0x100052fa2\ncall    cocos2d__CCObject__release                                     ; +0x54, 0x100052fa4\nmov     [r14+48h], rbx                                                 ; +0x59, 0x100052fa9\nmov     rax, r14                                                       ; +0x5d, 0x100052fad\nadd     rsp, 18h                                                       ; +0x60, 0x100052fb0\npop     rbx                                                            ; +0x64, 0x100052fb4\npop     r14                                                            ; +0x65, 0x100052fb5\npop     r15                                                            ; +0x67, 0x100052fb7\npop     rbp                                                            ; +0x69, 0x100052fb9\nretn                                                                   ; +0x6a, 0x100052fba", "xrefs": [], "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"}