{"type": "func", "start": 4295216912, "end": 4295217012, "name": "GJRewardItem::getRewardCount", "pseudocode": "// \n// GJRewardItem::getRewardCount from 0x10003cf10 to 0x10003cf74 (100 bytes)\n// \n// 3 xrefs:\n// > RewardUnlockLayer::playRewardEffect @ 0x100200825\n// > RewardUnlockLayer::playRewardEffect @ 0x100200839\n// > RewardUnlockLayer::playRewardEffect @ 0x10020084d\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:34 +0000\n// \n\n__int64 __fastcall GJRewardItem::getRewardCount(__int64 a1, int a2)\n{\n  __int64 v3; // rdi\n  unsigned int v4; // r15d\n  unsigned int v5; // r12d\n  __int64 v6; // rax\n\n  v3 = *(_QWORD *)(a1 + 72);\n  v4 = 0;\n  if ( v3 && (unsigned int)sub_1007FEF90(v3) )\n  {\n    v5 = 0;\n    v4 = 0;\n    do\n    {\n      v6 = sub_1007FEFE0(*(_QWORD *)(a1 + 72), v5);\n      if ( *(_DWORD *)(v6 + 56) == a2 )\n        v4 += *(_DWORD *)(v6 + 68);\n      ++v5;\n    }\n    while ( v5 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 72)) );\n  }\n  return v4;\n}", "assembly": "; \n; GJRewardItem::getRewardCount from 0x10003cf10 to 0x10003cf74 (100 bytes)\n; \n; 3 xrefs:\n; > RewardUnlockLayer::playRewardEffect @ 0x100200825\n; > RewardUnlockLayer::playRewardEffect @ 0x100200839\n; > RewardUnlockLayer::playRewardEffect @ 0x10020084d\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:34 +0000\n; \npush    rbp                                                            ; +0x0, 0x10003cf10\nmov     rbp, rsp                                                       ; +0x1, 0x10003cf11\npush    r15                                                            ; +0x4, 0x10003cf14\npush    r14                                                            ; +0x6, 0x10003cf16\npush    r12                                                            ; +0x8, 0x10003cf18\npush    rbx                                                            ; +0xa, 0x10003cf1a\nmov     r14, rdi                                                       ; +0xb, 0x10003cf1b\nmov     rdi, [rdi+48h]                                                 ; +0xe, 0x10003cf1e\nxor     r15d, r15d                                                     ; +0x12, 0x10003cf22\ntest    rdi, rdi                                                       ; +0x15, 0x10003cf25\njz      short loc_10003CF68                                            ; +0x18, 0x10003cf28\nmov     ebx, esi                                                       ; +0x1a, 0x10003cf2a\ncall    sub_1007FEF90                                                  ; +0x1c, 0x10003cf2c\ntest    eax, eax                                                       ; +0x21, 0x10003cf31\njz      short loc_10003CF68                                            ; +0x23, 0x10003cf33\nxor     r12d, r12d                                                     ; +0x25, 0x10003cf35\nxor     r15d, r15d                                                     ; +0x28, 0x10003cf38\njmp     short loc_10003CF51                                            ; +0x2b, 0x10003cf3b\nalign 20h                                                              ; +0x2d, 0x10003cf3d\ninc     r12d                                                           ; +0x30, 0x10003cf40\nmov     rdi, [r14+48h]                                                 ; +0x33, 0x10003cf43\ncall    sub_1007FEF90                                                  ; +0x37, 0x10003cf47\ncmp     r12d, eax                                                      ; +0x3c, 0x10003cf4c\njnb     short loc_10003CF68                                            ; +0x3f, 0x10003cf4f\nmov     rdi, [r14+48h]                                                 ; +0x41, 0x10003cf51\nmov     esi, r12d                                                      ; +0x45, 0x10003cf55\ncall    sub_1007FEFE0                                                  ; +0x48, 0x10003cf58\ncmp     [rax+38h], ebx                                                 ; +0x4d, 0x10003cf5d\njnz     short loc_10003CF40                                            ; +0x50, 0x10003cf60\nadd     r15d, [rax+44h]                                                ; +0x52, 0x10003cf62\njmp     short loc_10003CF40                                            ; +0x56, 0x10003cf66\nmov     eax, r15d                                                      ; +0x58, 0x10003cf68\npop     rbx                                                            ; +0x5b, 0x10003cf6b\npop     r12                                                            ; +0x5c, 0x10003cf6c\npop     r14                                                            ; +0x5e, 0x10003cf6e\npop     r15                                                            ; +0x60, 0x10003cf70\npop     rbp                                                            ; +0x62, 0x10003cf72\nretn                                                                   ; +0x63, 0x10003cf73", "xrefs": ["RewardUnlockLayer::playRewardEffect @ 0x100200825", "RewardUnlockLayer::playRewardEffect @ 0x100200839", "RewardUnlockLayer::playRewardEffect @ 0x10020084d"], "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"}