{"type": "func", "start": 5369185600, "end": 5369185816, "name": "SpriteAnimationManager::queueAnimation", "pseudocode": "// \n// SpriteAnimationManager::queueAnimation from 0x140074540 to 0x140074618 (216 bytes)\n// \n// 3 xrefs:\n// > SpriteAnimationManager::runAnimation @ 0x140073ef2\n// > SpriteAnimationManager::runAnimation @ 0x140073f24\n// > <???> @ 0x1406c6348\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\n// Hidden C++ exception states: #wind=1\nvoid __fastcall SpriteAnimationManager::queueAnimation(__int64 a1, const void **a2)\n{\n  __int64 v4; // rax\n  int Prio; // ebp\n  const void **v6; // rdi\n  _BYTE *v7; // rdx\n  size_t v8; // r8\n  void *v9; // rdx\n  __int128 v10; // [rsp+28h] [rbp-50h] BYREF\n  __int64 v11; // [rsp+38h] [rbp-40h]\n  __int64 v12; // [rsp+40h] [rbp-38h]\n  const void **v13; // [rsp+48h] [rbp-30h]\n\n  v13 = a2;\n  v4 = sub_14003BDB0((__int64)&v10, (__int64)a2);\n  Prio = SpriteAnimationManager::getPrio(a1, v4);\n  v6 = (const void **)(a1 + 352);\n  v7 = (_BYTE *)(a1 + 352);\n  if ( *(_QWORD *)(a1 + 376) > 0xFu )\n    v7 = *v6;\n  v10 = 0;\n  v11 = 0;\n  v12 = 0;\n  v8 = -1;\n  do\n    ++v8;\n  while ( v7[v8] );\n  sub_14003A930(&v10, v7, v8);\n  if ( Prio <= (int)SpriteAnimationManager::getPrio(a1, &v10) && v6 != a2 )\n  {\n    v9 = a2;\n    if ( (unsigned __int64)a2[3] > 0xF )\n      v9 = (void *)*a2;\n    sub_14003CCE0((void **)(a1 + 352), v9, (size_t)a2[2]);\n  }\n  sub_14003A830((__int64)a2);\n}", "assembly": "; \n; SpriteAnimationManager::queueAnimation from 0x140074540 to 0x140074618 (216 bytes)\n; \n; 3 xrefs:\n; > SpriteAnimationManager::runAnimation @ 0x140073ef2\n; > SpriteAnimationManager::runAnimation @ 0x140073f24\n; > <???> @ 0x1406c6348\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_10], rbx                                              ; +0x0, 0x140074540\npush    rbp                                                            ; +0x5, 0x140074545\npush    rsi                                                            ; +0x6, 0x140074546\npush    rdi                                                            ; +0x7, 0x140074547\nsub     rsp, 60h                                                       ; +0x8, 0x140074548\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x14007454c\nxor     rax, rsp                                                       ; +0x13, 0x140074553\nmov     [rsp+78h+var_28], rax                                          ; +0x16, 0x140074556\nmov     rbx, rdx                                                       ; +0x1b, 0x14007455b\nmov     rsi, rcx                                                       ; +0x1e, 0x14007455e\nmov     [rsp+78h+var_30], rdx                                          ; +0x21, 0x140074561\nlea     rcx, [rsp+78h+var_50]                                          ; +0x26, 0x140074566\ncall    sub_14003BDB0                                                  ; +0x2b, 0x14007456b\nmov     rdx, rax                                                       ; +0x30, 0x140074570\nmov     rcx, rsi                                                       ; +0x33, 0x140074573\ncall    SpriteAnimationManager__getPrio                                ; +0x36, 0x140074576\nmov     ebp, eax                                                       ; +0x3b, 0x14007457b\nlea     rdi, [rsi+160h]                                                ; +0x3d, 0x14007457d\nmov     rdx, rdi                                                       ; +0x44, 0x140074584\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0x47, 0x140074587\njbe     short loc_140074591                                            ; +0x4c, 0x14007458c\nmov     rdx, [rdi]                                                     ; +0x4e, 0x14007458e\nxorps   xmm0, xmm0                                                     ; +0x51, 0x140074591\nmovups  [rsp+78h+var_50], xmm0                                         ; +0x54, 0x140074594\nxor     eax, eax                                                       ; +0x59, 0x140074599\nmov     [rsp+78h+var_40], rax                                          ; +0x5b, 0x14007459b\nmov     [rsp+78h+var_38], rax                                          ; +0x60, 0x1400745a0\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x65, 0x1400745a5\nnop     dword ptr [rax+00h]                                            ; +0x6c, 0x1400745ac\ninc     r8                                                             ; +0x70, 0x1400745b0\ncmp     [rdx+r8], al                                                   ; +0x73, 0x1400745b3\njnz     short loc_1400745B0                                            ; +0x77, 0x1400745b7\nlea     rcx, [rsp+78h+var_50]                                          ; +0x79, 0x1400745b9\ncall    sub_14003A930                                                  ; +0x7e, 0x1400745be\nlea     rdx, [rsp+78h+var_50]                                          ; +0x83, 0x1400745c3\nmov     rcx, rsi                                                       ; +0x88, 0x1400745c8\ncall    SpriteAnimationManager__getPrio                                ; +0x8b, 0x1400745cb\ncmp     ebp, eax                                                       ; +0x90, 0x1400745d0\njg      short loc_1400745F3                                            ; +0x92, 0x1400745d2\ncmp     rdi, rbx                                                       ; +0x94, 0x1400745d4\njz      short loc_1400745F3                                            ; +0x97, 0x1400745d7\nmov     rdx, rbx                                                       ; +0x99, 0x1400745d9\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x9c, 0x1400745dc\njbe     short loc_1400745E6                                            ; +0xa1, 0x1400745e1\nmov     rdx, [rbx]; Src                                                ; +0xa3, 0x1400745e3\nmov     r8, [rbx+10h]; Size                                            ; +0xa6, 0x1400745e6\nmov     rcx, rdi; void *                                               ; +0xaa, 0x1400745ea\ncall    sub_14003CCE0                                                  ; +0xad, 0x1400745ed\nnop                                                                    ; +0xb2, 0x1400745f2\nmov     rcx, rbx                                                       ; +0xb3, 0x1400745f3\ncall    sub_14003A830                                                  ; +0xb6, 0x1400745f6\nmov     rcx, [rsp+78h+var_28]                                          ; +0xbb, 0x1400745fb\nxor     rcx, rsp; StackCookie                                          ; +0xc0, 0x140074600\ncall    __security_check_cookie                                        ; +0xc3, 0x140074603\nmov     rbx, [rsp+78h+arg_10]                                          ; +0xc8, 0x140074608\nadd     rsp, 60h                                                       ; +0xd0, 0x140074610\npop     rdi                                                            ; +0xd4, 0x140074614\npop     rsi                                                            ; +0xd5, 0x140074615\npop     rbp                                                            ; +0xd6, 0x140074616\nretn                                                                   ; +0xd7, 0x140074617", "xrefs": ["SpriteAnimationManager::runAnimation @ 0x140073ef2", "SpriteAnimationManager::runAnimation @ 0x140073f24", "<???> @ 0x1406c6348"], "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"}