{"type": "func", "start": 4297658528, "end": 4297658762, "name": "EditorPauseLayer::create", "pseudocode": "// \n// EditorPauseLayer::create from 0x1002910a0 to 0x10029118a (234 bytes)\n// \n// 1 xrefs:\n// > EditorUI::onPause @ 0x10002a83d\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\nEditorPauseLayer *__fastcall EditorPauseLayer::create(LevelEditorLayer *a1)\n{\n  char *v1; // rbx\n\n  v1 = (char *)operator new(0x270u);\n  cocos2d::CCLayerColor::CCLayerColor(v1);\n  *((_WORD *)v1 + 272) = 0;\n  *(_QWORD *)v1 = off_1008F7058;\n  *((_QWORD *)v1 + 40) = off_1008F75C8;\n  *((_QWORD *)v1 + 41) = &off_1008F7638;\n  *((_QWORD *)v1 + 42) = off_1008F7650;\n  *((_QWORD *)v1 + 43) = off_1008F7670;\n  *((_QWORD *)v1 + 44) = off_1008F7690;\n  *((_QWORD *)v1 + 51) = off_1008F76B8;\n  *((_QWORD *)v1 + 54) = off_1008F7738;\n  *((_QWORD *)v1 + 69) = &off_1008F7758;\n  v1[560] = 0;\n  *(_OWORD *)(v1 + 568) = 0;\n  *((_QWORD *)v1 + 73) = 0;\n  if ( EditorPauseLayer::init((EditorPauseLayer *)v1, a1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);\n    return nullptr;\n  }\n  return (EditorPauseLayer *)v1;\n}", "assembly": "; \n; EditorPauseLayer::create from 0x1002910a0 to 0x10029118a (234 bytes)\n; \n; 1 xrefs:\n; > EditorUI::onPause @ 0x10002a83d\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, 0x1002910a0\nmov     rbp, rsp                                                       ; +0x1, 0x1002910a1\npush    r14                                                            ; +0x4, 0x1002910a4\npush    rbx                                                            ; +0x6, 0x1002910a6\nmov     r14, rdi                                                       ; +0x7, 0x1002910a7\nmov     edi, 270h; __sz                                                ; +0xa, 0x1002910aa\ncall    __Znwm; operator new(ulong)                                    ; +0xf, 0x1002910af\nmov     rbx, rax                                                       ; +0x14, 0x1002910b4\nmov     rdi, rax                                                       ; +0x17, 0x1002910b7\ncall    cocos2d__CCLayerColor__CCLayerColor                            ; +0x1a, 0x1002910ba\nmov     word ptr [rbx+220h], 0                                         ; +0x1f, 0x1002910bf\nlea     rax, off_1008F7058                                             ; +0x28, 0x1002910c8\nmov     [rbx], rax                                                     ; +0x2f, 0x1002910cf\nlea     rax, off_1008F75C8                                             ; +0x32, 0x1002910d2\nmov     [rbx+140h], rax                                                ; +0x39, 0x1002910d9\nlea     rax, off_1008F7638                                             ; +0x40, 0x1002910e0\nmov     [rbx+148h], rax                                                ; +0x47, 0x1002910e7\nlea     rax, off_1008F7650                                             ; +0x4e, 0x1002910ee\nmov     [rbx+150h], rax                                                ; +0x55, 0x1002910f5\nlea     rax, off_1008F7670                                             ; +0x5c, 0x1002910fc\nmov     [rbx+158h], rax                                                ; +0x63, 0x100291103\nlea     rax, off_1008F7690                                             ; +0x6a, 0x10029110a\nmov     [rbx+160h], rax                                                ; +0x71, 0x100291111\nlea     rax, off_1008F76B8                                             ; +0x78, 0x100291118\nmov     [rbx+198h], rax                                                ; +0x7f, 0x10029111f\nlea     rax, off_1008F7738                                             ; +0x86, 0x100291126\nmov     [rbx+1B0h], rax                                                ; +0x8d, 0x10029112d\nlea     rax, off_1008F7758                                             ; +0x94, 0x100291134\nmov     [rbx+228h], rax                                                ; +0x9b, 0x10029113b\nmov     byte ptr [rbx+230h], 0                                         ; +0xa2, 0x100291142\nxorps   xmm0, xmm0                                                     ; +0xa9, 0x100291149\nmovups  xmmword ptr [rbx+238h], xmm0                                   ; +0xac, 0x10029114c\nmov     qword ptr [rbx+248h], 0                                        ; +0xb3, 0x100291153\nmov     rdi, rbx                                                       ; +0xbe, 0x10029115e\nmov     rsi, r14                                                       ; +0xc1, 0x100291161\ncall    EditorPauseLayer__init                                         ; +0xc4, 0x100291164\ntest    al, al                                                         ; +0xc9, 0x100291169\njz      short loc_100291177                                            ; +0xcb, 0x10029116b\nmov     rdi, rbx                                                       ; +0xcd, 0x10029116d\ncall    cocos2d__CCObject__autorelease                                 ; +0xd0, 0x100291170\njmp     short loc_100291182                                            ; +0xd5, 0x100291175\nmov     rax, [rbx]                                                     ; +0xd7, 0x100291177\nmov     rdi, rbx                                                       ; +0xda, 0x10029117a\ncall    qword ptr [rax+10h]                                            ; +0xdd, 0x10029117d\nxor     ebx, ebx                                                       ; +0xe0, 0x100291180\nmov     rax, rbx                                                       ; +0xe2, 0x100291182\npop     rbx                                                            ; +0xe5, 0x100291185\npop     r14                                                            ; +0xe6, 0x100291186\npop     rbp                                                            ; +0xe8, 0x100291188\nretn                                                                   ; +0xe9, 0x100291189", "xrefs": ["EditorUI::onPause @ 0x10002a83d"], "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"}