{"type": "func", "start": 4298020128, "end": 4298020256, "name": "GJPathSprite::updateState", "pseudocode": "// \n// GJPathSprite::updateState from 0x1002e9520 to 0x1002e95a0 (128 bytes)\n// \n// 2 xrefs:\n// > GJPathsLayer::init @ 0x1002e92b4\n// > GJPathPage::init @ 0x1002ea4e7\n// \n// This function is hookable on this platform (idp: pc, 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 12:28:22 +0000\n// \n\n__int64 __fastcall GJPathSprite::updateState(__int64 a1, __m128 a2)\n{\n  __int64 v2; // rax\n  unsigned int v3; // r14d\n  __int64 v4; // rax\n\n  v2 = GameStatsManager::sharedState();\n  if ( !(unsigned __int8)GameStatsManager::isItemUnlocked(v2, 12, *(_DWORD *)(a1 + 596) + 5) )\n    return GJPathSprite::changeToLockedArt(a1);\n  v3 = *(_DWORD *)(a1 + 596) + 29;\n  v4 = GameStatsManager::sharedState();\n  a2.f32[0] = (float)(int)GameStatsManager::getStatFromKey(v4, v3, a2) / 100.0;\n  if ( (int)_mm_round_ss(a2, a2, 9).f32[0] < 10 )\n    return GJPathSprite::addRankLabel(a1);\n  else\n    return GJPathSprite::addShardSprite(a1);\n}", "assembly": "; \n; GJPathSprite::updateState from 0x1002e9520 to 0x1002e95a0 (128 bytes)\n; \n; 2 xrefs:\n; > GJPathsLayer::init @ 0x1002e92b4\n; > GJPathPage::init @ 0x1002ea4e7\n; \n; This function is hookable on this platform (idp: pc, 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 12:28:22 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002e9520\nmov     rbp, rsp                                                       ; +0x1, 0x1002e9521\npush    r14                                                            ; +0x4, 0x1002e9524\npush    rbx                                                            ; +0x6, 0x1002e9526\nmov     rbx, rdi                                                       ; +0x7, 0x1002e9527\ncall    GameStatsManager__sharedState                                  ; +0xa, 0x1002e952a\nmov     edx, [rbx+254h]                                                ; +0xf, 0x1002e952f\nadd     edx, 5                                                         ; +0x15, 0x1002e9535\nmov     rdi, rax                                                       ; +0x18, 0x1002e9538\nmov     esi, 0Ch                                                       ; +0x1b, 0x1002e953b\ncall    GameStatsManager__isItemUnlocked                               ; +0x20, 0x1002e9540\ntest    al, al                                                         ; +0x25, 0x1002e9545\njz      short loc_1002E958B                                            ; +0x27, 0x1002e9547\nmov     r14d, [rbx+254h]                                               ; +0x29, 0x1002e9549\nadd     r14d, 1Dh                                                      ; +0x30, 0x1002e9550\ncall    GameStatsManager__sharedState                                  ; +0x34, 0x1002e9554\nmov     rdi, rax                                                       ; +0x39, 0x1002e9559\nmov     esi, r14d                                                      ; +0x3c, 0x1002e955c\ncall    GameStatsManager__getStatFromKey                               ; +0x3f, 0x1002e955f\ncvtsi2ss xmm0, eax                                                     ; +0x44, 0x1002e9564\ndivss   xmm0, cs:dword_100A03584                                       ; +0x48, 0x1002e9568\nroundss xmm0, xmm0, 9                                                  ; +0x50, 0x1002e9570\ncvttss2si esi, xmm0                                                    ; +0x56, 0x1002e9576\nmov     rdi, rbx                                                       ; +0x5a, 0x1002e957a\ncmp     esi, 0Ah                                                       ; +0x5d, 0x1002e957d\njl      short loc_1002E9597                                            ; +0x60, 0x1002e9580\npop     rbx                                                            ; +0x62, 0x1002e9582\npop     r14                                                            ; +0x63, 0x1002e9583\npop     rbp                                                            ; +0x65, 0x1002e9585\njmp     GJPathSprite__addShardSprite                                   ; +0x66, 0x1002e9586\nmov     rdi, rbx                                                       ; +0x6b, 0x1002e958b\npop     rbx                                                            ; +0x6e, 0x1002e958e\npop     r14                                                            ; +0x6f, 0x1002e958f\npop     rbp                                                            ; +0x71, 0x1002e9591\njmp     GJPathSprite__changeToLockedArt                                ; +0x72, 0x1002e9592\npop     rbx                                                            ; +0x77, 0x1002e9597\npop     r14                                                            ; +0x78, 0x1002e9598\npop     rbp                                                            ; +0x7a, 0x1002e959a\njmp     GJPathSprite__addRankLabel                                     ; +0x7b, 0x1002e959b", "xrefs": ["GJPathsLayer::init @ 0x1002e92b4", "GJPathPage::init @ 0x1002ea4e7"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}