{"type": "func", "start": 4298868004, "end": 4298868132, "name": "GJPathSprite::updateState", "pseudocode": "// \n// GJPathSprite::updateState from 0x1003b8524 to 0x1003b85a4 (128 bytes)\n// \n// 2 xrefs:\n// > GJPathsLayer::init @ 0x1003b8344\n// > GJPathPage::init @ 0x1003b9064\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 GJPathSprite::updateState(GJPathSprite *a1)\n{\n  GameStatsManager *v2; // x0\n  int m_pathNumber; // w20\n  GameStatsManager *v4; // x0\n  int v5; // w1\n\n  v2 = GameStatsManager::sharedState();\n  if ( GameStatsManager::isItemUnlocked(v2, GJItem, a1->m_pathNumber + 5) )\n  {\n    m_pathNumber = a1->m_pathNumber;\n    v4 = GameStatsManager::sharedState();\n    v5 = vcvtms_s32_f32((float)GameStatsManager::getStatFromKey(v4, (StatKey)(m_pathNumber + 29)) / 100.0);\n    if ( v5 < 10 )\n      GJPathSprite::addRankLabel(a1, v5);\n    else\n      GJPathSprite::addShardSprite(a1);\n  }\n  else\n  {\n    GJPathSprite::changeToLockedArt(a1);\n  }\n}", "assembly": "; \n; GJPathSprite::updateState from 0x1003b8524 to 0x1003b85a4 (128 bytes)\n; \n; 2 xrefs:\n; > GJPathsLayer::init @ 0x1003b8344\n; > GJPathPage::init @ 0x1003b9064\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, 0x1003b8524\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003b8528\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003b852c\nMOV             X19, X0                                                ; +0xc, 0x1003b8530\nBL              GameStatsManager__sharedState                          ; +0x10, 0x1003b8534\nLDR             W8, [X19,#0x254]                                       ; +0x14, 0x1003b8538\nADD             W2, W8, #5                                             ; +0x18, 0x1003b853c\nMOV             W1, #0xC                                               ; +0x1c, 0x1003b8540\nBL              GameStatsManager__isItemUnlocked                       ; +0x20, 0x1003b8544\nTBZ             W0, #0, loc_1003B8588                                  ; +0x24, 0x1003b8548\nLDR             W20, [X19,#0x254]                                      ; +0x28, 0x1003b854c\nBL              GameStatsManager__sharedState                          ; +0x2c, 0x1003b8550\nADD             W1, W20, #0x1D                                         ; +0x30, 0x1003b8554\nBL              GameStatsManager__getStatFromKey                       ; +0x34, 0x1003b8558\nSCVTF           S0, W0                                                 ; +0x38, 0x1003b855c\nMOV             W8, #0x42C80000                                        ; +0x3c, 0x1003b8560\nFMOV            S1, W8                                                 ; +0x40, 0x1003b8564\nFDIV            S0, S0, S1                                             ; +0x44, 0x1003b8568\nFCVTMS          W1, S0                                                 ; +0x48, 0x1003b856c\nMOV             X0, X19                                                ; +0x4c, 0x1003b8570\nCMP             W1, #0xA                                               ; +0x50, 0x1003b8574\nB.LT            loc_1003B8598                                          ; +0x54, 0x1003b8578\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x58, 0x1003b857c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x5c, 0x1003b8580\nB               GJPathSprite__addShardSprite                           ; +0x60, 0x1003b8584\nMOV             X0, X19                                                ; +0x64, 0x1003b8588\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x68, 0x1003b858c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x6c, 0x1003b8590\nB               GJPathSprite__changeToLockedArt                        ; +0x70, 0x1003b8594\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x74, 0x1003b8598\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x78, 0x1003b859c\nB               GJPathSprite__addRankLabel                             ; +0x7c, 0x1003b85a0", "xrefs": ["GJPathsLayer::init @ 0x1003b8344", "GJPathPage::init @ 0x1003b9064"], "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"}