{"type": "func", "start": 6443021792, "end": 6443021887, "name": "cocos2d::CCSprite::create", "pseudocode": "// \n// cocos2d::CCSprite::create from 0x18008b5e0 to 0x18008b63f (95 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5b2c\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\nstruct cocos2d::CCSprite *__fastcall cocos2d::CCSprite::create()\n{\n  cocos2d::CCSprite *v0; // rax\n  cocos2d::CCSprite *v1; // rbx\n\n  v0 = (cocos2d::CCSprite *)operator new(0x258u);\n  if ( v0 )\n    v1 = cocos2d::CCSprite::CCSprite(v0);\n  else\n    v1 = nullptr;\n  if ( v1 )\n  {\n    if ( ((unsigned __int8 (__fastcall *)(cocos2d::CCSprite *))v1->init)(v1) )\n    {\n      cocos2d::CCObject::autorelease(v1);\n      return v1;\n    }\n    ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v1->~CCSprite)(v1, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCSprite::create from 0x18008b5e0 to 0x18008b63f (95 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5b2c\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    rbx                                                            ; +0x0, 0x18008b5e0\nsub     rsp, 20h                                                       ; +0x2, 0x18008b5e2\nmov     ecx, 258h; Size                                                ; +0x6, 0x18008b5e6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb, 0x18008b5eb\nmov     [rsp+28h+arg_0], rax                                           ; +0x10, 0x18008b5f0\ntest    rax, rax                                                       ; +0x15, 0x18008b5f5\njz      short loc_18008B607                                            ; +0x18, 0x18008b5f8\nmov     rcx, rax; this                                                 ; +0x1a, 0x18008b5fa\ncall    ??0CCSprite@cocos2d@@QEAA@XZ; cocos2d::CCSprite::CCSprite(void) ; +0x1d, 0x18008b5fd\nmov     rbx, rax                                                       ; +0x22, 0x18008b602\njmp     short loc_18008B609                                            ; +0x25, 0x18008b605\nxor     ebx, ebx                                                       ; +0x27, 0x18008b607\ntest    rbx, rbx                                                       ; +0x29, 0x18008b609\njz      short loc_18008B637                                            ; +0x2c, 0x18008b60c\nmov     rax, [rbx]                                                     ; +0x2e, 0x18008b60e\nmov     rcx, rbx                                                       ; +0x31, 0x18008b611\ncall    qword ptr [rax+48h]                                            ; +0x34, 0x18008b614\nmov     rcx, rbx; this                                                 ; +0x37, 0x18008b617\ntest    al, al                                                         ; +0x3a, 0x18008b61a\njz      short loc_18008B62C                                            ; +0x3c, 0x18008b61c\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x3e, 0x18008b61e\nmov     rax, rbx                                                       ; +0x43, 0x18008b623\nadd     rsp, 20h                                                       ; +0x46, 0x18008b626\npop     rbx                                                            ; +0x4a, 0x18008b62a\nretn                                                                   ; +0x4b, 0x18008b62b\nmov     rax, [rbx]                                                     ; +0x4c, 0x18008b62c\nmov     edx, 1                                                         ; +0x4f, 0x18008b62f\ncall    qword ptr [rax+8]                                              ; +0x54, 0x18008b634\nxor     eax, eax                                                       ; +0x57, 0x18008b637\nadd     rsp, 20h                                                       ; +0x59, 0x18008b639\npop     rbx                                                            ; +0x5d, 0x18008b63d\nretn                                                                   ; +0x5e, 0x18008b63e", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b5b2c"], "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"}