{"type": "func", "start": 6443034352, "end": 6443034491, "name": "cocos2d::CCSprite::create", "pseudocode": "// \n// cocos2d::CCSprite::create from 0x18008e6f0 to 0x18008e77b (139 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bfdf0\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:22:07 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCSprite *__fastcall cocos2d::CCSprite::create(const char *a1, const struct cocos2d::CCRect *a2)\n{\n  cocos2d::CCSprite *v4; // rax\n  cocos2d::CCObject *v5; // rbx\n\n  v4 = (cocos2d::CCSprite *)sub_1800E4AC0(0x258u);\n  if ( v4 )\n    v5 = cocos2d::CCSprite::CCSprite(v4);\n  else\n    v5 = nullptr;\n  if ( v5 )\n  {\n    if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCObject *, const char *, const struct cocos2d::CCRect *))(*(_QWORD *)v5 + 928LL))(\n           v5,\n           a1,\n           a2) )\n    {\n      cocos2d::CCObject::autorelease(v5);\n      return v5;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCSprite::create from 0x18008e6f0 to 0x18008e77b (139 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bfdf0\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:22:07 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18008e6f0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18008e6f5\npush    rdi                                                            ; +0xa, 0x18008e6fa\nsub     rsp, 20h                                                       ; +0xb, 0x18008e6fb\nmov     rdi, rdx                                                       ; +0xf, 0x18008e6ff\nmov     rsi, rcx                                                       ; +0x12, 0x18008e702\nmov     ecx, 258h; Size                                                ; +0x15, 0x18008e705\ncall    sub_1800E4AC0                                                  ; +0x1a, 0x18008e70a\nmov     [rsp+28h+arg_10], rax                                          ; +0x1f, 0x18008e70f\ntest    rax, rax                                                       ; +0x24, 0x18008e714\njz      short loc_18008E726                                            ; +0x27, 0x18008e717\nmov     rcx, rax; this                                                 ; +0x29, 0x18008e719\ncall    ??0CCSprite@cocos2d@@QEAA@XZ; cocos2d::CCSprite::CCSprite(void) ; +0x2c, 0x18008e71c\nmov     rbx, rax                                                       ; +0x31, 0x18008e721\njmp     short loc_18008E728                                            ; +0x34, 0x18008e724\nxor     ebx, ebx                                                       ; +0x36, 0x18008e726\ntest    rbx, rbx                                                       ; +0x38, 0x18008e728\njz      short loc_18008E769                                            ; +0x3b, 0x18008e72b\nmov     rax, [rbx]                                                     ; +0x3d, 0x18008e72d\nmov     r8, rdi                                                        ; +0x40, 0x18008e730\nmov     rdx, rsi                                                       ; +0x43, 0x18008e733\nmov     rcx, rbx                                                       ; +0x46, 0x18008e736\ncall    qword ptr [rax+3A0h]                                           ; +0x49, 0x18008e739\nmov     rcx, rbx; this                                                 ; +0x4f, 0x18008e73f\ntest    al, al                                                         ; +0x52, 0x18008e742\njz      short loc_18008E75E                                            ; +0x54, 0x18008e744\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x56, 0x18008e746\nmov     rax, rbx                                                       ; +0x5b, 0x18008e74b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5e, 0x18008e74e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x63, 0x18008e753\nadd     rsp, 20h                                                       ; +0x68, 0x18008e758\npop     rdi                                                            ; +0x6c, 0x18008e75c\nretn                                                                   ; +0x6d, 0x18008e75d\nmov     rax, [rbx]                                                     ; +0x6e, 0x18008e75e\nmov     edx, 1                                                         ; +0x71, 0x18008e761\ncall    qword ptr [rax+8]                                              ; +0x76, 0x18008e766\nxor     eax, eax                                                       ; +0x79, 0x18008e769\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7b, 0x18008e76b\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x80, 0x18008e770\nadd     rsp, 20h                                                       ; +0x85, 0x18008e775\npop     rdi                                                            ; +0x89, 0x18008e779\nretn                                                                   ; +0x8a, 0x18008e77a", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bfdf0"], "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"}