{"type": "func", "start": 6442969904, "end": 6442970058, "name": "cocos2d::CCImage::_initWithRawData", "pseudocode": "// \n// cocos2d::CCImage::_initWithRawData from 0x18007eb30 to 0x18007ebca (154 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCImage::initWithImageData @ 0x18007fc33\n// > <???> @ 0x1801453d0\n// > <???> @ 0x1801453e4\n// > <???> @ 0x1801453f4\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bf028\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 11:22:01 +0000\n// \n\nbool __fastcall cocos2d::CCImage::_initWithRawData(\n        cocos2d::CCImage *this,\n        void *a2,\n        __int64 a3,\n        int a4,\n        int a5,\n        int a6,\n        bool a7)\n{\n  size_t v9; // rdi\n  void *v10; // rax\n\n  if ( a4 && a5 )\n  {\n    *((_WORD *)this + 28) = a4;\n    *((_DWORD *)this + 15) = a6;\n    *((_WORD *)this + 29) = a5;\n    *((_BYTE *)this + 72) = 1;\n    *((_BYTE *)this + 73) = a7;\n    v9 = 4 * a5 * a4;\n    v10 = (void *)sub_1800E4C6C(v9);\n    *((_QWORD *)this + 8) = v10;\n    if ( v10 )\n    {\n      memcpy(v10, a2, v9);\n      LOBYTE(v10) = 1;\n    }\n  }\n  else\n  {\n    LOBYTE(v10) = 0;\n  }\n  return (char)v10;\n}", "assembly": "; \n; cocos2d::CCImage::_initWithRawData from 0x18007eb30 to 0x18007ebca (154 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCImage::initWithImageData @ 0x18007fc33\n; > <???> @ 0x1801453d0\n; > <???> @ 0x1801453e4\n; > <???> @ 0x1801453f4\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bf028\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 11:22:01 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18007eb30\npush    rsi                                                            ; +0x5, 0x18007eb35\nsub     rsp, 20h                                                       ; +0x6, 0x18007eb36\nmov     rsi, rdx                                                       ; +0xa, 0x18007eb3a\nmov     rbx, rcx                                                       ; +0xd, 0x18007eb3d\ntest    r9d, r9d                                                       ; +0x10, 0x18007eb40\njz      short loc_18007EBBD                                            ; +0x13, 0x18007eb43\nmov     r8d, [rsp+28h+arg_20]                                          ; +0x15, 0x18007eb45\ntest    r8d, r8d                                                       ; +0x1a, 0x18007eb4a\njz      short loc_18007EBBD                                            ; +0x1d, 0x18007eb4d\nmov     eax, [rsp+28h+arg_28]                                          ; +0x1f, 0x18007eb4f\nmov     [rcx+38h], r9w                                                 ; +0x23, 0x18007eb53\nmov     [rcx+3Ch], eax                                                 ; +0x28, 0x18007eb58\nmovzx   eax, [rsp+28h+arg_30]                                          ; +0x2b, 0x18007eb5b\nimul    r9d, r8d                                                       ; +0x30, 0x18007eb60\nmov     [rcx+3Ah], r8w                                                 ; +0x34, 0x18007eb64\nmov     byte ptr [rcx+48h], 1                                          ; +0x39, 0x18007eb69\nmov     [rcx+49h], al                                                  ; +0x3d, 0x18007eb6d\nmov     [rsp+28h+arg_0], rdi                                           ; +0x40, 0x18007eb70\nshl     r9d, 2                                                         ; +0x45, 0x18007eb75\nmovsxd  rdi, r9d                                                       ; +0x49, 0x18007eb79\nmov     rcx, rdi; Size                                                 ; +0x4c, 0x18007eb7c\ncall    sub_1800E4C6C                                                  ; +0x4f, 0x18007eb7f\nmov     [rbx+40h], rax                                                 ; +0x54, 0x18007eb84\ntest    rax, rax                                                       ; +0x58, 0x18007eb88\njz      short loc_18007EBAD                                            ; +0x5b, 0x18007eb8b\nmov     r8, rdi; Size                                                  ; +0x5d, 0x18007eb8d\nmov     rdx, rsi; Src                                                  ; +0x60, 0x18007eb90\nmov     rcx, rax; void *                                               ; +0x63, 0x18007eb93\ncall    memcpy                                                         ; +0x66, 0x18007eb96\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x6b, 0x18007eb9b\nmov     al, 1                                                          ; +0x70, 0x18007eba0\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x72, 0x18007eba2\nadd     rsp, 20h                                                       ; +0x77, 0x18007eba7\npop     rsi                                                            ; +0x7b, 0x18007ebab\nretn                                                                   ; +0x7c, 0x18007ebac\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x7d, 0x18007ebad\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x82, 0x18007ebb2\nadd     rsp, 20h                                                       ; +0x87, 0x18007ebb7\npop     rsi                                                            ; +0x8b, 0x18007ebbb\nretn                                                                   ; +0x8c, 0x18007ebbc\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x8d, 0x18007ebbd\nxor     al, al                                                         ; +0x92, 0x18007ebc2\nadd     rsp, 20h                                                       ; +0x94, 0x18007ebc4\npop     rsi                                                            ; +0x98, 0x18007ebc8\nretn                                                                   ; +0x99, 0x18007ebc9", "xrefs": ["cocos2d::CCImage::initWithImageData @ 0x18007fc33", "<???> @ 0x1801453d0", "<???> @ 0x1801453e4", "<???> @ 0x1801453f4", "<???> @ 0x18014cf68", "<???> @ 0x1801bf028"], "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"}