{"type": "func", "start": 4299551280, "end": 4299551408, "name": "GJPathSprite::updateState", "pseudocode": "// \n// GJPathSprite::updateState from 0x10045f230 to 0x10045f2b0 (128 bytes)\n// \n// 2 xrefs:\n// > GJPathsLayer::init @ 0x10045f050\n// > sub_10045F6C4 @ 0x10045fd1c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:05:28 +0000\n// \n\n__int64 __fastcall GJPathSprite::updateState(__int64 a1)\n{\n  __int64 v2; // x0\n  int v3; // w20\n  __int64 v4; // x0\n\n  v2 = GameStatsManager::sharedState();\n  if ( (GameStatsManager::isItemUnlocked(v2, 12, (unsigned int)(*(_DWORD *)(a1 + 596) + 5)) & 1) == 0 )\n    return sub_10046178C(a1);\n  v3 = *(_DWORD *)(a1 + 596);\n  v4 = GameStatsManager::sharedState();\n  if ( (int)vcvtms_s32_f32((float)(int)sub_1003CE198(v4, (unsigned int)(v3 + 29)) / 100.0) < 10 )\n    return sub_1004623B0(a1);\n  else\n    return sub_100462034(a1);\n}", "assembly": "; \n; GJPathSprite::updateState from 0x10045f230 to 0x10045f2b0 (128 bytes)\n; \n; 2 xrefs:\n; > GJPathsLayer::init @ 0x10045f050\n; > sub_10045F6C4 @ 0x10045fd1c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:05:28 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10045f230\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10045f234\nADD             X29, SP, #0x10                                         ; +0x8, 0x10045f238\nMOV             X19, X0                                                ; +0xc, 0x10045f23c\nBL              GameStatsManager__sharedState                          ; +0x10, 0x10045f240\nLDR             W8, [X19,#0x254]                                       ; +0x14, 0x10045f244\nADD             W2, W8, #5                                             ; +0x18, 0x10045f248\nMOV             W1, #0xC                                               ; +0x1c, 0x10045f24c\nBL              GameStatsManager__isItemUnlocked                       ; +0x20, 0x10045f250\nTBZ             W0, #0, loc_10045F294                                  ; +0x24, 0x10045f254\nLDR             W20, [X19,#0x254]                                      ; +0x28, 0x10045f258\nBL              GameStatsManager__sharedState                          ; +0x2c, 0x10045f25c\nADD             W1, W20, #0x1D                                         ; +0x30, 0x10045f260\nBL              sub_1003CE198                                          ; +0x34, 0x10045f264\nSCVTF           S0, W0                                                 ; +0x38, 0x10045f268\nMOV             W8, #0x42C80000                                        ; +0x3c, 0x10045f26c\nFMOV            S1, W8                                                 ; +0x40, 0x10045f270\nFDIV            S0, S0, S1                                             ; +0x44, 0x10045f274\nFCVTMS          W1, S0                                                 ; +0x48, 0x10045f278\nMOV             X0, X19                                                ; +0x4c, 0x10045f27c\nCMP             W1, #0xA                                               ; +0x50, 0x10045f280\nB.LT            loc_10045F2A4                                          ; +0x54, 0x10045f284\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x58, 0x10045f288\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x5c, 0x10045f28c\nB               sub_100462034                                          ; +0x60, 0x10045f290\nMOV             X0, X19                                                ; +0x64, 0x10045f294\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x68, 0x10045f298\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x6c, 0x10045f29c\nB               sub_10046178C                                          ; +0x70, 0x10045f2a0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x74, 0x10045f2a4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x78, 0x10045f2a8\nB               sub_1004623B0                                          ; +0x7c, 0x10045f2ac", "xrefs": ["GJPathsLayer::init @ 0x10045f050", "sub_10045F6C4 @ 0x10045fd1c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}