{"type": "func", "start": 9282716, "end": 9282816, "name": "GJDifficultySprite::updateFeatureStateFromLevel", "pseudocode": "// \n// GJDifficultySprite::updateFeatureStateFromLevel from 0x8da49c to 0x8da500 (100 bytes)\n// \n// 3 xrefs:\n// > LevelCell::loadCustomLevelCell @ 0x61053c\n// > LevelInfoLayer::updateLabelValues @ 0x6d9c28\n// > <???> @ 0xc4c98\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; // w2\n  int m_isEpic; // w1\n  GJFeatureState v4; // w1\n\n  if ( a2 )\n  {\n    m_featured = a2->m_featured;\n    m_isEpic = a2->m_isEpic;\n    if ( m_featured <= 0 )\n    {\n      if ( m_isEpic > 0 )\n      {\nLABEL_4:\n        if ( m_isEpic > 2 )\n        {\n          v4 = Mythic;\n        }\n        else if ( m_isEpic == 2 )\n        {\n          v4 = Legendary;\n        }\n        else\n        {\n          v4 = Epic;\n        }\n        goto LABEL_8;\n      }\n      v4 = 0;\n    }\n    else\n    {\n      if ( m_isEpic > 0 )\n        goto LABEL_4;\n      v4 = Featured;\n    }\nLABEL_8:\n    GJDifficultySprite::updateFeatureState(a1, v4);\n  }\n}", "assembly": "; \n; GJDifficultySprite::updateFeatureStateFromLevel from 0x8da49c to 0x8da500 (100 bytes)\n; \n; 3 xrefs:\n; > LevelCell::loadCustomLevelCell @ 0x61053c\n; > LevelInfoLayer::updateLabelValues @ 0x6d9c28\n; > <???> @ 0xc4c98\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             X3, X0                                                 ; +0x0, 0x8da49c\nCBZ             X1, locret_8DA4F4                                      ; +0x4, 0x8da4a0\nLDR             W2, [X1,#0x284]                                        ; +0x8, 0x8da4a4\nLDR             W1, [X1,#0x288]                                        ; +0xc, 0x8da4a8\nCMP             W2, WZR                                                ; +0x10, 0x8da4ac\nB.LE            loc_8DA4D4                                             ; +0x14, 0x8da4b0\nCMP             W1, WZR                                                ; +0x18, 0x8da4b4\nB.LE            loc_8DA4F8                                             ; +0x1c, 0x8da4b8\nCMP             W1, #2                                                 ; +0x20, 0x8da4bc\nMOV             X0, X3                                                 ; +0x24, 0x8da4c0\nB.GT            loc_8DA4E4                                             ; +0x28, 0x8da4c4\nB.NE            loc_8DA4EC                                             ; +0x2c, 0x8da4c8\nMOV             W1, #3                                                 ; +0x30, 0x8da4cc\nB               _ZN18GJDifficultySprite18updateFeatureStateE14GJFeatureState; GJDifficultySprite::updateFeatureState(GJFeatureState) ; +0x34, 0x8da4d0\nCMP             W1, WZR                                                ; +0x38, 0x8da4d4\nB.GT            loc_8DA4BC                                             ; +0x3c, 0x8da4d8\nMOV             W1, #0                                                 ; +0x40, 0x8da4dc\nB               _ZN18GJDifficultySprite18updateFeatureStateE14GJFeatureState; GJDifficultySprite::updateFeatureState(GJFeatureState) ; +0x44, 0x8da4e0\nMOV             W1, #4                                                 ; +0x48, 0x8da4e4\nB               _ZN18GJDifficultySprite18updateFeatureStateE14GJFeatureState; GJDifficultySprite::updateFeatureState(GJFeatureState) ; +0x4c, 0x8da4e8\nMOV             W1, #2                                                 ; +0x50, 0x8da4ec\nB               _ZN18GJDifficultySprite18updateFeatureStateE14GJFeatureState; GJDifficultySprite::updateFeatureState(GJFeatureState) ; +0x54, 0x8da4f0\nRET                                                                    ; +0x58, 0x8da4f4\nMOV             W1, #1                                                 ; +0x5c, 0x8da4f8\nB               _ZN18GJDifficultySprite18updateFeatureStateE14GJFeatureState; GJDifficultySprite::updateFeatureState(GJFeatureState) ; +0x60, 0x8da4fc", "xrefs": ["LevelCell::loadCustomLevelCell @ 0x61053c", "LevelInfoLayer::updateLabelValues @ 0x6d9c28", "<???> @ 0xc4c98"], "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"}