{"type": "func", "start": 4302061280, "end": 4302061448, "name": "CCSpriteGrayscale::create", "pseudocode": "// \n// CCSpriteGrayscale::create from 0x1006c3ee0 to 0x1006c3f88 (168 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:35:33 +0000\n// \n\n_QWORD *__fastcall CCSpriteGrayscale::create(__int64 a1, __int64 a2)\n{\n  _QWORD *v2; // rax\n  _QWORD *v3; // rbx\n  __int64 v4; // r15\n\n  v2 = operator new(0x298u, &std::nothrow);\n  if ( !v2 )\n    return nullptr;\n  v3 = v2;\n  __bzero(v2, 664);\n  cocos2d::CCSprite::CCSprite((__int64)v3);\n  *v3 = off_100B8DBB8;\n  v3[40] = off_100B8E0B8;\n  v3[43] = off_100B8E138;\n  if ( (*(_BYTE *)a1 & 1) != 0 )\n    v4 = *(_QWORD *)(a1 + 16);\n  else\n    v4 = a1 + 1;\n  if ( !(unsigned __int8)cocos2d::CCSprite::initWithFile((__int64)v3, v4, a2) )\n  {\n    (*(void (__fastcall **)(_QWORD *))(*v3 + 16LL))(v3);\n    return nullptr;\n  }\n  cocos2d::CCObject::autorelease((__int64)v3);\n  return v3;\n}", "assembly": "; \n; CCSpriteGrayscale::create from 0x1006c3ee0 to 0x1006c3f88 (168 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:35:33 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006c3ee0\nmov     rbp, rsp                                                       ; +0x1, 0x1006c3ee1\npush    r15                                                            ; +0x4, 0x1006c3ee4\npush    r14                                                            ; +0x6, 0x1006c3ee6\npush    rbx                                                            ; +0x8, 0x1006c3ee8\npush    rax                                                            ; +0x9, 0x1006c3ee9\nmov     r14, rsi                                                       ; +0xa, 0x1006c3eea\nmov     r15, rdi                                                       ; +0xd, 0x1006c3eed\nmov     rsi, cs:__ZSt7nothrow_ptr; std::nothrow_t *                    ; +0x10, 0x1006c3ef0\nmov     edi, 298h; __sz                                                ; +0x17, 0x1006c3ef7\ncall    __ZnwmRKSt9nothrow_t; operator new(ulong,std::nothrow_t const&) ; +0x1c, 0x1006c3efc\ntest    rax, rax                                                       ; +0x21, 0x1006c3f01\njz      short loc_1006C3F78                                            ; +0x24, 0x1006c3f04\nmov     rbx, rax                                                       ; +0x26, 0x1006c3f06\nmov     esi, 298h                                                      ; +0x29, 0x1006c3f09\nmov     rdi, rax                                                       ; +0x2e, 0x1006c3f0e\ncall    ___bzero                                                       ; +0x31, 0x1006c3f11\nmov     rdi, rbx                                                       ; +0x36, 0x1006c3f16\ncall    cocos2d__CCSprite__CCSprite                                    ; +0x39, 0x1006c3f19\nlea     rax, off_100B8DBB8                                             ; +0x3e, 0x1006c3f1e\nmov     [rbx], rax                                                     ; +0x45, 0x1006c3f25\nlea     rax, off_100B8E0B8                                             ; +0x48, 0x1006c3f28\nmov     [rbx+140h], rax                                                ; +0x4f, 0x1006c3f2f\nlea     rax, off_100B8E138                                             ; +0x56, 0x1006c3f36\nmov     [rbx+158h], rax                                                ; +0x5d, 0x1006c3f3d\ntest    byte ptr [r15], 1                                              ; +0x64, 0x1006c3f44\njz      short loc_1006C3F50                                            ; +0x68, 0x1006c3f48\nmov     r15, [r15+10h]                                                 ; +0x6a, 0x1006c3f4a\njmp     short loc_1006C3F53                                            ; +0x6e, 0x1006c3f4e\ninc     r15                                                            ; +0x70, 0x1006c3f50\nmov     rdi, rbx                                                       ; +0x73, 0x1006c3f53\nmov     rsi, r15                                                       ; +0x76, 0x1006c3f56\nmov     rdx, r14                                                       ; +0x79, 0x1006c3f59\ncall    cocos2d__CCSprite__initWithFile                                ; +0x7c, 0x1006c3f5c\ntest    al, al                                                         ; +0x81, 0x1006c3f61\njz      short loc_1006C3F6F                                            ; +0x83, 0x1006c3f63\nmov     rdi, rbx                                                       ; +0x85, 0x1006c3f65\ncall    cocos2d__CCObject__autorelease                                 ; +0x88, 0x1006c3f68\njmp     short loc_1006C3F7A                                            ; +0x8d, 0x1006c3f6d\nmov     rax, [rbx]                                                     ; +0x8f, 0x1006c3f6f\nmov     rdi, rbx                                                       ; +0x92, 0x1006c3f72\ncall    qword ptr [rax+10h]                                            ; +0x95, 0x1006c3f75\nxor     ebx, ebx                                                       ; +0x98, 0x1006c3f78\nmov     rax, rbx                                                       ; +0x9a, 0x1006c3f7a\nadd     rsp, 8                                                         ; +0x9d, 0x1006c3f7d\npop     rbx                                                            ; +0xa1, 0x1006c3f81\npop     r14                                                            ; +0xa2, 0x1006c3f82\npop     r15                                                            ; +0xa4, 0x1006c3f84\npop     rbp                                                            ; +0xa6, 0x1006c3f86\nretn                                                                   ; +0xa7, 0x1006c3f87", "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"}