{"type": "func", "start": 5369185904, "end": 5369186124, "name": "SpriteAnimationManager::callAnimationFinished", "pseudocode": "// \n// SpriteAnimationManager::callAnimationFinished from 0x140074670 to 0x14007474c (220 bytes)\n// \n// 3 xrefs:\n// > SpriteAnimationManager::animationFinished @ 0x14007462a\n// > <???> @ 0x1406c6354\n// > <???> @ 0x1406c6360\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=3\nvoid SpriteAnimationManager::callAnimationFinished(SpriteAnimationManager *a1)\n{\n  std::string *p_m_currentAnimation; // rbx\n  std::string *m_bigStorage; // rcx\n  size_t m_size; // r8\n  const char *v5; // rdx\n  __int128 Buf2; // [rsp+20h] [rbp-58h] BYREF\n  __int64 v7; // [rsp+30h] [rbp-48h]\n  __int64 v8; // [rsp+38h] [rbp-40h]\n  _QWORD v9[4]; // [rsp+40h] [rbp-38h] BYREF\n\n  v7 = 8;\n  v8 = 15;\n  Buf2 = 0x646573755F746F6EuLL;\n  p_m_currentAnimation = &a1->m_currentAnimation;\n  m_bigStorage = p_m_currentAnimation;\n  if ( p_m_currentAnimation->m_data.m_capacity > 0xF )\n    m_bigStorage = (std::string *)p_m_currentAnimation->m_data.m_bigStorage;\n  m_size = p_m_currentAnimation->m_data.m_size;\n  if ( m_size > 8 )\n    m_size = 8;\n  if ( !memcmp(m_bigStorage, &Buf2, m_size) && p_m_currentAnimation->m_data.m_size == 8 )\n    p_m_currentAnimation = &a1->m_nextAnimation;\n  sub_14003BDB0((__int64)v9, (__int64)p_m_currentAnimation);\n  v5 = (const char *)v9;\n  if ( v9[3] > 0xFu )\n    v5 = (const char *)v9[0];\n  a1->m_sprite->animationFinished(a1->m_sprite, v5);\n  sub_14003A830((__int64)v9);\n}", "assembly": "; \n; SpriteAnimationManager::callAnimationFinished from 0x140074670 to 0x14007474c (220 bytes)\n; \n; 3 xrefs:\n; > SpriteAnimationManager::animationFinished @ 0x14007462a\n; > <???> @ 0x1406c6354\n; > <???> @ 0x1406c6360\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, 0x140074670\npush    rdi                                                            ; +0x5, 0x140074675\nsub     rsp, 70h                                                       ; +0x6, 0x140074676\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14007467a\nxor     rax, rsp                                                       ; +0x11, 0x140074681\nmov     [rsp+78h+var_18], rax                                          ; +0x14, 0x140074684\nmov     rdi, rcx                                                       ; +0x19, 0x140074689\nxorps   xmm0, xmm0                                                     ; +0x1c, 0x14007468c\nmovups  [rsp+78h+Buf2], xmm0                                           ; +0x1f, 0x14007468f\nmov     edx, 8                                                         ; +0x24, 0x140074694\nmov     [rsp+78h+var_48], rdx                                          ; +0x29, 0x140074699\nmov     [rsp+78h+var_40], 0Fh                                          ; +0x2e, 0x14007469e\nmov     rax, 646573755F746F6Eh                                         ; +0x37, 0x1400746a7\nmov     qword ptr [rsp+78h+Buf2], rax                                  ; +0x41, 0x1400746b1\nmov     byte ptr [rsp+78h+Buf2+8], 0                                   ; +0x46, 0x1400746b6\nlea     rbx, [rcx+198h]                                                ; +0x4b, 0x1400746bb\nmov     rcx, rbx                                                       ; +0x52, 0x1400746c2\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x55, 0x1400746c5\njbe     short loc_1400746CF                                            ; +0x5a, 0x1400746ca\nmov     rcx, [rbx]; Buf1                                               ; +0x5c, 0x1400746cc\nmov     r8, [rbx+10h]                                                  ; +0x5f, 0x1400746cf\ncmp     r8, 8                                                          ; +0x63, 0x1400746d3\ncmova   r8, rdx; Size                                                  ; +0x67, 0x1400746d7\nlea     rdx, [rsp+78h+Buf2]; Buf2                                      ; +0x6b, 0x1400746db\ncall    memcmp                                                         ; +0x70, 0x1400746e0\ntest    eax, eax                                                       ; +0x75, 0x1400746e5\njnz     short loc_1400746F7                                            ; +0x77, 0x1400746e7\ncmp     qword ptr [rbx+10h], 8                                         ; +0x79, 0x1400746e9\njnz     short loc_1400746F7                                            ; +0x7e, 0x1400746ee\nlea     rbx, [rdi+1B8h]                                                ; +0x80, 0x1400746f0\nmov     rdx, rbx                                                       ; +0x87, 0x1400746f7\nlea     rcx, [rsp+78h+var_38]                                          ; +0x8a, 0x1400746fa\ncall    sub_14003BDB0                                                  ; +0x8f, 0x1400746ff\nnop                                                                    ; +0x94, 0x140074704\nlea     rdx, [rsp+78h+var_38]                                          ; +0x95, 0x140074705\ncmp     [rsp+78h+var_20], 0Fh                                          ; +0x9a, 0x14007470a\ncmova   rdx, [rsp+78h+var_38]                                          ; +0xa0, 0x140074710\nmov     rcx, [rdi+140h]                                                ; +0xa6, 0x140074716\nmov     rax, [rcx]                                                     ; +0xad, 0x14007471d\ncall    qword ptr [rax+430h]                                           ; +0xb0, 0x140074720\nnop                                                                    ; +0xb6, 0x140074726\nlea     rcx, [rsp+78h+var_38]                                          ; +0xb7, 0x140074727\ncall    sub_14003A830                                                  ; +0xbc, 0x14007472c\nmov     rcx, [rsp+78h+var_18]                                          ; +0xc1, 0x140074731\nxor     rcx, rsp; StackCookie                                          ; +0xc6, 0x140074736\ncall    __security_check_cookie                                        ; +0xc9, 0x140074739\nmov     rbx, [rsp+78h+arg_8]                                           ; +0xce, 0x14007473e\nadd     rsp, 70h                                                       ; +0xd6, 0x140074746\npop     rdi                                                            ; +0xda, 0x14007474a\nretn                                                                   ; +0xdb, 0x14007474b", "xrefs": ["SpriteAnimationManager::animationFinished @ 0x14007462a", "<???> @ 0x1406c6354", "<???> @ 0x1406c6360"], "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"}