{"type": "func", "start": 4302061088, "end": 4302061241, "name": "CCSpriteGrayscale::create_1", "pseudocode": "// \n// CCSpriteGrayscale::create_1 from 0x1006c3e20 to 0x1006c3eb9 (153 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_1(__int64 a1)\n{\n  _QWORD *v1; // rax\n  _QWORD *v2; // rbx\n  __int64 v3; // r14\n\n  v1 = operator new(0x298u, &std::nothrow);\n  if ( !v1 )\n    return nullptr;\n  v2 = v1;\n  __bzero(v1, 664);\n  cocos2d::CCSprite::CCSprite((__int64)v2);\n  *v2 = off_100B8DBB8;\n  v2[40] = off_100B8E0B8;\n  v2[43] = off_100B8E138;\n  if ( (*(_BYTE *)a1 & 1) != 0 )\n    v3 = *(_QWORD *)(a1 + 16);\n  else\n    v3 = a1 + 1;\n  if ( !(unsigned __int8)cocos2d::CCSprite::initWithFile_1((__int64)v2, v3) )\n  {\n    (*(void (__fastcall **)(_QWORD *))(*v2 + 16LL))(v2);\n    return nullptr;\n  }\n  cocos2d::CCObject::autorelease((__int64)v2);\n  return v2;\n}", "assembly": "; \n; CCSpriteGrayscale::create_1 from 0x1006c3e20 to 0x1006c3eb9 (153 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, 0x1006c3e20\nmov     rbp, rsp                                                       ; +0x1, 0x1006c3e21\npush    r14                                                            ; +0x4, 0x1006c3e24\npush    rbx                                                            ; +0x6, 0x1006c3e26\nmov     r14, rdi                                                       ; +0x7, 0x1006c3e27\nmov     rsi, cs:__ZSt7nothrow_ptr; std::nothrow_t *                    ; +0xa, 0x1006c3e2a\nmov     edi, 298h; __sz                                                ; +0x11, 0x1006c3e31\ncall    __ZnwmRKSt9nothrow_t; operator new(ulong,std::nothrow_t const&) ; +0x16, 0x1006c3e36\ntest    rax, rax                                                       ; +0x1b, 0x1006c3e3b\njz      short loc_1006C3EAF                                            ; +0x1e, 0x1006c3e3e\nmov     rbx, rax                                                       ; +0x20, 0x1006c3e40\nmov     esi, 298h                                                      ; +0x23, 0x1006c3e43\nmov     rdi, rax                                                       ; +0x28, 0x1006c3e48\ncall    ___bzero                                                       ; +0x2b, 0x1006c3e4b\nmov     rdi, rbx                                                       ; +0x30, 0x1006c3e50\ncall    cocos2d__CCSprite__CCSprite                                    ; +0x33, 0x1006c3e53\nlea     rax, off_100B8DBB8                                             ; +0x38, 0x1006c3e58\nmov     [rbx], rax                                                     ; +0x3f, 0x1006c3e5f\nlea     rax, off_100B8E0B8                                             ; +0x42, 0x1006c3e62\nmov     [rbx+140h], rax                                                ; +0x49, 0x1006c3e69\nlea     rax, off_100B8E138                                             ; +0x50, 0x1006c3e70\nmov     [rbx+158h], rax                                                ; +0x57, 0x1006c3e77\ntest    byte ptr [r14], 1                                              ; +0x5e, 0x1006c3e7e\njz      short loc_1006C3E8A                                            ; +0x62, 0x1006c3e82\nmov     r14, [r14+10h]                                                 ; +0x64, 0x1006c3e84\njmp     short loc_1006C3E8D                                            ; +0x68, 0x1006c3e88\ninc     r14                                                            ; +0x6a, 0x1006c3e8a\nmov     rdi, rbx                                                       ; +0x6d, 0x1006c3e8d\nmov     rsi, r14                                                       ; +0x70, 0x1006c3e90\ncall    cocos2d__CCSprite__initWithFile_1                              ; +0x73, 0x1006c3e93\ntest    al, al                                                         ; +0x78, 0x1006c3e98\njz      short loc_1006C3EA6                                            ; +0x7a, 0x1006c3e9a\nmov     rdi, rbx                                                       ; +0x7c, 0x1006c3e9c\ncall    cocos2d__CCObject__autorelease                                 ; +0x7f, 0x1006c3e9f\njmp     short loc_1006C3EB1                                            ; +0x84, 0x1006c3ea4\nmov     rax, [rbx]                                                     ; +0x86, 0x1006c3ea6\nmov     rdi, rbx                                                       ; +0x89, 0x1006c3ea9\ncall    qword ptr [rax+10h]                                            ; +0x8c, 0x1006c3eac\nxor     ebx, ebx                                                       ; +0x8f, 0x1006c3eaf\nmov     rax, rbx                                                       ; +0x91, 0x1006c3eb1\npop     rbx                                                            ; +0x94, 0x1006c3eb4\npop     r14                                                            ; +0x95, 0x1006c3eb5\npop     rbp                                                            ; +0x97, 0x1006c3eb7\nretn                                                                   ; +0x98, 0x1006c3eb8", "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"}