{"type": "func", "start": 4299648048, "end": 4299648185, "name": "CCSpriteCOpacity::createWithSpriteFrameName", "pseudocode": "// \n// CCSpriteCOpacity::createWithSpriteFrameName from 0x100476c30 to 0x100476cb9 (137 bytes)\n// \n// 0 xrefs:\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\n__int64 (__fastcall ***__fastcall CCSpriteCOpacity::createWithSpriteFrameName(const char *a1))()\n{\n  __int64 v1; // rax\n  __int64 v2; // r14\n  __int64 (__fastcall ***v3)(); // rbx\n  __int64 (__fastcall **v4)(); // rax\n\n  v1 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n  v2 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v1, a1);\n  v3 = (__int64 (__fastcall ***)())operator new(0x258u);\n  cocos2d::CCSprite::CCSprite((__int64)v3);\n  v4 = off_100B46DA0;\n  *v3 = off_100B46DA0;\n  v3[40] = off_100B47288;\n  v3[43] = off_100B47308;\n  if ( !v2 )\n    goto LABEL_5;\n  if ( !(unsigned __int8)cocos2d::CCSprite::initWithSpriteFrame((__int64)v3, v2) )\n  {\n    v4 = *v3;\nLABEL_5:\n    ((void (__fastcall *)(__int64 (__fastcall ***)()))v4[2])(v3);\n    return nullptr;\n  }\n  cocos2d::CCObject::autorelease(v3);\n  return v3;\n}", "assembly": "; \n; CCSpriteCOpacity::createWithSpriteFrameName from 0x100476c30 to 0x100476cb9 (137 bytes)\n; \n; 0 xrefs:\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, 0x100476c30\nmov     rbp, rsp                                                       ; +0x1, 0x100476c31\npush    r14                                                            ; +0x4, 0x100476c34\npush    rbx                                                            ; +0x6, 0x100476c36\nmov     rbx, rdi                                                       ; +0x7, 0x100476c37\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0xa, 0x100476c3a\nmov     rdi, rax                                                       ; +0xf, 0x100476c3f\nmov     rsi, rbx                                                       ; +0x12, 0x100476c42\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x15, 0x100476c45\nmov     r14, rax                                                       ; +0x1a, 0x100476c4a\nmov     edi, 258h; __sz                                                ; +0x1d, 0x100476c4d\ncall    __Znwm; operator new(ulong)                                    ; +0x22, 0x100476c52\nmov     rbx, rax                                                       ; +0x27, 0x100476c57\nmov     rdi, rax                                                       ; +0x2a, 0x100476c5a\ncall    cocos2d__CCSprite__CCSprite                                    ; +0x2d, 0x100476c5d\nlea     rax, off_100B46DA0                                             ; +0x32, 0x100476c62\nmov     [rbx], rax                                                     ; +0x39, 0x100476c69\nlea     rcx, off_100B47288                                             ; +0x3c, 0x100476c6c\nmov     [rbx+140h], rcx                                                ; +0x43, 0x100476c73\nlea     rcx, off_100B47308                                             ; +0x4a, 0x100476c7a\nmov     [rbx+158h], rcx                                                ; +0x51, 0x100476c81\ntest    r14, r14                                                       ; +0x58, 0x100476c88\njz      short loc_100476CA9                                            ; +0x5b, 0x100476c8b\nmov     rdi, rbx                                                       ; +0x5d, 0x100476c8d\nmov     rsi, r14                                                       ; +0x60, 0x100476c90\ncall    cocos2d__CCSprite__initWithSpriteFrame                         ; +0x63, 0x100476c93\ntest    al, al                                                         ; +0x68, 0x100476c98\njz      short loc_100476CA6                                            ; +0x6a, 0x100476c9a\nmov     rdi, rbx                                                       ; +0x6c, 0x100476c9c\ncall    cocos2d__CCObject__autorelease                                 ; +0x6f, 0x100476c9f\njmp     short loc_100476CB1                                            ; +0x74, 0x100476ca4\nmov     rax, [rbx]                                                     ; +0x76, 0x100476ca6\nmov     rdi, rbx                                                       ; +0x79, 0x100476ca9\ncall    qword ptr [rax+10h]                                            ; +0x7c, 0x100476cac\nxor     ebx, ebx                                                       ; +0x7f, 0x100476caf\nmov     rax, rbx                                                       ; +0x81, 0x100476cb1\npop     rbx                                                            ; +0x84, 0x100476cb4\npop     r14                                                            ; +0x85, 0x100476cb5\npop     rbp                                                            ; +0x87, 0x100476cb7\nretn                                                                   ; +0x88, 0x100476cb8", "xrefs": [], "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"}