{"type": "func", "start": 4299646000, "end": 4299646157, "name": "CCSpritePlus::createWithSpriteFrameName", "pseudocode": "// \n// CCSpritePlus::createWithSpriteFrameName from 0x100476430 to 0x1004764cd (157 bytes)\n// \n// 2 xrefs:\n// > GameObject::playShineEffect @ 0x10068ef29\n// > GameObject::playShineEffect @ 0x10068f077\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 12:30:35 +0000\n// \n\nchar *__fastcall CCSpritePlus::createWithSpriteFrameName(const char *a1)\n{\n  __int64 v1; // rax\n  __int64 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);\n  v4 = off_100B467E0;\n  *(_QWORD *)v3 = off_100B467E0;\n  *((_QWORD *)v3 + 40) = off_100B46CD8;\n  *((_QWORD *)v3 + 43) = off_100B46D58;\n  *(_OWORD *)(v3 + 600) = 0;\n  *(_DWORD *)(v3 + 615) = 0;\n  if ( !v2 )\n    goto LABEL_5;\n  if ( !(unsigned __int8)cocos2d::CCSprite::initWithSpriteFrame((__int64)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(v3);\n  return v3;\n}", "assembly": "; \n; CCSpritePlus::createWithSpriteFrameName from 0x100476430 to 0x1004764cd (157 bytes)\n; \n; 2 xrefs:\n; > GameObject::playShineEffect @ 0x10068ef29\n; > GameObject::playShineEffect @ 0x10068f077\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 12:30:35 +0000\n; \npush    rbp                                                            ; +0x0, 0x100476430\nmov     rbp, rsp                                                       ; +0x1, 0x100476431\npush    r14                                                            ; +0x4, 0x100476434\npush    rbx                                                            ; +0x6, 0x100476436\nmov     rbx, rdi                                                       ; +0x7, 0x100476437\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0xa, 0x10047643a\nmov     rdi, rax                                                       ; +0xf, 0x10047643f\nmov     rsi, rbx                                                       ; +0x12, 0x100476442\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x15, 0x100476445\nmov     r14, rax                                                       ; +0x1a, 0x10047644a\nmov     edi, 270h; __sz                                                ; +0x1d, 0x10047644d\ncall    __Znwm; operator new(ulong)                                    ; +0x22, 0x100476452\nmov     rbx, rax                                                       ; +0x27, 0x100476457\nmov     rdi, rax                                                       ; +0x2a, 0x10047645a\ncall    cocos2d__CCSprite__CCSprite                                    ; +0x2d, 0x10047645d\nlea     rax, off_100B467E0                                             ; +0x32, 0x100476462\nmov     [rbx], rax                                                     ; +0x39, 0x100476469\nlea     rcx, off_100B46CD8                                             ; +0x3c, 0x10047646c\nmov     [rbx+140h], rcx                                                ; +0x43, 0x100476473\nlea     rcx, off_100B46D58                                             ; +0x4a, 0x10047647a\nmov     [rbx+158h], rcx                                                ; +0x51, 0x100476481\nxorps   xmm0, xmm0                                                     ; +0x58, 0x100476488\nmovups  xmmword ptr [rbx+258h], xmm0                                   ; +0x5b, 0x10047648b\nmov     dword ptr [rbx+267h], 0                                        ; +0x62, 0x100476492\ntest    r14, r14                                                       ; +0x6c, 0x10047649c\njz      short loc_1004764BD                                            ; +0x6f, 0x10047649f\nmov     rdi, rbx                                                       ; +0x71, 0x1004764a1\nmov     rsi, r14                                                       ; +0x74, 0x1004764a4\ncall    cocos2d__CCSprite__initWithSpriteFrame                         ; +0x77, 0x1004764a7\ntest    al, al                                                         ; +0x7c, 0x1004764ac\njz      short loc_1004764BA                                            ; +0x7e, 0x1004764ae\nmov     rdi, rbx                                                       ; +0x80, 0x1004764b0\ncall    cocos2d__CCObject__autorelease                                 ; +0x83, 0x1004764b3\njmp     short loc_1004764C5                                            ; +0x88, 0x1004764b8\nmov     rax, [rbx]                                                     ; +0x8a, 0x1004764ba\nmov     rdi, rbx                                                       ; +0x8d, 0x1004764bd\ncall    qword ptr [rax+10h]                                            ; +0x90, 0x1004764c0\nxor     ebx, ebx                                                       ; +0x93, 0x1004764c3\nmov     rax, rbx                                                       ; +0x95, 0x1004764c5\npop     rbx                                                            ; +0x98, 0x1004764c8\npop     r14                                                            ; +0x99, 0x1004764c9\npop     rbp                                                            ; +0x9b, 0x1004764cb\nretn                                                                   ; +0x9c, 0x1004764cc", "xrefs": ["GameObject::playShineEffect @ 0x10068ef29", "GameObject::playShineEffect @ 0x10068f077"], "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"}