{"type": "func", "start": 4299692752, "end": 4299692909, "name": "CCSpritePlus::createWithSpriteFrameName", "pseudocode": "// \n// CCSpritePlus::createWithSpriteFrameName from 0x100481ad0 to 0x100481b6d (157 bytes)\n// \n// 2 xrefs:\n// > GameObject::playShineEffect @ 0x1005bd7b9\n// > GameObject::playShineEffect @ 0x1005bd907\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::createWithSpriteFrameName(const char *a1)\n{\n  cocos2d::CCSpriteFrameCache *v1; // rax\n  cocos2d::CCSpriteFrame *v2; // r14\n  char *v3; // rbx\n  __int64 (__fastcall **v4)(); // rax\n\n  v1 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n  v2 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v1, a1);\n  v3 = (char *)operator new(0x270u);\n  cocos2d::CCSprite::CCSprite((__int64)v3, (__int64)a1);\n  v4 = off_10093C5C8;\n  *(_QWORD *)v3 = off_10093C5C8;\n  *((_QWORD *)v3 + 40) = off_10093CAB0;\n  *((_QWORD *)v3 + 43) = off_10093CB30;\n  *(_OWORD *)(v3 + 600) = 0;\n  *(_DWORD *)(v3 + 615) = 0;\n  if ( !v2 )\n    goto LABEL_5;\n  if ( !cocos2d::CCSprite::initWithSpriteFrame((cocos2d::CCSprite *)v3, v2) )\n  {\n    v4 = *(__int64 (__fastcall ***)())v3;\nLABEL_5:\n    ((void (__fastcall *)(char *))v4[2])(v3);\n    return nullptr;\n  }\n  cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);\n  return (CCSpritePlus *)v3;\n}", "assembly": "; \n; CCSpritePlus::createWithSpriteFrameName from 0x100481ad0 to 0x100481b6d (157 bytes)\n; \n; 2 xrefs:\n; > GameObject::playShineEffect @ 0x1005bd7b9\n; > GameObject::playShineEffect @ 0x1005bd907\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, 0x100481ad0\nmov     rbp, rsp                                                       ; +0x1, 0x100481ad1\npush    r14                                                            ; +0x4, 0x100481ad4\npush    rbx                                                            ; +0x6, 0x100481ad6\nmov     rbx, rdi                                                       ; +0x7, 0x100481ad7\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0xa, 0x100481ada\nmov     rdi, rax                                                       ; +0xf, 0x100481adf\nmov     rsi, rbx                                                       ; +0x12, 0x100481ae2\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x15, 0x100481ae5\nmov     r14, rax                                                       ; +0x1a, 0x100481aea\nmov     edi, 270h; __sz                                                ; +0x1d, 0x100481aed\ncall    __Znwm; operator new(ulong)                                    ; +0x22, 0x100481af2\nmov     rbx, rax                                                       ; +0x27, 0x100481af7\nmov     rdi, rax                                                       ; +0x2a, 0x100481afa\ncall    cocos2d__CCSprite__CCSprite                                    ; +0x2d, 0x100481afd\nlea     rax, off_10093C5C8                                             ; +0x32, 0x100481b02\nmov     [rbx], rax                                                     ; +0x39, 0x100481b09\nlea     rcx, off_10093CAB0                                             ; +0x3c, 0x100481b0c\nmov     [rbx+140h], rcx                                                ; +0x43, 0x100481b13\nlea     rcx, off_10093CB30                                             ; +0x4a, 0x100481b1a\nmov     [rbx+158h], rcx                                                ; +0x51, 0x100481b21\nxorps   xmm0, xmm0                                                     ; +0x58, 0x100481b28\nmovups  xmmword ptr [rbx+258h], xmm0                                   ; +0x5b, 0x100481b2b\nmov     dword ptr [rbx+267h], 0                                        ; +0x62, 0x100481b32\ntest    r14, r14                                                       ; +0x6c, 0x100481b3c\njz      short loc_100481B5D                                            ; +0x6f, 0x100481b3f\nmov     rdi, rbx                                                       ; +0x71, 0x100481b41\nmov     rsi, r14                                                       ; +0x74, 0x100481b44\ncall    cocos2d__CCSprite__initWithSpriteFrame                         ; +0x77, 0x100481b47\ntest    al, al                                                         ; +0x7c, 0x100481b4c\njz      short loc_100481B5A                                            ; +0x7e, 0x100481b4e\nmov     rdi, rbx                                                       ; +0x80, 0x100481b50\ncall    cocos2d__CCObject__autorelease                                 ; +0x83, 0x100481b53\njmp     short loc_100481B65                                            ; +0x88, 0x100481b58\nmov     rax, [rbx]                                                     ; +0x8a, 0x100481b5a\nmov     rdi, rbx                                                       ; +0x8d, 0x100481b5d\ncall    qword ptr [rax+10h]                                            ; +0x90, 0x100481b60\nxor     ebx, ebx                                                       ; +0x93, 0x100481b63\nmov     rax, rbx                                                       ; +0x95, 0x100481b65\npop     rbx                                                            ; +0x98, 0x100481b68\npop     r14                                                            ; +0x99, 0x100481b69\npop     rbp                                                            ; +0x9b, 0x100481b6b\nretn                                                                   ; +0x9c, 0x100481b6c", "xrefs": ["GameObject::playShineEffect @ 0x1005bd7b9", "GameObject::playShineEffect @ 0x1005bd907"], "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"}