{"type": "func", "start": 4295434368, "end": 4295434467, "name": "GJRewardItem::createWithObjects", "pseudocode": "// \n// GJRewardItem::createWithObjects from 0x100072080 to 0x1000720e3 (99 bytes)\n// \n// 1 xrefs:\n// > GameStatsManager::completedDailyLevel @ 0x10007435d\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::createWithObjects(GJRewardType a1, cocos2d::CCArray *a2)\n{\n  __int64 v2; // r14\n  cocos2d::CCArray *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 = *(cocos2d::CCArray **)(v2 + 72);\n  if ( v3 != a2 )\n  {\n    if ( a2 )\n    {\n      cocos2d::CCObject::retain(a2);\n      v3 = *(cocos2d::CCArray **)(v2 + 72);\n    }\n    if ( v3 )\n      cocos2d::CCObject::release(v3);\n    *(_QWORD *)(v2 + 72) = a2;\n  }\n  return (GJRewardItem *)v2;\n}", "assembly": "; \n; GJRewardItem::createWithObjects from 0x100072080 to 0x1000720e3 (99 bytes)\n; \n; 1 xrefs:\n; > GameStatsManager::completedDailyLevel @ 0x10007435d\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, 0x100072080\nmov     rbp, rsp                                                       ; +0x1, 0x100072081\npush    r15                                                            ; +0x4, 0x100072084\npush    r14                                                            ; +0x6, 0x100072086\npush    rbx                                                            ; +0x8, 0x100072088\nsub     rsp, 18h                                                       ; +0x9, 0x100072089\nmov     rbx, rsi                                                       ; +0xd, 0x10007208d\nmov     r15d, edi                                                      ; +0x10, 0x100072090\nmov     [rbp+var_30], 0                                                ; +0x13, 0x100072093\nlea     rdx, [rbp+var_30]                                              ; +0x19, 0x100072099\nxor     edi, edi                                                       ; +0x1d, 0x10007209d\nxor     esi, esi                                                       ; +0x1f, 0x10007209f\ncall    GJRewardItem__create                                           ; +0x21, 0x1000720a1\nmov     r14, rax                                                       ; +0x26, 0x1000720a6\nmov     [rax+40h], r15d                                                ; +0x29, 0x1000720a9\nmov     rdi, [rax+48h]                                                 ; +0x2d, 0x1000720ad\ncmp     rdi, rbx                                                       ; +0x31, 0x1000720b1\njz      short loc_1000720D5                                            ; +0x34, 0x1000720b4\ntest    rbx, rbx                                                       ; +0x36, 0x1000720b6\njz      short loc_1000720C7                                            ; +0x39, 0x1000720b9\nmov     rdi, rbx                                                       ; +0x3b, 0x1000720bb\ncall    cocos2d__CCObject__retain                                      ; +0x3e, 0x1000720be\nmov     rdi, [r14+48h]                                                 ; +0x43, 0x1000720c3\ntest    rdi, rdi                                                       ; +0x47, 0x1000720c7\njz      short loc_1000720D1                                            ; +0x4a, 0x1000720ca\ncall    cocos2d__CCObject__release                                     ; +0x4c, 0x1000720cc\nmov     [r14+48h], rbx                                                 ; +0x51, 0x1000720d1\nmov     rax, r14                                                       ; +0x55, 0x1000720d5\nadd     rsp, 18h                                                       ; +0x58, 0x1000720d8\npop     rbx                                                            ; +0x5c, 0x1000720dc\npop     r14                                                            ; +0x5d, 0x1000720dd\npop     r15                                                            ; +0x5f, 0x1000720df\npop     rbp                                                            ; +0x61, 0x1000720e1\nretn                                                                   ; +0x62, 0x1000720e2", "xrefs": ["GameStatsManager::completedDailyLevel @ 0x10007435d"], "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"}