{"type": "func", "start": 5369014032, "end": 5369014202, "name": "CCSpritePart::frameChanged", "pseudocode": "// \n// CCSpritePart::frameChanged from 0x14004a710 to 0x14004a7ba (170 bytes)\n// \n// 3 xrefs:\n// > CCPartAnimSprite::setDisplayFrame @ 0x140049ff7\n// > CCPartAnimSprite::tweenToFrame @ 0x14004a2f5\n// > <???> @ 0x14090fd64\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 11:25:32 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall CCSpritePart::frameChanged(__int64 a1, void **a2)\n{\n  __int64 v4; // rax\n  void *v5; // rdx\n  _BYTE v6[32]; // [rsp+28h] [rbp-40h] BYREF\n  void **v7; // [rsp+48h] [rbp-20h]\n\n  v7 = a2;\n  if ( *(_QWORD *)(a1 + 664) && sub_14003D160(a2, (_QWORD *)(a1 + 632)) )\n  {\n    v4 = sub_14003F4F0((__int64)v6, (__int64)a2);\n    (***(void (__fastcall ****)(_QWORD, __int64, __int64))(a1 + 664))(*(_QWORD *)(a1 + 664), a1, v4);\n  }\n  if ( (void **)(a1 + 632) != a2 )\n  {\n    v5 = a2;\n    if ( (unsigned __int64)a2[3] > 0xF )\n      v5 = *a2;\n    sub_1400405A0((void **)(a1 + 632), v5, (size_t)a2[2]);\n  }\n  sub_14003D310((__int64)a2);\n}", "assembly": "; \n; CCSpritePart::frameChanged from 0x14004a710 to 0x14004a7ba (170 bytes)\n; \n; 3 xrefs:\n; > CCPartAnimSprite::setDisplayFrame @ 0x140049ff7\n; > CCPartAnimSprite::tweenToFrame @ 0x14004a2f5\n; > <???> @ 0x14090fd64\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 11:25:32 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14004a710\npush    rdi                                                            ; +0x5, 0x14004a715\nsub     rsp, 60h                                                       ; +0x6, 0x14004a716\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14004a71a\nxor     rax, rsp                                                       ; +0x11, 0x14004a721\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x14004a724\nmov     rbx, rdx                                                       ; +0x19, 0x14004a729\nmov     rdi, rcx                                                       ; +0x1c, 0x14004a72c\nmov     [rsp+68h+var_20], rdx                                          ; +0x1f, 0x14004a72f\ncmp     qword ptr [rcx+298h], 0                                        ; +0x24, 0x14004a734\njz      short loc_14004A774                                            ; +0x2c, 0x14004a73c\nlea     rdx, [rcx+278h]; Buf2                                          ; +0x2e, 0x14004a73e\nmov     rcx, rbx; Buf1                                                 ; +0x35, 0x14004a745\ncall    sub_14003D160                                                  ; +0x38, 0x14004a748\ntest    eax, eax                                                       ; +0x3d, 0x14004a74d\njz      short loc_14004A774                                            ; +0x3f, 0x14004a74f\nmov     rdx, rbx                                                       ; +0x41, 0x14004a751\nlea     rcx, [rsp+68h+var_40]                                          ; +0x44, 0x14004a754\ncall    sub_14003F4F0                                                  ; +0x49, 0x14004a759\nmov     rcx, [rdi+298h]                                                ; +0x4e, 0x14004a75e\nmov     rdx, [rcx]                                                     ; +0x55, 0x14004a765\nmov     r9, [rdx]                                                      ; +0x58, 0x14004a768\nmov     r8, rax                                                        ; +0x5b, 0x14004a76b\nmov     rdx, rdi                                                       ; +0x5e, 0x14004a76e\ncall    r9                                                             ; +0x61, 0x14004a771\nlea     rcx, [rdi+278h]; void *                                        ; +0x64, 0x14004a774\ncmp     rcx, rbx                                                       ; +0x6b, 0x14004a77b\njz      short loc_14004A797                                            ; +0x6e, 0x14004a77e\nmov     rdx, rbx                                                       ; +0x70, 0x14004a780\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x73, 0x14004a783\njbe     short loc_14004A78D                                            ; +0x78, 0x14004a788\nmov     rdx, [rbx]; Src                                                ; +0x7a, 0x14004a78a\nmov     r8, [rbx+10h]; Size                                            ; +0x7d, 0x14004a78d\ncall    sub_1400405A0                                                  ; +0x81, 0x14004a791\nnop                                                                    ; +0x86, 0x14004a796\nmov     rcx, rbx                                                       ; +0x87, 0x14004a797\ncall    sub_14003D310                                                  ; +0x8a, 0x14004a79a\nmov     rcx, [rsp+68h+var_18]                                          ; +0x8f, 0x14004a79f\nxor     rcx, rsp; StackCookie                                          ; +0x94, 0x14004a7a4\ncall    __security_check_cookie                                        ; +0x97, 0x14004a7a7\nmov     rbx, [rsp+68h+arg_10]                                          ; +0x9c, 0x14004a7ac\nadd     rsp, 60h                                                       ; +0xa4, 0x14004a7b4\npop     rdi                                                            ; +0xa8, 0x14004a7b8\nretn                                                                   ; +0xa9, 0x14004a7b9", "xrefs": ["CCPartAnimSprite::setDisplayFrame @ 0x140049ff7", "CCPartAnimSprite::tweenToFrame @ 0x14004a2f5", "<???> @ 0x14090fd64"], "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"}