{"type": "func", "start": 5368998384, "end": 5368998551, "name": "CCSpritePart::frameChanged", "pseudocode": "// \n// CCSpritePart::frameChanged from 0x1400469f0 to 0x140046a97 (167 bytes)\n// \n// 3 xrefs:\n// > CCPartAnimSprite::setDisplayFrame @ 0x1400462d4\n// > CCPartAnimSprite::tweenToFrame @ 0x1400465d5\n// > <???> @ 0x1406c486c\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 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_14003A760(a2, (_QWORD *)(a1 + 632)) )\n  {\n    v4 = sub_14003BDB0((__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_14003CCE0((void **)(a1 + 632), v5, (size_t)a2[2]);\n  }\n  sub_14003A830((__int64)a2);\n}", "assembly": "; \n; CCSpritePart::frameChanged from 0x1400469f0 to 0x140046a97 (167 bytes)\n; \n; 3 xrefs:\n; > CCPartAnimSprite::setDisplayFrame @ 0x1400462d4\n; > CCPartAnimSprite::tweenToFrame @ 0x1400465d5\n; > <???> @ 0x1406c486c\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, 0x1400469f0\npush    rdi                                                            ; +0x5, 0x1400469f5\nsub     rsp, 60h                                                       ; +0x6, 0x1400469f6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1400469fa\nxor     rax, rsp                                                       ; +0x11, 0x140046a01\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x140046a04\nmov     rbx, rdx                                                       ; +0x19, 0x140046a09\nmov     rdi, rcx                                                       ; +0x1c, 0x140046a0c\nmov     [rsp+68h+var_20], rdx                                          ; +0x1f, 0x140046a0f\ncmp     qword ptr [rcx+298h], 0                                        ; +0x24, 0x140046a14\njz      short loc_140046A51                                            ; +0x2c, 0x140046a1c\nlea     rdx, [rcx+278h]; Buf2                                          ; +0x2e, 0x140046a1e\nmov     rcx, rbx; Buf1                                                 ; +0x35, 0x140046a25\ncall    sub_14003A760                                                  ; +0x38, 0x140046a28\ntest    eax, eax                                                       ; +0x3d, 0x140046a2d\njz      short loc_140046A51                                            ; +0x3f, 0x140046a2f\nmov     rdx, rbx                                                       ; +0x41, 0x140046a31\nlea     rcx, [rsp+68h+var_40]                                          ; +0x44, 0x140046a34\ncall    sub_14003BDB0                                                  ; +0x49, 0x140046a39\nmov     rcx, [rdi+298h]                                                ; +0x4e, 0x140046a3e\nmov     r9, [rcx]                                                      ; +0x55, 0x140046a45\nmov     r8, rax                                                        ; +0x58, 0x140046a48\nmov     rdx, rdi                                                       ; +0x5b, 0x140046a4b\ncall    qword ptr [r9]                                                 ; +0x5e, 0x140046a4e\nlea     rcx, [rdi+278h]; void *                                        ; +0x61, 0x140046a51\ncmp     rcx, rbx                                                       ; +0x68, 0x140046a58\njz      short loc_140046A74                                            ; +0x6b, 0x140046a5b\nmov     rdx, rbx                                                       ; +0x6d, 0x140046a5d\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x70, 0x140046a60\njbe     short loc_140046A6A                                            ; +0x75, 0x140046a65\nmov     rdx, [rbx]; Src                                                ; +0x77, 0x140046a67\nmov     r8, [rbx+10h]; Size                                            ; +0x7a, 0x140046a6a\ncall    sub_14003CCE0                                                  ; +0x7e, 0x140046a6e\nnop                                                                    ; +0x83, 0x140046a73\nmov     rcx, rbx                                                       ; +0x84, 0x140046a74\ncall    sub_14003A830                                                  ; +0x87, 0x140046a77\nmov     rcx, [rsp+68h+var_18]                                          ; +0x8c, 0x140046a7c\nxor     rcx, rsp; StackCookie                                          ; +0x91, 0x140046a81\ncall    __security_check_cookie                                        ; +0x94, 0x140046a84\nmov     rbx, [rsp+68h+arg_10]                                          ; +0x99, 0x140046a89\nadd     rsp, 60h                                                       ; +0xa1, 0x140046a91\npop     rdi                                                            ; +0xa5, 0x140046a95\nretn                                                                   ; +0xa6, 0x140046a96", "xrefs": ["CCPartAnimSprite::setDisplayFrame @ 0x1400462d4", "CCPartAnimSprite::tweenToFrame @ 0x1400465d5", "<???> @ 0x1406c486c"], "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"}