{"type": "func", "start": 4295686024, "end": 4295686116, "name": "GJGameLevel::areCoinsVerified", "pseudocode": "// \n// GJGameLevel::areCoinsVerified from 0x1000af788 to 0x1000af7e4 (92 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::levelComplete @ 0x100119c6c\n// > EndLevelLayer::customSetup @ 0x1002f62e8\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\nbool __fastcall GJGameLevel::areCoinsVerified(GJGameLevel *a1)\n{\n  int m_coins; // w8\n  unsigned int v2; // w9\n\n  m_coins = a1->m_coins;\n  if ( m_coins < 1 )\n    return 1;\n  v2 = a1->m_thirdCoinVerified.random - a1->m_thirdCoinVerified.seed == 1;\n  if ( a1->m_secondCoinVerified.random - a1->m_secondCoinVerified.seed == 1 )\n    ++v2;\n  if ( a1->m_firstCoinVerified.random - a1->m_firstCoinVerified.seed == 1 )\n    ++v2;\n  return m_coins <= v2;\n}", "assembly": "; \n; GJGameLevel::areCoinsVerified from 0x1000af788 to 0x1000af7e4 (92 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::levelComplete @ 0x100119c6c\n; > EndLevelLayer::customSetup @ 0x1002f62e8\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\nLDR             W8, [X0,#0x350]                                        ; +0x0, 0x1000af788\nCMP             W8, #1                                                 ; +0x4, 0x1000af78c\nB.LT            loc_1000AF7DC                                          ; +0x8, 0x1000af790\nLDR             W9, [X0,#0x394]                                        ; +0xc, 0x1000af794\nLDR             W10, [X0,#0x398]                                       ; +0x10, 0x1000af798\nSUB             W9, W9, W10                                            ; +0x14, 0x1000af79c\nCMP             W9, #1                                                 ; +0x18, 0x1000af7a0\nCSET            W9, EQ                                                 ; +0x1c, 0x1000af7a4\nLDR             W10, [X0,#0x388]                                       ; +0x20, 0x1000af7a8\nLDR             W11, [X0,#0x38C]                                       ; +0x24, 0x1000af7ac\nSUB             W10, W10, W11                                          ; +0x28, 0x1000af7b0\nLDR             W11, [X0,#0x37C]                                       ; +0x2c, 0x1000af7b4\nLDR             W12, [X0,#0x380]                                       ; +0x30, 0x1000af7b8\nSUB             W11, W11, W12                                          ; +0x34, 0x1000af7bc\nCMP             W10, #1                                                ; +0x38, 0x1000af7c0\nCINC            W9, W9, EQ                                             ; +0x3c, 0x1000af7c4\nCMP             W11, #1                                                ; +0x40, 0x1000af7c8\nCINC            W9, W9, EQ                                             ; +0x44, 0x1000af7cc\nCMP             W8, W9                                                 ; +0x48, 0x1000af7d0\nCSET            W0, LS                                                 ; +0x4c, 0x1000af7d4\nRET                                                                    ; +0x50, 0x1000af7d8\nMOV             W0, #1                                                 ; +0x54, 0x1000af7dc\nRET                                                                    ; +0x58, 0x1000af7e0", "xrefs": ["PlayLayer::levelComplete @ 0x100119c6c", "EndLevelLayer::customSetup @ 0x1002f62e8"], "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"}