{"type": "func", "start": 4300236464, "end": 4300236546, "name": "GJRateLevelLayer::onFeature", "pseudocode": "// \n// GJRateLevelLayer::onFeature from 0x1005066b0 to 0x100506702 (82 bytes)\n// \n// 1 xrefs:\n// > GJRateLevelLayer::init @ 0x100505f2f\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 GJRateLevelLayer::onFeature(GJRateLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  GJFeatureState m_featureState; // eax\n  GJFeatureState v3; // esi\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  ((void (__fastcall *)(GJRateLevelLayer *, __int64, bool))a1->toggleGroup)(a1, 1, a1->m_featureState != 0);\n}", "assembly": "; \n; GJRateLevelLayer::onFeature from 0x1005066b0 to 0x100506702 (82 bytes)\n; \n; 1 xrefs:\n; > GJRateLevelLayer::init @ 0x100505f2f\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, 0x1005066b0\nmov     rbp, rsp                                                       ; +0x1, 0x1005066b1\npush    rbx                                                            ; +0x4, 0x1005066b4\npush    rax                                                            ; +0x5, 0x1005066b5\nmov     rbx, rdi                                                       ; +0x6, 0x1005066b6\nmov     eax, [rdi+410h]                                                ; +0x9, 0x1005066b9\nlea     ecx, [rax+1]                                                   ; +0xf, 0x1005066bf\nxor     esi, esi                                                       ; +0x12, 0x1005066c2\ncmp     eax, 4                                                         ; +0x14, 0x1005066c4\ncmovl   esi, ecx                                                       ; +0x17, 0x1005066c7\nmov     [rdi+410h], esi                                                ; +0x1a, 0x1005066ca\nmov     rdi, [rdi+408h]                                                ; +0x20, 0x1005066d0\ncall    GJDifficultySprite__updateFeatureState                         ; +0x27, 0x1005066d7\nxor     edx, edx                                                       ; +0x2c, 0x1005066dc\ncmp     dword ptr [rbx+410h], 0                                        ; +0x2e, 0x1005066de\nsetnz   dl                                                             ; +0x35, 0x1005066e5\nmov     rax, [rbx]                                                     ; +0x38, 0x1005066e8\nmov     rax, [rax+518h]                                                ; +0x3b, 0x1005066eb\nmov     rdi, rbx                                                       ; +0x42, 0x1005066f2\nmov     esi, 1                                                         ; +0x45, 0x1005066f5\nadd     rsp, 8                                                         ; +0x4a, 0x1005066fa\npop     rbx                                                            ; +0x4e, 0x1005066fe\npop     rbp                                                            ; +0x4f, 0x1005066ff\njmp     rax                                                            ; +0x50, 0x100506700", "xrefs": ["GJRateLevelLayer::init @ 0x100505f2f"], "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"}