{"type": "func", "start": 4931336, "end": 4931392, "name": "GJDifficultySprite::updateFeatureStateFromLevel", "pseudocode": "// \n// GJDifficultySprite::updateFeatureStateFromLevel from 0x4b3f08 to 0x4b3f40 (56 bytes)\n// \n// 2 xrefs:\n// > LevelCell::loadCustomLevelCell @ 0x33279a\n// > LevelInfoLayer::updateLabelValues @ 0x3b2f80\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\nvoid GJDifficultySprite::updateFeatureStateFromLevel(GJDifficultySprite *a1, GJGameLevel *a2)\n{\n  int m_featured; // r2\n  bool v3; // zf\n  bool v4; // nf\n  int m_isEpic; // r2\n  GJFeatureState v6; // r1\n\n  if ( a2 )\n  {\n    m_featured = a2->m_featured;\n    v3 = m_featured == 0;\n    v4 = m_featured < 0;\n    m_isEpic = a2->m_isEpic;\n    if ( (v4 || v3) && m_isEpic <= 0 )\n    {\n      v6 = 0;\n    }\n    else if ( m_isEpic <= 0 )\n    {\n      v6 = Featured;\n    }\n    else if ( m_isEpic <= 2 )\n    {\n      if ( m_isEpic == 2 )\n        v6 = Legendary;\n      else\n        v6 = Epic;\n    }\n    else\n    {\n      v6 = Mythic;\n    }\n    GJDifficultySprite::updateFeatureState(a1, v6);\n  }\n}", "assembly": "; \n; GJDifficultySprite::updateFeatureStateFromLevel from 0x4b3f08 to 0x4b3f40 (56 bytes)\n; \n; 2 xrefs:\n; > LevelCell::loadCustomLevelCell @ 0x33279a\n; > LevelInfoLayer::updateLabelValues @ 0x3b2f80\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\nMOV             R3, R0                                                 ; +0x0, 0x4b3f08\nCBZ             R1, locret_4B3F3E                                      ; +0x2, 0x4b3f0a\nLDR.W           R2, [R1,#0x220]                                        ; +0x4, 0x4b3f0c\nCMP             R2, #0                                                 ; +0x8, 0x4b3f10\nLDR.W           R2, [R1,#0x224]                                        ; +0xa, 0x4b3f12\nBGT             loc_4B3F1C                                             ; +0xe, 0x4b3f16\nCMP             R2, #0                                                 ; +0x10, 0x4b3f18\nBLE             loc_4B3F38                                             ; +0x12, 0x4b3f1a\nCMP             R2, #0                                                 ; +0x14, 0x4b3f1c\nBLE             loc_4B3F32                                             ; +0x16, 0x4b3f1e\nCMP             R2, #2                                                 ; +0x18, 0x4b3f20\nMOV             R0, R3                                                 ; +0x1a, 0x4b3f22\nBLE             loc_4B3F2A                                             ; +0x1c, 0x4b3f24\nMOVS            R1, #4                                                 ; +0x1e, 0x4b3f26\nB               loc_4B3F3A                                             ; +0x20, 0x4b3f28\nITE EQ                                                                 ; +0x22, 0x4b3f2a\nMOVEQ           R1, #3                                                 ; +0x24, 0x4b3f2c\nMOVNE           R1, #2                                                 ; +0x26, 0x4b3f2e\nB               loc_4B3F3A                                             ; +0x28, 0x4b3f30\nMOV             R0, R3                                                 ; +0x2a, 0x4b3f32\nMOVS            R1, #1                                                 ; +0x2c, 0x4b3f34\nB               loc_4B3F3A                                             ; +0x2e, 0x4b3f36\nMOVS            R1, #0                                                 ; +0x30, 0x4b3f38\nB.W             _ZN18GJDifficultySprite18updateFeatureStateE14GJFeatureState; GJDifficultySprite::updateFeatureState(GJFeatureState) ; +0x32, 0x4b3f3a\nBX              LR                                                     ; +0x36, 0x4b3f3e", "xrefs": ["LevelCell::loadCustomLevelCell @ 0x33279a", "LevelInfoLayer::updateLabelValues @ 0x3b2f80"], "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"}