{"type": "func", "start": 3970508, "end": 3970582, "name": "GJGameLevel::areCoinsVerified", "pseudocode": "// \n// GJGameLevel::areCoinsVerified from 0x3c95cc to 0x3c9616 (74 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::levelComplete @ 0x313538\n// > EndLevelLayer::customSetup @ 0x429778\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 GJGameLevel::areCoinsVerified(GJGameLevel *a1)\n{\n  int seed; // r1\n  int v2; // r2\n  int random; // r3\n  int m_coins; // r0\n  int v5; // r3\n\n  seed = a1->m_thirdCoinVerified.seed;\n  if ( a1->m_firstCoinVerified.random - a1->m_firstCoinVerified.seed == 1 )\n    v2 = a1->m_secondCoinVerified.random\n       - a1->m_secondCoinVerified.seed\n       + (a1->m_secondCoinVerified.random - a1->m_secondCoinVerified.seed == 1)\n       + a1->m_secondCoinVerified.seed\n       - a1->m_secondCoinVerified.random\n       + 1;\n  else\n    v2 = a1->m_secondCoinVerified.random\n       - a1->m_secondCoinVerified.seed\n       + (a1->m_secondCoinVerified.random - a1->m_secondCoinVerified.seed == 1)\n       + a1->m_secondCoinVerified.seed\n       - a1->m_secondCoinVerified.random;\n  random = a1->m_thirdCoinVerified.random;\n  m_coins = a1->m_coins;\n  if ( random - seed == 1 )\n    v5 = v2 + 1;\n  else\n    v5 = v2;\n  return m_coins <= 0 || m_coins <= v5;\n}", "assembly": "; \n; GJGameLevel::areCoinsVerified from 0x3c95cc to 0x3c9616 (74 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::levelComplete @ 0x313538\n; > EndLevelLayer::customSetup @ 0x429778\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.W           R3, [R0,#0x288]                                        ; +0x0, 0x3c95cc\nLDR.W           R2, [R0,#0x28C]                                        ; +0x4, 0x3c95d0\nLDR.W           R1, [R0,#0x298]                                        ; +0x8, 0x3c95d4\nSUBS            R2, R3, R2                                             ; +0xc, 0x3c95d8\nLDR.W           R3, [R0,#0x294]                                        ; +0xe, 0x3c95da\nSUBS            R3, R3, R1                                             ; +0x12, 0x3c95de\nSUBS            R1, R3, #1                                             ; +0x14, 0x3c95e0\nNEGS            R3, R1                                                 ; +0x16, 0x3c95e2\nADCS            R3, R1                                                 ; +0x18, 0x3c95e4\nLDR.W           R1, [R0,#0x2A4]                                        ; +0x1a, 0x3c95e6\nCMP             R2, #1                                                 ; +0x1e, 0x3c95ea\nITE NE                                                                 ; +0x20, 0x3c95ec\nMOVNE           R2, R3                                                 ; +0x22, 0x3c95ee\nADDEQ           R2, R3, #1                                             ; +0x24, 0x3c95f0\nLDR.W           R3, [R0,#0x2A0]                                        ; +0x26, 0x3c95f2\nLDR.W           R0, [R0,#0x25C]                                        ; +0x2a, 0x3c95f6\nSUBS            R3, R3, R1                                             ; +0x2e, 0x3c95fa\nCMP             R3, #1                                                 ; +0x30, 0x3c95fc\nITE NE                                                                 ; +0x32, 0x3c95fe\nMOVNE           R3, R2                                                 ; +0x34, 0x3c9600\nADDEQ           R3, R2, #1                                             ; +0x36, 0x3c9602\nCMP             R0, #0                                                 ; +0x38, 0x3c9604\nBLE             loc_3C9612                                             ; +0x3a, 0x3c9606\nCMP             R0, R3                                                 ; +0x3c, 0x3c9608\nITE GT                                                                 ; +0x3e, 0x3c960a\nMOVGT           R0, #0                                                 ; +0x40, 0x3c960c\nMOVLE           R0, #1                                                 ; +0x42, 0x3c960e\nBX              LR                                                     ; +0x44, 0x3c9610\nMOVS            R0, #1                                                 ; +0x46, 0x3c9612\nBX              LR                                                     ; +0x48, 0x3c9614", "xrefs": ["PlayLayer::levelComplete @ 0x313538", "EndLevelLayer::customSetup @ 0x429778"], "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"}