{"type": "func", "start": 4295195488, "end": 4295195587, "name": "GJRewardItem::createWithObjects", "pseudocode": "// \n// GJRewardItem::createWithObjects from 0x100037b60 to 0x100037bc3 (99 bytes)\n// \n// 1 xrefs:\n// > GameStatsManager::completedDailyLevel @ 0x100039e2b\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:32 +0000\n// \n\n__int64 __fastcall GJRewardItem::createWithObjects(int a1, __int64 a2)\n{\n  __int64 v2; // r14\n  __int64 v3; // rdi\n  _WORD v5[24]; // [rsp+0h] [rbp-30h] BYREF\n\n  v5[0] = 0;\n  v2 = GJRewardItem::create(0, 0, v5);\n  *(_DWORD *)(v2 + 64) = a1;\n  v3 = *(_QWORD *)(v2 + 72);\n  if ( v3 != a2 )\n  {\n    if ( a2 )\n    {\n      cocos2d::CCObject::retain(a2);\n      v3 = *(_QWORD *)(v2 + 72);\n    }\n    if ( v3 )\n      cocos2d::CCObject::release(v3);\n    *(_QWORD *)(v2 + 72) = a2;\n  }\n  return v2;\n}", "assembly": "; \n; GJRewardItem::createWithObjects from 0x100037b60 to 0x100037bc3 (99 bytes)\n; \n; 1 xrefs:\n; > GameStatsManager::completedDailyLevel @ 0x100039e2b\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:32 +0000\n; \npush    rbp                                                            ; +0x0, 0x100037b60\nmov     rbp, rsp                                                       ; +0x1, 0x100037b61\npush    r15                                                            ; +0x4, 0x100037b64\npush    r14                                                            ; +0x6, 0x100037b66\npush    rbx                                                            ; +0x8, 0x100037b68\nsub     rsp, 18h                                                       ; +0x9, 0x100037b69\nmov     rbx, rsi                                                       ; +0xd, 0x100037b6d\nmov     r15d, edi                                                      ; +0x10, 0x100037b70\nmov     [rbp+var_30], 0                                                ; +0x13, 0x100037b73\nlea     rdx, [rbp+var_30]                                              ; +0x19, 0x100037b79\nxor     edi, edi                                                       ; +0x1d, 0x100037b7d\nxor     esi, esi                                                       ; +0x1f, 0x100037b7f\ncall    GJRewardItem__create                                           ; +0x21, 0x100037b81\nmov     r14, rax                                                       ; +0x26, 0x100037b86\nmov     [rax+40h], r15d                                                ; +0x29, 0x100037b89\nmov     rdi, [rax+48h]                                                 ; +0x2d, 0x100037b8d\ncmp     rdi, rbx                                                       ; +0x31, 0x100037b91\njz      short loc_100037BB5                                            ; +0x34, 0x100037b94\ntest    rbx, rbx                                                       ; +0x36, 0x100037b96\njz      short loc_100037BA7                                            ; +0x39, 0x100037b99\nmov     rdi, rbx                                                       ; +0x3b, 0x100037b9b\ncall    cocos2d__CCObject__retain                                      ; +0x3e, 0x100037b9e\nmov     rdi, [r14+48h]                                                 ; +0x43, 0x100037ba3\ntest    rdi, rdi                                                       ; +0x47, 0x100037ba7\njz      short loc_100037BB1                                            ; +0x4a, 0x100037baa\ncall    cocos2d__CCObject__release                                     ; +0x4c, 0x100037bac\nmov     [r14+48h], rbx                                                 ; +0x51, 0x100037bb1\nmov     rax, r14                                                       ; +0x55, 0x100037bb5\nadd     rsp, 18h                                                       ; +0x58, 0x100037bb8\npop     rbx                                                            ; +0x5c, 0x100037bbc\npop     r14                                                            ; +0x5d, 0x100037bbd\npop     r15                                                            ; +0x5f, 0x100037bbf\npop     rbp                                                            ; +0x61, 0x100037bc1\nretn                                                                   ; +0x62, 0x100037bc2", "xrefs": ["GameStatsManager::completedDailyLevel @ 0x100039e2b"], "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"}