{"type": "func", "start": 5371812128, "end": 5371812209, "name": "GJRateLevelLayer::onFeature", "pseudocode": "// \n// GJRateLevelLayer::onFeature from 0x1402f5920 to 0x1402f5971 (81 bytes)\n// \n// 2 xrefs:\n// > GJRateLevelLayer::init @ 0x1402f4e3b\n// > <???> @ 0x1406d4004\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 GJRateLevelLayer::onFeature(GJRateLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  GJFeatureState m_featureState; // r8d\n  GJFeatureState v3; // edx\n  _BOOL8 v5; // r8\n\n  m_featureState = a1->m_featureState;\n  v3 = 0;\n  if ( m_featureState < Mythic )\n    v3 = m_featureState + 1;\n  a1->m_featureState = v3;\n  GJDifficultySprite::updateFeatureState(a1->m_difficultySprite, v3);\n  LOBYTE(v5) = a1->m_featureState != 0;\n  a1->toggleGroup(a1, 1, v5);\n}", "assembly": "; \n; GJRateLevelLayer::onFeature from 0x1402f5920 to 0x1402f5971 (81 bytes)\n; \n; 2 xrefs:\n; > GJRateLevelLayer::init @ 0x1402f4e3b\n; > <???> @ 0x1406d4004\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    rbx                                                            ; +0x0, 0x1402f5920\nsub     rsp, 20h                                                       ; +0x2, 0x1402f5922\nmov     r8d, [rcx+408h]                                                ; +0x6, 0x1402f5926\nxor     edx, edx                                                       ; +0xd, 0x1402f592d\ncmp     r8d, 4                                                         ; +0xf, 0x1402f592f\nmov     rbx, rcx                                                       ; +0x13, 0x1402f5933\nlea     eax, [r8+1]                                                    ; +0x16, 0x1402f5936\ncmovl   edx, eax                                                       ; +0x1a, 0x1402f593a\nmov     [rcx+408h], edx                                                ; +0x1d, 0x1402f593d\nmov     rcx, [rcx+400h]                                                ; +0x23, 0x1402f5943\ncall    GJDifficultySprite__updateFeatureState                         ; +0x2a, 0x1402f594a\ncmp     dword ptr [rbx+408h], 0                                        ; +0x2f, 0x1402f594f\nmov     edx, 1                                                         ; +0x36, 0x1402f5956\nmov     rax, [rbx]                                                     ; +0x3b, 0x1402f595b\nmov     rcx, rbx                                                       ; +0x3e, 0x1402f595e\nsetnz   r8b                                                            ; +0x41, 0x1402f5961\nadd     rsp, 20h                                                       ; +0x45, 0x1402f5965\npop     rbx                                                            ; +0x49, 0x1402f5969\njmp     qword ptr [rax+420h]                                           ; +0x4a, 0x1402f596a", "xrefs": ["GJRateLevelLayer::init @ 0x1402f4e3b", "<???> @ 0x1406d4004"], "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"}