{"type": "func", "start": 4300312080, "end": 4300312266, "name": "CCBlockLayer::create", "pseudocode": "// \n// CCBlockLayer::create from 0x100518e10 to 0x100518eca (186 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:31:40 +0000\n// \n\n_QWORD *CCBlockLayer::create()\n{\n  _QWORD *v0; // rbx\n\n  v0 = operator new(0x228u);\n  cocos2d::CCLayerColor::CCLayerColor((__int64)v0);\n  *v0 = off_100B6C818;\n  v0[40] = off_100B6CD90;\n  v0[41] = &off_100B6CE00;\n  v0[42] = off_100B6CE18;\n  v0[43] = off_100B6CE38;\n  v0[44] = off_100B6CE60;\n  v0[51] = off_100B6CE90;\n  v0[54] = off_100B6CF10;\n  *((_WORD *)v0 + 272) = 0;\n  if ( (unsigned __int8)CCBlockLayer::init(v0) )\n  {\n    cocos2d::CCObject::autorelease((__int64)v0);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *))(*v0 + 16LL))(v0);\n    return nullptr;\n  }\n  return v0;\n}", "assembly": "; \n; CCBlockLayer::create from 0x100518e10 to 0x100518eca (186 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:31:40 +0000\n; \npush    rbp                                                            ; +0x0, 0x100518e10\nmov     rbp, rsp                                                       ; +0x1, 0x100518e11\npush    r14                                                            ; +0x4, 0x100518e14\npush    rbx                                                            ; +0x6, 0x100518e16\nmov     edi, 228h; __sz                                                ; +0x7, 0x100518e17\ncall    __Znwm; operator new(ulong)                                    ; +0xc, 0x100518e1c\nmov     rbx, rax                                                       ; +0x11, 0x100518e21\nmov     rdi, rax                                                       ; +0x14, 0x100518e24\ncall    cocos2d__CCLayerColor__CCLayerColor                            ; +0x17, 0x100518e27\nlea     rax, off_100B6C818                                             ; +0x1c, 0x100518e2c\nmov     [rbx], rax                                                     ; +0x23, 0x100518e33\nlea     rax, off_100B6CD90                                             ; +0x26, 0x100518e36\nmov     [rbx+140h], rax                                                ; +0x2d, 0x100518e3d\nlea     rax, off_100B6CE00                                             ; +0x34, 0x100518e44\nmov     [rbx+148h], rax                                                ; +0x3b, 0x100518e4b\nlea     rax, off_100B6CE18                                             ; +0x42, 0x100518e52\nmov     [rbx+150h], rax                                                ; +0x49, 0x100518e59\nlea     rax, off_100B6CE38                                             ; +0x50, 0x100518e60\nmov     [rbx+158h], rax                                                ; +0x57, 0x100518e67\nlea     rax, off_100B6CE60                                             ; +0x5e, 0x100518e6e\nmov     [rbx+160h], rax                                                ; +0x65, 0x100518e75\nlea     rax, off_100B6CE90                                             ; +0x6c, 0x100518e7c\nmov     [rbx+198h], rax                                                ; +0x73, 0x100518e83\nlea     rax, off_100B6CF10                                             ; +0x7a, 0x100518e8a\nmov     [rbx+1B0h], rax                                                ; +0x81, 0x100518e91\nmov     word ptr [rbx+220h], 0                                         ; +0x88, 0x100518e98\nmov     rdi, rbx                                                       ; +0x91, 0x100518ea1\ncall    CCBlockLayer__init                                             ; +0x94, 0x100518ea4\ntest    al, al                                                         ; +0x99, 0x100518ea9\njz      short loc_100518EB7                                            ; +0x9b, 0x100518eab\nmov     rdi, rbx                                                       ; +0x9d, 0x100518ead\ncall    cocos2d__CCObject__autorelease                                 ; +0xa0, 0x100518eb0\njmp     short loc_100518EC2                                            ; +0xa5, 0x100518eb5\nmov     rax, [rbx]                                                     ; +0xa7, 0x100518eb7\nmov     rdi, rbx                                                       ; +0xaa, 0x100518eba\ncall    qword ptr [rax+10h]                                            ; +0xad, 0x100518ebd\nxor     ebx, ebx                                                       ; +0xb0, 0x100518ec0\nmov     rax, rbx                                                       ; +0xb2, 0x100518ec2\npop     rbx                                                            ; +0xb5, 0x100518ec5\npop     r14                                                            ; +0xb6, 0x100518ec6\npop     rbp                                                            ; +0xb8, 0x100518ec8\nretn                                                                   ; +0xb9, 0x100518ec9", "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"}