{"type": "func", "start": 4298958516, "end": 4298958608, "name": "GameStatsManager::getCollectedCoinsForLevel", "pseudocode": "// \n// GameStatsManager::getCollectedCoinsForLevel from 0x1003ce6b4 to 0x1003ce710 (92 bytes)\n// \n// 7 xrefs:\n// > sub_1003CE49C @ 0x1003ce4f0\n// > sub_1003CE49C @ 0x1003ce53c\n// > sub_1003CE49C @ 0x1003ce58c\n// > sub_1003CE49C @ 0x1003ce5cc\n// > sub_1003CE49C @ 0x1003ce604\n// > sub_1003CE49C @ 0x1003ce638\n// > sub_1003CE49C @ 0x1003ce66c\n// \n// This function is hookable on this platform (idp: arm, 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 11:04:10 +0000\n// \n\n__int64 __fastcall GameStatsManager::getCollectedCoinsForLevel(__int64 a1, __int64 a2)\n{\n  __int64 v4; // x20\n  __int64 v5; // x22\n  __int64 CoinKey_1; // x0\n\n  LODWORD(v4) = 0;\n  v5 = 1;\n  do\n  {\n    CoinKey_1 = GJGameLevel::getCoinKey_1(a2, v5);\n    v4 = (unsigned int)v4 + (unsigned int)GameStatsManager::hasSecretCoin(a1, CoinKey_1);\n    v5 = (unsigned int)(v5 + 1);\n  }\n  while ( (_DWORD)v5 != 4 );\n  return v4;\n}", "assembly": "; \n; GameStatsManager::getCollectedCoinsForLevel from 0x1003ce6b4 to 0x1003ce710 (92 bytes)\n; \n; 7 xrefs:\n; > sub_1003CE49C @ 0x1003ce4f0\n; > sub_1003CE49C @ 0x1003ce53c\n; > sub_1003CE49C @ 0x1003ce58c\n; > sub_1003CE49C @ 0x1003ce5cc\n; > sub_1003CE49C @ 0x1003ce604\n; > sub_1003CE49C @ 0x1003ce638\n; > sub_1003CE49C @ 0x1003ce66c\n; \n; This function is hookable on this platform (idp: arm, 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 11:04:10 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1003ce6b4\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003ce6b8\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003ce6bc\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003ce6c0\nMOV             X19, X1                                                ; +0x10, 0x1003ce6c4\nMOV             X21, X0                                                ; +0x14, 0x1003ce6c8\nMOV             W20, #0                                                ; +0x18, 0x1003ce6cc\nMOV             W22, #1                                                ; +0x1c, 0x1003ce6d0\nMOV             X0, X19                                                ; +0x20, 0x1003ce6d4\nMOV             X1, X22                                                ; +0x24, 0x1003ce6d8\nBL              GJGameLevel__getCoinKey_1                              ; +0x28, 0x1003ce6dc\nMOV             X1, X0                                                 ; +0x2c, 0x1003ce6e0\nMOV             X0, X21                                                ; +0x30, 0x1003ce6e4\nBL              GameStatsManager__hasSecretCoin                        ; +0x34, 0x1003ce6e8\nADD             W20, W20, W0                                           ; +0x38, 0x1003ce6ec\nADD             W22, W22, #1                                           ; +0x3c, 0x1003ce6f0\nCMP             W22, #4                                                ; +0x40, 0x1003ce6f4\nB.NE            loc_1003CE6D4                                          ; +0x44, 0x1003ce6f8\nMOV             X0, X20                                                ; +0x48, 0x1003ce6fc\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x4c, 0x1003ce700\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x50, 0x1003ce704\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x54, 0x1003ce708\nRET                                                                    ; +0x58, 0x1003ce70c", "xrefs": ["sub_1003CE49C @ 0x1003ce4f0", "sub_1003CE49C @ 0x1003ce53c", "sub_1003CE49C @ 0x1003ce58c", "sub_1003CE49C @ 0x1003ce5cc", "sub_1003CE49C @ 0x1003ce604", "sub_1003CE49C @ 0x1003ce638", "sub_1003CE49C @ 0x1003ce66c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}