{"type": "func", "start": 4299692592, "end": 4299692730, "name": "CCSpritePlus::createWithSpriteFrame", "pseudocode": "// \n// CCSpritePlus::createWithSpriteFrame from 0x100481a30 to 0x100481aba (138 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\nCCSpritePlus *__fastcall CCSpritePlus::createWithSpriteFrame(cocos2d::CCSpriteFrame *a1)\n{\n  __int64 v1; // rsi\n  char *v2; // rbx\n  __int64 (__fastcall **v3)(); // rax\n\n  v2 = (char *)operator new(0x270u);\n  cocos2d::CCSprite::CCSprite((__int64)v2, v1);\n  v3 = off_10093C5C8;\n  *(_QWORD *)v2 = off_10093C5C8;\n  *((_QWORD *)v2 + 40) = off_10093CAB0;\n  *((_QWORD *)v2 + 43) = off_10093CB30;\n  *(_OWORD *)(v2 + 600) = 0;\n  *(_DWORD *)(v2 + 615) = 0;\n  if ( !a1 )\n    goto LABEL_5;\n  if ( !cocos2d::CCSprite::initWithSpriteFrame((cocos2d::CCSprite *)v2, a1) )\n  {\n    v3 = *(__int64 (__fastcall ***)())v2;\nLABEL_5:\n    ((void (__fastcall *)(char *))v3[2])(v2);\n    return nullptr;\n  }\n  cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n  return (CCSpritePlus *)v2;\n}", "assembly": "; \n; CCSpritePlus::createWithSpriteFrame from 0x100481a30 to 0x100481aba (138 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, 0x100481a30\nmov     rbp, rsp                                                       ; +0x1, 0x100481a31\npush    r14                                                            ; +0x4, 0x100481a34\npush    rbx                                                            ; +0x6, 0x100481a36\nmov     r14, rdi                                                       ; +0x7, 0x100481a37\nmov     edi, 270h; __sz                                                ; +0xa, 0x100481a3a\ncall    __Znwm; operator new(ulong)                                    ; +0xf, 0x100481a3f\nmov     rbx, rax                                                       ; +0x14, 0x100481a44\nmov     rdi, rax                                                       ; +0x17, 0x100481a47\ncall    cocos2d__CCSprite__CCSprite                                    ; +0x1a, 0x100481a4a\nlea     rax, off_10093C5C8                                             ; +0x1f, 0x100481a4f\nmov     [rbx], rax                                                     ; +0x26, 0x100481a56\nlea     rcx, off_10093CAB0                                             ; +0x29, 0x100481a59\nmov     [rbx+140h], rcx                                                ; +0x30, 0x100481a60\nlea     rcx, off_10093CB30                                             ; +0x37, 0x100481a67\nmov     [rbx+158h], rcx                                                ; +0x3e, 0x100481a6e\nxorps   xmm0, xmm0                                                     ; +0x45, 0x100481a75\nmovups  xmmword ptr [rbx+258h], xmm0                                   ; +0x48, 0x100481a78\nmov     dword ptr [rbx+267h], 0                                        ; +0x4f, 0x100481a7f\ntest    r14, r14                                                       ; +0x59, 0x100481a89\njz      short loc_100481AAA                                            ; +0x5c, 0x100481a8c\nmov     rdi, rbx                                                       ; +0x5e, 0x100481a8e\nmov     rsi, r14                                                       ; +0x61, 0x100481a91\ncall    cocos2d__CCSprite__initWithSpriteFrame                         ; +0x64, 0x100481a94\ntest    al, al                                                         ; +0x69, 0x100481a99\njz      short loc_100481AA7                                            ; +0x6b, 0x100481a9b\nmov     rdi, rbx                                                       ; +0x6d, 0x100481a9d\ncall    cocos2d__CCObject__autorelease                                 ; +0x70, 0x100481aa0\njmp     short loc_100481AB2                                            ; +0x75, 0x100481aa5\nmov     rax, [rbx]                                                     ; +0x77, 0x100481aa7\nmov     rdi, rbx                                                       ; +0x7a, 0x100481aaa\ncall    qword ptr [rax+10h]                                            ; +0x7d, 0x100481aad\nxor     ebx, ebx                                                       ; +0x80, 0x100481ab0\nmov     rax, rbx                                                       ; +0x82, 0x100481ab2\npop     rbx                                                            ; +0x85, 0x100481ab5\npop     r14                                                            ; +0x86, 0x100481ab6\npop     rbp                                                            ; +0x88, 0x100481ab8\nretn                                                                   ; +0x89, 0x100481ab9", "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"}