{"type": "func", "start": 4296742844, "end": 4296742924, "name": "GJRateLevelLayer::onFeature", "pseudocode": "// \n// GJRateLevelLayer::onFeature from 0x1001b17bc to 0x1001b180c (80 bytes)\n// \n// 1 xrefs:\n// > GJRateLevelLayer::init @ 0x1001b107c\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; // w8\n  GJFeatureState v4; // w1\n\n  m_featureState = a1->m_featureState;\n  if ( m_featureState <= Legendary )\n    v4 = m_featureState + 1;\n  else\n    v4 = 0;\n  a1->m_featureState = v4;\n  GJDifficultySprite::updateFeatureState(a1->m_difficultySprite, v4);\n  ((void (__fastcall *)(GJRateLevelLayer *, __int64, bool))a1->toggleGroup)(a1, 1, a1->m_featureState != 0);\n}", "assembly": "; \n; GJRateLevelLayer::onFeature from 0x1001b17bc to 0x1001b180c (80 bytes)\n; \n; 1 xrefs:\n; > GJRateLevelLayer::init @ 0x1001b107c\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001b17bc\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001b17c0\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001b17c4\nMOV             X19, X0                                                ; +0xc, 0x1001b17c8\nLDR             W8, [X0,#0x410]                                        ; +0x10, 0x1001b17cc\nCMP             W8, #3                                                 ; +0x14, 0x1001b17d0\nCSINC           W1, WZR, W8, GT                                        ; +0x18, 0x1001b17d4\nSTR             W1, [X0,#0x410]                                        ; +0x1c, 0x1001b17d8\nLDR             X0, [X0,#0x408]                                        ; +0x20, 0x1001b17dc\nBL              GJDifficultySprite__updateFeatureState                 ; +0x24, 0x1001b17e0\nLDR             W8, [X19,#0x410]                                       ; +0x28, 0x1001b17e4\nCMP             W8, #0                                                 ; +0x2c, 0x1001b17e8\nCSET            W2, NE                                                 ; +0x30, 0x1001b17ec\nLDR             X8, [X19]                                              ; +0x34, 0x1001b17f0\nLDR             X3, [X8,#0x518]                                        ; +0x38, 0x1001b17f4\nMOV             X0, X19                                                ; +0x3c, 0x1001b17f8\nMOV             W1, #1                                                 ; +0x40, 0x1001b17fc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x44, 0x1001b1800\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x48, 0x1001b1804\nBR              X3                                                     ; +0x4c, 0x1001b1808", "xrefs": ["GJRateLevelLayer::init @ 0x1001b107c"], "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"}