{"type": "func", "start": 4298589632, "end": 4298589786, "name": "CCSpritePart::create", "pseudocode": "// \n// CCSpritePart::create from 0x1003745c0 to 0x10037465a (154 bytes)\n// \n// 0 xrefs:\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\nCCSpritePart *__fastcall CCSpritePart::create(cocos2d::CCTexture2D *a1)\n{\n  __int64 v1; // rsi\n  char *v2; // rbx\n\n  v2 = (char *)operator new(0x290u);\n  cocos2d::CCSprite::CCSprite((__int64)v2, v1);\n  *(_OWORD *)(v2 + 600) = 0;\n  *(_DWORD *)(v2 + 615) = 0;\n  *(_QWORD *)v2 = off_10091DCA0;\n  *((_QWORD *)v2 + 40) = off_10091E188;\n  *((_QWORD *)v2 + 43) = off_10091E208;\n  v2[619] = 0;\n  *((_OWORD *)v2 + 39) = 0;\n  *((_OWORD *)v2 + 40) = 0;\n  if ( CCSpritePlus::initWithTexture((CCSpritePlus *)v2, a1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);\n    return nullptr;\n  }\n  return (CCSpritePart *)v2;\n}", "assembly": "; \n; CCSpritePart::create from 0x1003745c0 to 0x10037465a (154 bytes)\n; \n; 0 xrefs:\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, 0x1003745c0\nmov     rbp, rsp                                                       ; +0x1, 0x1003745c1\npush    r14                                                            ; +0x4, 0x1003745c4\npush    rbx                                                            ; +0x6, 0x1003745c6\nmov     r14, rdi                                                       ; +0x7, 0x1003745c7\nmov     edi, 290h; __sz                                                ; +0xa, 0x1003745ca\ncall    __Znwm; operator new(ulong)                                    ; +0xf, 0x1003745cf\nmov     rbx, rax                                                       ; +0x14, 0x1003745d4\nmov     rdi, rax                                                       ; +0x17, 0x1003745d7\ncall    cocos2d__CCSprite__CCSprite                                    ; +0x1a, 0x1003745da\nxorps   xmm0, xmm0                                                     ; +0x1f, 0x1003745df\nmovups  xmmword ptr [rbx+258h], xmm0                                   ; +0x22, 0x1003745e2\nmov     dword ptr [rbx+267h], 0                                        ; +0x29, 0x1003745e9\nlea     rax, off_10091DCA0                                             ; +0x33, 0x1003745f3\nmov     [rbx], rax                                                     ; +0x3a, 0x1003745fa\nlea     rax, off_10091E188                                             ; +0x3d, 0x1003745fd\nmov     [rbx+140h], rax                                                ; +0x44, 0x100374604\nlea     rax, off_10091E208                                             ; +0x4b, 0x10037460b\nmov     [rbx+158h], rax                                                ; +0x52, 0x100374612\nmov     byte ptr [rbx+26Bh], 0                                         ; +0x59, 0x100374619\nmovups  xmmword ptr [rbx+270h], xmm0                                   ; +0x60, 0x100374620\nmovups  xmmword ptr [rbx+280h], xmm0                                   ; +0x67, 0x100374627\nmov     rdi, rbx                                                       ; +0x6e, 0x10037462e\nmov     rsi, r14                                                       ; +0x71, 0x100374631\ncall    CCSpritePlus__initWithTexture                                  ; +0x74, 0x100374634\ntest    al, al                                                         ; +0x79, 0x100374639\njz      short loc_100374647                                            ; +0x7b, 0x10037463b\nmov     rdi, rbx                                                       ; +0x7d, 0x10037463d\ncall    cocos2d__CCObject__autorelease                                 ; +0x80, 0x100374640\njmp     short loc_100374652                                            ; +0x85, 0x100374645\nmov     rax, [rbx]                                                     ; +0x87, 0x100374647\nmov     rdi, rbx                                                       ; +0x8a, 0x10037464a\ncall    qword ptr [rax+10h]                                            ; +0x8d, 0x10037464d\nxor     ebx, ebx                                                       ; +0x90, 0x100374650\nmov     rax, rbx                                                       ; +0x92, 0x100374652\npop     rbx                                                            ; +0x95, 0x100374655\npop     r14                                                            ; +0x96, 0x100374656\npop     rbp                                                            ; +0x98, 0x100374658\nretn                                                                   ; +0x99, 0x100374659", "xrefs": [], "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"}