{"type": "func", "start": 4298004988, "end": 4298005048, "name": "GJDifficultySprite::updateFeatureStateFromLevel", "pseudocode": "// \n// GJDifficultySprite::updateFeatureStateFromLevel from 0x1002e59fc to 0x1002e5a38 (60 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::updateLabelValues @ 0x100029928\n// > LevelCell::loadCustomLevelCell @ 0x10010d9bc\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 __fastcall GJDifficultySprite::updateFeatureStateFromLevel(GJDifficultySprite *a1, GJGameLevel *a2)\n{\n  int m_isEpic; // w9\n  int v3; // w11\n  int v4; // w10\n  GJFeatureState v5; // w1\n\n  if ( a2 )\n  {\n    m_isEpic = a2->m_isEpic;\n    if ( m_isEpic == 1 )\n      v3 = 2;\n    else\n      v3 = 3;\n    if ( (unsigned int)m_isEpic <= 2 )\n      v4 = v3;\n    else\n      v4 = 4;\n    if ( m_isEpic >= 1 )\n      v5 = v4;\n    else\n      v5 = a2->m_featured > 0;\n    GJDifficultySprite::updateFeatureState(a1, v5);\n  }\n}", "assembly": "; \n; GJDifficultySprite::updateFeatureStateFromLevel from 0x1002e59fc to 0x1002e5a38 (60 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::updateLabelValues @ 0x100029928\n; > LevelCell::loadCustomLevelCell @ 0x10010d9bc\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\nCBZ             X1, locret_1002E5A34                                   ; +0x0, 0x1002e59fc\nLDR             W8, [X1,#0x314]                                        ; +0x4, 0x1002e5a00\nCMP             W8, #0                                                 ; +0x8, 0x1002e5a04\nCSET            W8, GT                                                 ; +0xc, 0x1002e5a08\nLDR             W9, [X1,#0x318]                                        ; +0x10, 0x1002e5a0c\nMOV             W10, #4                                                ; +0x14, 0x1002e5a10\nCMP             W9, #1                                                 ; +0x18, 0x1002e5a14\nMOV             W11, #2                                                ; +0x1c, 0x1002e5a18\nCINC            W11, W11, NE                                           ; +0x20, 0x1002e5a1c\nCMP             W9, #2                                                 ; +0x24, 0x1002e5a20\nCSEL            W10, W10, W11, HI                                      ; +0x28, 0x1002e5a24\nCMP             W9, #1                                                 ; +0x2c, 0x1002e5a28\nCSEL            W1, W8, W10, LT                                        ; +0x30, 0x1002e5a2c\nB               GJDifficultySprite__updateFeatureState                 ; +0x34, 0x1002e5a30\nRET                                                                    ; +0x38, 0x1002e5a34", "xrefs": ["LevelInfoLayer::updateLabelValues @ 0x100029928", "LevelCell::loadCustomLevelCell @ 0x10010d9bc"], "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"}