{"type": "func", "start": 4303765872, "end": 4303765971, "name": "AchievementManager::areAchievementsEarned", "pseudocode": "// \n// AchievementManager::areAchievementsEarned from 0x100864170 to 0x1008641d3 (99 bytes)\n// \n// 0 xrefs:\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:36:42 +0000\n// \n\nbool __fastcall AchievementManager::areAchievementsEarned(__int64 a1, __int64 a2)\n{\n  unsigned int v2; // r15d\n  __int64 v3; // rax\n  __int64 CString; // rax\n  int v5; // eax\n  bool v6; // cc\n  bool result; // al\n\n  if ( !(unsigned int)sub_1007FEF90(a2) )\n    return 1;\n  v2 = 0;\n  while ( 1 )\n  {\n    v3 = sub_1007FEFE0(a2, v2);\n    CString = cocos2d::CCString::getCString(v3);\n    v5 = AchievementManager::percentForAchievement(a1, CString);\n    v6 = v5 < 100;\n    result = v5 >= 100;\n    if ( v6 )\n      break;\n    if ( ++v2 >= (unsigned int)sub_1007FEF90(a2) )\n      return 1;\n  }\n  return result;\n}", "assembly": "; \n; AchievementManager::areAchievementsEarned from 0x100864170 to 0x1008641d3 (99 bytes)\n; \n; 0 xrefs:\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:36:42 +0000\n; \npush    rbp                                                            ; +0x0, 0x100864170\nmov     rbp, rsp                                                       ; +0x1, 0x100864171\npush    r15                                                            ; +0x4, 0x100864174\npush    r14                                                            ; +0x6, 0x100864176\npush    rbx                                                            ; +0x8, 0x100864178\npush    rax                                                            ; +0x9, 0x100864179\nmov     rbx, rsi                                                       ; +0xa, 0x10086417a\nmov     r14, rdi                                                       ; +0xd, 0x10086417d\nmov     rdi, rsi                                                       ; +0x10, 0x100864180\ncall    sub_1007FEF90                                                  ; +0x13, 0x100864183\ntest    eax, eax                                                       ; +0x18, 0x100864188\njz      short loc_1008641C6                                            ; +0x1a, 0x10086418a\nxor     r15d, r15d                                                     ; +0x1c, 0x10086418c\nnop                                                                    ; +0x1f, 0x10086418f\nmov     rdi, rbx                                                       ; +0x20, 0x100864190\nmov     esi, r15d                                                      ; +0x23, 0x100864193\ncall    sub_1007FEFE0                                                  ; +0x26, 0x100864196\nmov     rdi, rax                                                       ; +0x2b, 0x10086419b\ncall    cocos2d__CCString__getCString                                  ; +0x2e, 0x10086419e\nmov     rdi, r14                                                       ; +0x33, 0x1008641a3\nmov     rsi, rax                                                       ; +0x36, 0x1008641a6\ncall    AchievementManager__percentForAchievement                      ; +0x39, 0x1008641a9\ncmp     eax, 64h ; 'd'                                                 ; +0x3e, 0x1008641ae\nsetnl   al                                                             ; +0x41, 0x1008641b1\njl      short loc_1008641C8                                            ; +0x44, 0x1008641b4\ninc     r15d                                                           ; +0x46, 0x1008641b6\nmov     rdi, rbx                                                       ; +0x49, 0x1008641b9\ncall    sub_1007FEF90                                                  ; +0x4c, 0x1008641bc\ncmp     r15d, eax                                                      ; +0x51, 0x1008641c1\njb      short loc_100864190                                            ; +0x54, 0x1008641c4\nmov     al, 1                                                          ; +0x56, 0x1008641c6\nadd     rsp, 8                                                         ; +0x58, 0x1008641c8\npop     rbx                                                            ; +0x5c, 0x1008641cc\npop     r14                                                            ; +0x5d, 0x1008641cd\npop     r15                                                            ; +0x5f, 0x1008641cf\npop     rbp                                                            ; +0x61, 0x1008641d1\nretn                                                                   ; +0x62, 0x1008641d2", "xrefs": [], "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"}