{"type": "func", "start": 4295454400, "end": 4295454500, "name": "GJRewardItem::getRewardCount", "pseudocode": "// \n// GJRewardItem::getRewardCount from 0x100076ec0 to 0x100076f24 (100 bytes)\n// \n// 3 xrefs:\n// > RewardUnlockLayer::playRewardEffect @ 0x10021d115\n// > RewardUnlockLayer::playRewardEffect @ 0x10021d129\n// > RewardUnlockLayer::playRewardEffect @ 0x10021d13d\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\nint __fastcall GJRewardItem::getRewardCount(GJRewardItem *a1, SpecialRewardItem a2)\n{\n  cocos2d::CCArray *m_rewardObjects; // rdi\n  int v4; // r15d\n  unsigned int v5; // r12d\n  __int64 v6; // rax\n\n  m_rewardObjects = a1->m_rewardObjects;\n  v4 = 0;\n  if ( m_rewardObjects && (unsigned int)sub_100720070(m_rewardObjects) )\n  {\n    v5 = 0;\n    v4 = 0;\n    do\n    {\n      v6 = sub_1007200C0(a1->m_rewardObjects, v5);\n      if ( *(_DWORD *)(v6 + 56) == a2 )\n        v4 += *(_DWORD *)(v6 + 68);\n      ++v5;\n    }\n    while ( v5 < (unsigned int)sub_100720070(a1->m_rewardObjects) );\n  }\n  return v4;\n}", "assembly": "; \n; GJRewardItem::getRewardCount from 0x100076ec0 to 0x100076f24 (100 bytes)\n; \n; 3 xrefs:\n; > RewardUnlockLayer::playRewardEffect @ 0x10021d115\n; > RewardUnlockLayer::playRewardEffect @ 0x10021d129\n; > RewardUnlockLayer::playRewardEffect @ 0x10021d13d\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, 0x100076ec0\nmov     rbp, rsp                                                       ; +0x1, 0x100076ec1\npush    r15                                                            ; +0x4, 0x100076ec4\npush    r14                                                            ; +0x6, 0x100076ec6\npush    r12                                                            ; +0x8, 0x100076ec8\npush    rbx                                                            ; +0xa, 0x100076eca\nmov     r14, rdi                                                       ; +0xb, 0x100076ecb\nmov     rdi, [rdi+48h]                                                 ; +0xe, 0x100076ece\nxor     r15d, r15d                                                     ; +0x12, 0x100076ed2\ntest    rdi, rdi                                                       ; +0x15, 0x100076ed5\njz      short loc_100076F18                                            ; +0x18, 0x100076ed8\nmov     ebx, esi                                                       ; +0x1a, 0x100076eda\ncall    sub_100720070                                                  ; +0x1c, 0x100076edc\ntest    eax, eax                                                       ; +0x21, 0x100076ee1\njz      short loc_100076F18                                            ; +0x23, 0x100076ee3\nxor     r12d, r12d                                                     ; +0x25, 0x100076ee5\nxor     r15d, r15d                                                     ; +0x28, 0x100076ee8\njmp     short loc_100076F01                                            ; +0x2b, 0x100076eeb\nalign 10h                                                              ; +0x2d, 0x100076eed\ninc     r12d                                                           ; +0x30, 0x100076ef0\nmov     rdi, [r14+48h]                                                 ; +0x33, 0x100076ef3\ncall    sub_100720070                                                  ; +0x37, 0x100076ef7\ncmp     r12d, eax                                                      ; +0x3c, 0x100076efc\njnb     short loc_100076F18                                            ; +0x3f, 0x100076eff\nmov     rdi, [r14+48h]                                                 ; +0x41, 0x100076f01\nmov     esi, r12d                                                      ; +0x45, 0x100076f05\ncall    sub_1007200C0                                                  ; +0x48, 0x100076f08\ncmp     [rax+38h], ebx                                                 ; +0x4d, 0x100076f0d\njnz     short loc_100076EF0                                            ; +0x50, 0x100076f10\nadd     r15d, [rax+44h]                                                ; +0x52, 0x100076f12\njmp     short loc_100076EF0                                            ; +0x56, 0x100076f16\nmov     eax, r15d                                                      ; +0x58, 0x100076f18\npop     rbx                                                            ; +0x5b, 0x100076f1b\npop     r12                                                            ; +0x5c, 0x100076f1c\npop     r14                                                            ; +0x5e, 0x100076f1e\npop     r15                                                            ; +0x60, 0x100076f20\npop     rbp                                                            ; +0x62, 0x100076f22\nretn                                                                   ; +0x63, 0x100076f23", "xrefs": ["RewardUnlockLayer::playRewardEffect @ 0x10021d115", "RewardUnlockLayer::playRewardEffect @ 0x10021d129", "RewardUnlockLayer::playRewardEffect @ 0x10021d13d"], "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"}