{"type": "func", "start": 4295541984, "end": 4295542091, "name": "GJRewardItem::createWithObject", "pseudocode": "// \n// GJRewardItem::createWithObject from 0x10008c4e0 to 0x10008c54b (107 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\nGJRewardItem *__fastcall GJRewardItem::createWithObject(GJRewardType a1, GJRewardObject *a2)\n{\n  double v2; // xmm0_8\n  cocos2d::CCObject *v3; // rbx\n  cocos2d::CCObject *v4; // r14\n  cocos2d::CCObject *v5; // rdi\n  __int128 v7[3]; // [rsp+0h] [rbp-30h] BYREF\n\n  v3 = (cocos2d::CCObject *)sub_10071FA80(a2);\n  LOWORD(v7[0]) = 0;\n  v4 = GJRewardItem::create(0, 0, v7, v2);\n  v4[1].m_uID = a1;\n  v5 = *(cocos2d::CCObject **)&v4[1].m_nTag;\n  if ( v5 != v3 )\n  {\n    if ( v3 )\n    {\n      cocos2d::CCObject::retain(v3);\n      v5 = *(cocos2d::CCObject **)&v4[1].m_nTag;\n    }\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    *(_QWORD *)&v4[1].m_nTag = v3;\n  }\n  return (GJRewardItem *)v4;\n}", "assembly": "; \n; GJRewardItem::createWithObject from 0x10008c4e0 to 0x10008c54b (107 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, 0x10008c4e0\nmov     rbp, rsp                                                       ; +0x1, 0x10008c4e1\npush    r15                                                            ; +0x4, 0x10008c4e4\npush    r14                                                            ; +0x6, 0x10008c4e6\npush    rbx                                                            ; +0x8, 0x10008c4e8\nsub     rsp, 18h                                                       ; +0x9, 0x10008c4e9\nmov     r15d, edi                                                      ; +0xd, 0x10008c4ed\nmov     rdi, rsi                                                       ; +0x10, 0x10008c4f0\ncall    sub_10071FA80                                                  ; +0x13, 0x10008c4f3\nmov     rbx, rax                                                       ; +0x18, 0x10008c4f8\nmov     word ptr [rbp+var_30], 0                                       ; +0x1b, 0x10008c4fb\nlea     rdx, [rbp+var_30]                                              ; +0x21, 0x10008c501\nxor     edi, edi                                                       ; +0x25, 0x10008c505\nxor     esi, esi                                                       ; +0x27, 0x10008c507\ncall    GJRewardItem__create                                           ; +0x29, 0x10008c509\nmov     r14, rax                                                       ; +0x2e, 0x10008c50e\nmov     [rax+40h], r15d                                                ; +0x31, 0x10008c511\nmov     rdi, [rax+48h]                                                 ; +0x35, 0x10008c515\ncmp     rdi, rbx                                                       ; +0x39, 0x10008c519\njz      short loc_10008C53D                                            ; +0x3c, 0x10008c51c\ntest    rbx, rbx                                                       ; +0x3e, 0x10008c51e\njz      short loc_10008C52F                                            ; +0x41, 0x10008c521\nmov     rdi, rbx                                                       ; +0x43, 0x10008c523\ncall    cocos2d__CCObject__retain                                      ; +0x46, 0x10008c526\nmov     rdi, [r14+48h]                                                 ; +0x4b, 0x10008c52b\ntest    rdi, rdi                                                       ; +0x4f, 0x10008c52f\njz      short loc_10008C539                                            ; +0x52, 0x10008c532\ncall    cocos2d__CCObject__release                                     ; +0x54, 0x10008c534\nmov     [r14+48h], rbx                                                 ; +0x59, 0x10008c539\nmov     rax, r14                                                       ; +0x5d, 0x10008c53d\nadd     rsp, 18h                                                       ; +0x60, 0x10008c540\npop     rbx                                                            ; +0x64, 0x10008c544\npop     r14                                                            ; +0x65, 0x10008c545\npop     r15                                                            ; +0x67, 0x10008c547\npop     rbp                                                            ; +0x69, 0x10008c549\nretn                                                                   ; +0x6a, 0x10008c54a", "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"}