{"type": "func", "start": 4298586736, "end": 4298586913, "name": "CCPartAnimSprite::createWithAnimDesc", "pseudocode": "// \n// CCPartAnimSprite::createWithAnimDesc from 0x100373a70 to 0x100373b21 (177 bytes)\n// \n// 1 xrefs:\n// > CCAnimatedSprite::loadType @ 0x100350598\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\nCCPartAnimSprite *__fastcall CCPartAnimSprite::createWithAnimDesc(const char *a1, cocos2d::CCTexture2D *a2, bool a3)\n{\n  char *v4; // rbx\n\n  v4 = (char *)operator new(0x280u);\n  cocos2d::CCSprite::CCSprite((__int64)v4, (__int64)a2);\n  *(_QWORD *)v4 = off_10091D700;\n  *((_QWORD *)v4 + 40) = off_10091DBD8;\n  *((_QWORD *)v4 + 43) = off_10091DC58;\n  *(_OWORD *)(v4 + 600) = 0;\n  v4[616] = 0;\n  sub_10028CF90(v4 + 620);\n  *((_QWORD *)v4 + 79) = 0;\n  if ( CCPartAnimSprite::initWithAnimDesc((CCPartAnimSprite *)v4, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);\n    return nullptr;\n  }\n  return (CCPartAnimSprite *)v4;\n}", "assembly": "; \n; CCPartAnimSprite::createWithAnimDesc from 0x100373a70 to 0x100373b21 (177 bytes)\n; \n; 1 xrefs:\n; > CCAnimatedSprite::loadType @ 0x100350598\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\npush    rbp                                                            ; +0x0, 0x100373a70\nmov     rbp, rsp                                                       ; +0x1, 0x100373a71\npush    r15                                                            ; +0x4, 0x100373a74\npush    r14                                                            ; +0x6, 0x100373a76\npush    r12                                                            ; +0x8, 0x100373a78\npush    rbx                                                            ; +0xa, 0x100373a7a\nmov     r12d, edx                                                      ; +0xb, 0x100373a7b\nmov     r14, rsi                                                       ; +0xe, 0x100373a7e\nmov     r15, rdi                                                       ; +0x11, 0x100373a81\nmov     edi, 280h; __sz                                                ; +0x14, 0x100373a84\ncall    __Znwm; operator new(ulong)                                    ; +0x19, 0x100373a89\nmov     rbx, rax                                                       ; +0x1e, 0x100373a8e\nmov     rdi, rax                                                       ; +0x21, 0x100373a91\ncall    cocos2d__CCSprite__CCSprite                                    ; +0x24, 0x100373a94\nlea     rax, off_10091D700                                             ; +0x29, 0x100373a99\nmov     [rbx], rax                                                     ; +0x30, 0x100373aa0\nlea     rax, off_10091DBD8                                             ; +0x33, 0x100373aa3\nmov     [rbx+140h], rax                                                ; +0x3a, 0x100373aaa\nlea     rax, off_10091DC58                                             ; +0x41, 0x100373ab1\nmov     [rbx+158h], rax                                                ; +0x48, 0x100373ab8\nmov     rdi, rbx                                                       ; +0x4f, 0x100373abf\nadd     rdi, 26Ch                                                      ; +0x52, 0x100373ac2\nxorps   xmm0, xmm0                                                     ; +0x59, 0x100373ac9\nmovups  xmmword ptr [rbx+258h], xmm0                                   ; +0x5c, 0x100373acc\nmov     byte ptr [rbx+268h], 0                                         ; +0x63, 0x100373ad3\ncall    sub_10028CF90                                                  ; +0x6a, 0x100373ada\nmov     qword ptr [rbx+278h], 0                                        ; +0x6f, 0x100373adf\nmovzx   ecx, r12b                                                      ; +0x7a, 0x100373aea\nmov     rdi, rbx                                                       ; +0x7e, 0x100373aee\nmov     rsi, r15                                                       ; +0x81, 0x100373af1\nmov     rdx, r14                                                       ; +0x84, 0x100373af4\ncall    CCPartAnimSprite__initWithAnimDesc                             ; +0x87, 0x100373af7\ntest    al, al                                                         ; +0x8c, 0x100373afc\njz      short loc_100373B0A                                            ; +0x8e, 0x100373afe\nmov     rdi, rbx                                                       ; +0x90, 0x100373b00\ncall    cocos2d__CCObject__autorelease                                 ; +0x93, 0x100373b03\njmp     short loc_100373B15                                            ; +0x98, 0x100373b08\nmov     rax, [rbx]                                                     ; +0x9a, 0x100373b0a\nmov     rdi, rbx                                                       ; +0x9d, 0x100373b0d\ncall    qword ptr [rax+10h]                                            ; +0xa0, 0x100373b10\nxor     ebx, ebx                                                       ; +0xa3, 0x100373b13\nmov     rax, rbx                                                       ; +0xa5, 0x100373b15\npop     rbx                                                            ; +0xa8, 0x100373b18\npop     r12                                                            ; +0xa9, 0x100373b19\npop     r14                                                            ; +0xab, 0x100373b1b\npop     r15                                                            ; +0xad, 0x100373b1d\npop     rbp                                                            ; +0xaf, 0x100373b1f\nretn                                                                   ; +0xb0, 0x100373b20", "xrefs": ["CCAnimatedSprite::loadType @ 0x100350598"], "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"}