{"type": "func", "start": 5369185360, "end": 5369185590, "name": "SpriteAnimationManager::overridePrio", "pseudocode": "// \n// SpriteAnimationManager::overridePrio from 0x140074450 to 0x140074536 (230 bytes)\n// \n// 36 xrefs:\n// > CCAnimatedSprite::tweenToAnimation @ 0x140040e0e\n// > GJRobotSprite::init @ 0x1402a69f5\n// > GJShopLayer::init @ 0x1402aa632\n// > AnimatedShopKeeper::playReactAnimation @ 0x1402afdc6\n// > AnimatedShopKeeper::startAnimating @ 0x1402afebf\n// > AnimatedShopKeeper::animationFinished @ 0x1402b0199\n// > AnimatedShopKeeper::animationFinished @ 0x1402b0303\n// > AnimatedShopKeeper::animationFinished @ 0x1402b0361\n// > AnimatedShopKeeper::animationFinished @ 0x1402b04f5\n// > AnimatedShopKeeper::animationFinished @ 0x1402b054c\n// > PlayerObject::ringJump @ 0x1403997f2\n// > PlayerObject::toggleRobotMode @ 0x14039b9ad\n// > PlayerObject::toggleSpiderMode @ 0x14039bd6d\n// > AnimatedGameObject::init @ 0x1404a2d19\n// > AnimatedGameObject::updateObjectAnimation @ 0x1404a38e6\n// > AnimatedGameObject::deactivateObject @ 0x1404a3c68\n// > AnimatedGameObject::animationFinished @ 0x1404a3fb9\n// > AnimatedGameObject::animationFinished @ 0x1404a4023\n// > AnimatedGameObject::animationFinished @ 0x1404a4182\n// > AnimatedGameObject::animationFinished @ 0x1404a420f\n// > AnimatedGameObject::animationFinished @ 0x1404a425f\n// > AnimatedGameObject::animationFinished @ 0x1404a438a\n// > AnimatedGameObject::animationFinished @ 0x1404a4421\n// > AnimatedGameObject::animationFinished @ 0x1404a447b\n// > AnimatedGameObject::animationFinished @ 0x1404a4604\n// > AnimatedGameObject::animationFinished @ 0x1404a476f\n// > AnimatedGameObject::animationFinished @ 0x1404a48a4\n// > AnimatedGameObject::animationFinished @ 0x1404a493b\n// > AnimatedGameObject::animationFinished @ 0x1404a4995\n// > AnimatedGameObject::animationFinished @ 0x1404a4b12\n// > AnimatedGameObject::animationFinished @ 0x1404a4dff\n// > AnimatedGameObject::animationFinished @ 0x1404a4f62\n// > AnimatedGameObject::animationFinished @ 0x1404a4fef\n// > AnimatedGameObject::animationFinished @ 0x1404a503c\n// > AnimatedGameObject::playAnimation @ 0x1404a52ae\n// > <???> @ 0x1406c633c\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 SpriteAnimationManager::overridePrio(SpriteAnimationManager *a1)\n{\n  SpriteAnimationManager *p_m_currentAnimation; // rbx\n  bool v2; // cc\n  std::string *v4; // rcx\n  size_t v5; // rsi\n  size_t v6; // r8\n  __int128 Buf2; // [rsp+20h] [rbp-38h] BYREF\n  __int64 v8; // [rsp+30h] [rbp-28h]\n  __int64 v9; // [rsp+38h] [rbp-20h]\n\n  p_m_currentAnimation = (SpriteAnimationManager *)&a1->m_currentAnimation;\n  v9 = 15;\n  v2 = a1->m_currentAnimation.m_data.m_capacity <= 0xF;\n  v8 = 8;\n  Buf2 = 0x646573755F746F6EuLL;\n  v4 = &a1->m_currentAnimation;\n  if ( !v2 )\n    v4 = (std::string *)p_m_currentAnimation->__vftable;\n  v5 = *(_QWORD *)&p_m_currentAnimation->m_nTag;\n  v6 = v5;\n  if ( v5 > 8 )\n    v6 = 8;\n  if ( memcmp(v4, &Buf2, v6) || v5 != 8 )\n  {\n    if ( &a1->m_nextAnimation != (std::string *)p_m_currentAnimation )\n    {\n      if ( *(_QWORD *)&p_m_currentAnimation->m_uAutoReleaseCount > 0xFu )\n        p_m_currentAnimation = (SpriteAnimationManager *)p_m_currentAnimation->__vftable;\n      sub_14003CCE0((void **)&a1->m_nextAnimation, p_m_currentAnimation, v5);\n    }\n    sub_14003CCE0((void **)&a1->m_currentAnimation, \"not_used\", 8u);\n  }\n}", "assembly": "; \n; SpriteAnimationManager::overridePrio from 0x140074450 to 0x140074536 (230 bytes)\n; \n; 36 xrefs:\n; > CCAnimatedSprite::tweenToAnimation @ 0x140040e0e\n; > GJRobotSprite::init @ 0x1402a69f5\n; > GJShopLayer::init @ 0x1402aa632\n; > AnimatedShopKeeper::playReactAnimation @ 0x1402afdc6\n; > AnimatedShopKeeper::startAnimating @ 0x1402afebf\n; > AnimatedShopKeeper::animationFinished @ 0x1402b0199\n; > AnimatedShopKeeper::animationFinished @ 0x1402b0303\n; > AnimatedShopKeeper::animationFinished @ 0x1402b0361\n; > AnimatedShopKeeper::animationFinished @ 0x1402b04f5\n; > AnimatedShopKeeper::animationFinished @ 0x1402b054c\n; > PlayerObject::ringJump @ 0x1403997f2\n; > PlayerObject::toggleRobotMode @ 0x14039b9ad\n; > PlayerObject::toggleSpiderMode @ 0x14039bd6d\n; > AnimatedGameObject::init @ 0x1404a2d19\n; > AnimatedGameObject::updateObjectAnimation @ 0x1404a38e6\n; > AnimatedGameObject::deactivateObject @ 0x1404a3c68\n; > AnimatedGameObject::animationFinished @ 0x1404a3fb9\n; > AnimatedGameObject::animationFinished @ 0x1404a4023\n; > AnimatedGameObject::animationFinished @ 0x1404a4182\n; > AnimatedGameObject::animationFinished @ 0x1404a420f\n; > AnimatedGameObject::animationFinished @ 0x1404a425f\n; > AnimatedGameObject::animationFinished @ 0x1404a438a\n; > AnimatedGameObject::animationFinished @ 0x1404a4421\n; > AnimatedGameObject::animationFinished @ 0x1404a447b\n; > AnimatedGameObject::animationFinished @ 0x1404a4604\n; > AnimatedGameObject::animationFinished @ 0x1404a476f\n; > AnimatedGameObject::animationFinished @ 0x1404a48a4\n; > AnimatedGameObject::animationFinished @ 0x1404a493b\n; > AnimatedGameObject::animationFinished @ 0x1404a4995\n; > AnimatedGameObject::animationFinished @ 0x1404a4b12\n; > AnimatedGameObject::animationFinished @ 0x1404a4dff\n; > AnimatedGameObject::animationFinished @ 0x1404a4f62\n; > AnimatedGameObject::animationFinished @ 0x1404a4fef\n; > AnimatedGameObject::animationFinished @ 0x1404a503c\n; > AnimatedGameObject::playAnimation @ 0x1404a52ae\n; > <???> @ 0x1406c633c\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140074450\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140074455\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x14007445a\npush    r14                                                            ; +0xf, 0x14007445f\nsub     rsp, 50h                                                       ; +0x11, 0x140074461\nmov     rax, cs:__security_cookie                                      ; +0x15, 0x140074465\nxor     rax, rsp                                                       ; +0x1c, 0x14007446c\nmov     [rsp+58h+var_18], rax                                          ; +0x1f, 0x14007446f\nlea     rbx, [rcx+198h]                                                ; +0x24, 0x140074474\nmov     [rsp+58h+var_20], 0Fh                                          ; +0x2b, 0x14007447b\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x34, 0x140074484\nxorps   xmm0, xmm0                                                     ; +0x39, 0x140074489\nmovups  [rsp+58h+Buf2], xmm0                                           ; +0x3c, 0x14007448c\nmov     r14d, 8                                                        ; +0x41, 0x140074491\nmov     byte ptr [rsp+58h+Buf2+8], 0                                   ; +0x47, 0x140074497\nmov     rax, 646573755F746F6Eh                                         ; +0x4c, 0x14007449c\nmov     [rsp+58h+var_28], r14                                          ; +0x56, 0x1400744a6\nmov     rdi, rcx                                                       ; +0x5b, 0x1400744ab\nmov     qword ptr [rsp+58h+Buf2], rax                                  ; +0x5e, 0x1400744ae\nmov     rcx, rbx                                                       ; +0x63, 0x1400744b3\njbe     short loc_1400744BB                                            ; +0x66, 0x1400744b6\nmov     rcx, [rbx]; Buf1                                               ; +0x68, 0x1400744b8\nmov     rsi, [rbx+10h]                                                 ; +0x6b, 0x1400744bb\nlea     rdx, [rsp+58h+Buf2]; Buf2                                      ; +0x6f, 0x1400744bf\ncmp     rsi, r14                                                       ; +0x74, 0x1400744c4\nmov     r8, rsi                                                        ; +0x77, 0x1400744c7\ncmova   r8, r14; Size                                                  ; +0x7a, 0x1400744ca\ncall    memcmp                                                         ; +0x7e, 0x1400744ce\ntest    eax, eax                                                       ; +0x83, 0x1400744d3\njnz     short loc_1400744DC                                            ; +0x85, 0x1400744d5\ncmp     rsi, r14                                                       ; +0x87, 0x1400744d7\njz      short loc_140074513                                            ; +0x8a, 0x1400744da\nlea     rcx, [rdi+1B8h]; void *                                        ; +0x8c, 0x1400744dc\ncmp     rcx, rbx                                                       ; +0x93, 0x1400744e3\njz      short loc_1400744FD                                            ; +0x96, 0x1400744e6\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x98, 0x1400744e8\njbe     short loc_1400744F2                                            ; +0x9d, 0x1400744ed\nmov     rbx, [rbx]                                                     ; +0x9f, 0x1400744ef\nmov     r8, rsi; Size                                                  ; +0xa2, 0x1400744f2\nmov     rdx, rbx; Src                                                  ; +0xa5, 0x1400744f5\ncall    sub_14003CCE0                                                  ; +0xa8, 0x1400744f8\nlea     rcx, [rdi+198h]; void *                                        ; +0xad, 0x1400744fd\nmov     r8, r14; Size                                                  ; +0xb4, 0x140074504\nlea     rdx, aNotUsed; \"not_used\"                                      ; +0xb7, 0x140074507\ncall    sub_14003CCE0                                                  ; +0xbe, 0x14007450e\nmov     rcx, [rsp+58h+var_18]                                          ; +0xc3, 0x140074513\nxor     rcx, rsp; StackCookie                                          ; +0xc8, 0x140074518\ncall    __security_check_cookie                                        ; +0xcb, 0x14007451b\nmov     rbx, [rsp+58h+arg_8]                                           ; +0xd0, 0x140074520\nmov     rsi, [rsp+58h+arg_10]                                          ; +0xd5, 0x140074525\nmov     rdi, [rsp+58h+arg_18]                                          ; +0xda, 0x14007452a\nadd     rsp, 50h                                                       ; +0xdf, 0x14007452f\npop     r14                                                            ; +0xe3, 0x140074533\nretn                                                                   ; +0xe5, 0x140074535", "xrefs": ["CCAnimatedSprite::tweenToAnimation @ 0x140040e0e", "GJRobotSprite::init @ 0x1402a69f5", "GJShopLayer::init @ 0x1402aa632", "AnimatedShopKeeper::playReactAnimation @ 0x1402afdc6", "AnimatedShopKeeper::startAnimating @ 0x1402afebf", "AnimatedShopKeeper::animationFinished @ 0x1402b0199", "AnimatedShopKeeper::animationFinished @ 0x1402b0303", "AnimatedShopKeeper::animationFinished @ 0x1402b0361", "AnimatedShopKeeper::animationFinished @ 0x1402b04f5", "AnimatedShopKeeper::animationFinished @ 0x1402b054c", "PlayerObject::ringJump @ 0x1403997f2", "PlayerObject::toggleRobotMode @ 0x14039b9ad", "PlayerObject::toggleSpiderMode @ 0x14039bd6d", "AnimatedGameObject::init @ 0x1404a2d19", "AnimatedGameObject::updateObjectAnimation @ 0x1404a38e6", "AnimatedGameObject::deactivateObject @ 0x1404a3c68", "AnimatedGameObject::animationFinished @ 0x1404a3fb9", "AnimatedGameObject::animationFinished @ 0x1404a4023", "AnimatedGameObject::animationFinished @ 0x1404a4182", "AnimatedGameObject::animationFinished @ 0x1404a420f", "AnimatedGameObject::animationFinished @ 0x1404a425f", "AnimatedGameObject::animationFinished @ 0x1404a438a", "AnimatedGameObject::animationFinished @ 0x1404a4421", "AnimatedGameObject::animationFinished @ 0x1404a447b", "AnimatedGameObject::animationFinished @ 0x1404a4604", "AnimatedGameObject::animationFinished @ 0x1404a476f", "AnimatedGameObject::animationFinished @ 0x1404a48a4", "AnimatedGameObject::animationFinished @ 0x1404a493b", "AnimatedGameObject::animationFinished @ 0x1404a4995", "AnimatedGameObject::animationFinished @ 0x1404a4b12", "AnimatedGameObject::animationFinished @ 0x1404a4dff", "AnimatedGameObject::animationFinished @ 0x1404a4f62", "AnimatedGameObject::animationFinished @ 0x1404a4fef", "AnimatedGameObject::animationFinished @ 0x1404a503c", "AnimatedGameObject::playAnimation @ 0x1404a52ae", "<???> @ 0x1406c633c"], "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"}