{"type": "func", "start": 4297813472, "end": 4297813545, "name": "GJDifficultySprite::updateFeatureStateFromLevel", "pseudocode": "// \n// GJDifficultySprite::updateFeatureStateFromLevel from 0x1002b6de0 to 0x1002b6e29 (73 bytes)\n// \n// 2 xrefs:\n// > LevelCell::loadCustomLevelCell @ 0x1002506fc\n// > LevelInfoLayer::updateLabelValues @ 0x1002c324b\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  GJFeatureState v3; // esi\n  bool v4; // cl\n  int m_isEpic; // eax\n\n  if ( a2 )\n  {\n    v3 = 0;\n    v4 = a2->m_featured > 0;\n    m_isEpic = a2->m_isEpic;\n    if ( m_isEpic <= 0 )\n    {\n      LOBYTE(v3) = v4;\n    }\n    else\n    {\n      v3 = Mythic;\n      if ( (unsigned int)m_isEpic <= 2 )\n        v3 = (m_isEpic == 1) ^ 3;\n    }\n    GJDifficultySprite::updateFeatureState(a1, v3);\n  }\n}", "assembly": "; \n; GJDifficultySprite::updateFeatureStateFromLevel from 0x1002b6de0 to 0x1002b6e29 (73 bytes)\n; \n; 2 xrefs:\n; > LevelCell::loadCustomLevelCell @ 0x1002506fc\n; > LevelInfoLayer::updateLabelValues @ 0x1002c324b\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\npush    rbp                                                            ; +0x0, 0x1002b6de0\nmov     rbp, rsp                                                       ; +0x1, 0x1002b6de1\ntest    rsi, rsi                                                       ; +0x4, 0x1002b6de4\njz      short loc_1002B6E1E                                            ; +0x7, 0x1002b6de7\nmov     rax, rsi                                                       ; +0x9, 0x1002b6de9\nxor     esi, esi                                                       ; +0xc, 0x1002b6dec\ncmp     dword ptr [rax+314h], 0                                        ; +0xe, 0x1002b6dee\nsetnle  cl                                                             ; +0x15, 0x1002b6df5\nmov     eax, [rax+318h]                                                ; +0x18, 0x1002b6df8\ntest    eax, eax                                                       ; +0x1e, 0x1002b6dfe\njle     short loc_1002B6E20                                            ; +0x20, 0x1002b6e00\nmov     esi, 4                                                         ; +0x22, 0x1002b6e02\ncmp     eax, 2                                                         ; +0x27, 0x1002b6e07\nja      short loc_1002B6E18                                            ; +0x2a, 0x1002b6e0a\nxor     esi, esi                                                       ; +0x2c, 0x1002b6e0c\ncmp     eax, 1                                                         ; +0x2e, 0x1002b6e0e\nsetz    sil                                                            ; +0x31, 0x1002b6e11\nxor     esi, 3                                                         ; +0x35, 0x1002b6e15\npop     rbp                                                            ; +0x38, 0x1002b6e18\njmp     GJDifficultySprite__updateFeatureState                         ; +0x39, 0x1002b6e19\npop     rbp                                                            ; +0x3e, 0x1002b6e1e\nretn                                                                   ; +0x3f, 0x1002b6e1f\nmov     sil, cl                                                        ; +0x40, 0x1002b6e20\npop     rbp                                                            ; +0x43, 0x1002b6e23\njmp     GJDifficultySprite__updateFeatureState                         ; +0x44, 0x1002b6e24", "xrefs": ["LevelCell::loadCustomLevelCell @ 0x1002506fc", "LevelInfoLayer::updateLabelValues @ 0x1002c324b"], "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"}