{"type": "func", "start": 4297684256, "end": 4297684455, "name": "CreatorLayer::create", "pseudocode": "// \n// CreatorLayer::create from 0x100297520 to 0x1002975e7 (199 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nCreatorLayer *__fastcall CreatorLayer::create()\n{\n  char *v0; // rbx\n\n  v0 = (char *)operator new(0x1C0u);\n  cocos2d::CCLayer::CCLayer(v0);\n  *(_QWORD *)v0 = off_1008F78A0;\n  *((_QWORD *)v0 + 40) = off_1008F7D30;\n  *((_QWORD *)v0 + 41) = &off_1008F7DA0;\n  *((_QWORD *)v0 + 42) = off_1008F7DB8;\n  *((_QWORD *)v0 + 43) = off_1008F7DD8;\n  *((_QWORD *)v0 + 44) = off_1008F7DF8;\n  *((_QWORD *)v0 + 51) = &off_1008F7E20;\n  *((_QWORD *)v0 + 52) = &off_1008F7E38;\n  *(_OWORD *)(v0 + 424) = 0;\n  *((_QWORD *)v0 + 55) = 0xFFFFFFFFLL;\n  if ( CreatorLayer::init((CreatorLayer *)v0) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);\n    return nullptr;\n  }\n  return (CreatorLayer *)v0;\n}", "assembly": "; \n; CreatorLayer::create from 0x100297520 to 0x1002975e7 (199 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x100297520\nmov     rbp, rsp                                                       ; +0x1, 0x100297521\npush    r14                                                            ; +0x4, 0x100297524\npush    rbx                                                            ; +0x6, 0x100297526\nmov     edi, 1C0h; __sz                                                ; +0x7, 0x100297527\ncall    __Znwm; operator new(ulong)                                    ; +0xc, 0x10029752c\nmov     rbx, rax                                                       ; +0x11, 0x100297531\nmov     rdi, rax                                                       ; +0x14, 0x100297534\ncall    cocos2d__CCLayer__CCLayer                                      ; +0x17, 0x100297537\nlea     rax, off_1008F78A0                                             ; +0x1c, 0x10029753c\nmov     [rbx], rax                                                     ; +0x23, 0x100297543\nlea     rax, off_1008F7D30                                             ; +0x26, 0x100297546\nmov     [rbx+140h], rax                                                ; +0x2d, 0x10029754d\nlea     rax, off_1008F7DA0                                             ; +0x34, 0x100297554\nmov     [rbx+148h], rax                                                ; +0x3b, 0x10029755b\nlea     rax, off_1008F7DB8                                             ; +0x42, 0x100297562\nmov     [rbx+150h], rax                                                ; +0x49, 0x100297569\nlea     rax, off_1008F7DD8                                             ; +0x50, 0x100297570\nmov     [rbx+158h], rax                                                ; +0x57, 0x100297577\nlea     rax, off_1008F7DF8                                             ; +0x5e, 0x10029757e\nmov     [rbx+160h], rax                                                ; +0x65, 0x100297585\nlea     rax, off_1008F7E20                                             ; +0x6c, 0x10029758c\nmov     [rbx+198h], rax                                                ; +0x73, 0x100297593\nlea     rax, off_1008F7E38                                             ; +0x7a, 0x10029759a\nmov     [rbx+1A0h], rax                                                ; +0x81, 0x1002975a1\nxorps   xmm0, xmm0                                                     ; +0x88, 0x1002975a8\nmovups  xmmword ptr [rbx+1A8h], xmm0                                   ; +0x8b, 0x1002975ab\nmov     eax, 0FFFFFFFFh                                                ; +0x92, 0x1002975b2\nmov     [rbx+1B8h], rax                                                ; +0x97, 0x1002975b7\nmov     rdi, rbx                                                       ; +0x9e, 0x1002975be\ncall    CreatorLayer__init                                             ; +0xa1, 0x1002975c1\ntest    al, al                                                         ; +0xa6, 0x1002975c6\njz      short loc_1002975D4                                            ; +0xa8, 0x1002975c8\nmov     rdi, rbx                                                       ; +0xaa, 0x1002975ca\ncall    cocos2d__CCObject__autorelease                                 ; +0xad, 0x1002975cd\njmp     short loc_1002975DF                                            ; +0xb2, 0x1002975d2\nmov     rax, [rbx]                                                     ; +0xb4, 0x1002975d4\nmov     rdi, rbx                                                       ; +0xb7, 0x1002975d7\ncall    qword ptr [rax+10h]                                            ; +0xba, 0x1002975da\nxor     ebx, ebx                                                       ; +0xbd, 0x1002975dd\nmov     rax, rbx                                                       ; +0xbf, 0x1002975df\npop     rbx                                                            ; +0xc2, 0x1002975e2\npop     r14                                                            ; +0xc3, 0x1002975e3\npop     rbp                                                            ; +0xc5, 0x1002975e5\nretn                                                                   ; +0xc6, 0x1002975e6", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}