	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FrameOnCreate
_FrameOnCreate:                         ## @FrameOnCreate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	_hAppHeap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	%r15d, 16(%rax)
	xorl	%r14d, %r14d
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_SetWindowLongPtr
	movq	_hAppInstance@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movq	_IDM_CONSOLE_SMALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKEINTRESOURCE
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_LoadMenu
	movq	%rax, 24(%rbx)
	movl	(%r13), %r12d
	movq	_IDM_CONSOLE_LARGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKEINTRESOURCE
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_LoadMenu
	movq	%rax, 8(%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movl	16(%rbx), %edi
	movq	24(%rbx), %rsi
	callq	_SetMenu
	movl	16(%rbx), %r12d
	leaq	L_.str(%rip), %rdi
	callq	_TEXT
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_SetWindowText
	movq	8(%rbx), %rdi
	movl	$1, %esi
	callq	_GetSubMenu
	movl	%eax, -44(%rbp)
	movq	_IDM_MDI_FIRSTCHILD@GOTPCREL(%rip), %rax
	movq	_WS_CHILD@GOTPCREL(%rip), %rdx
	movq	_WS_CLIPCHILDREN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	(%rax), %eax
	movq	_WS_VSCROLL@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%eax, -48(%rbp)
	movq	_WS_HSCROLL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_WS_EX_CLIENTEDGE@GOTPCREL(%rip), %rax
	movq	_WS_VISIBLE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	(%rax), %edi
	movq	_WS_BORDER@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CW_USEDEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%r13), %eax
	leaq	-48(%rbp), %r10
	leaq	l_.str.1(%rip), %rsi
	xorl	%edx, %edx
	movl	%r8d, %r9d
	pushq	%r10
	pushq	%rax
	pushq	$3244                           ## imm = 0xCAC
	pushq	%r15
	pushq	%r8
	pushq	%r8
	callq	_CreateWindowEx
	addq	$48, %rsp
	movq	_hwndMDIClient@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%rbx), %edi
	movq	_SW_SHOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ShowWindow
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hAppHeap,4,2                   ## @hAppHeap
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.comm	_hAppInstance,4,2               ## @hAppInstance
	.comm	_IDM_CONSOLE_SMALL,4,2          ## @IDM_CONSOLE_SMALL
	.comm	_IDM_CONSOLE_LARGE,4,2          ## @IDM_CONSOLE_LARGE
	.comm	_TRUE,8,3                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ReactOS Management Console"

	.comm	_IDM_MDI_FIRSTCHILD,4,2         ## @IDM_MDI_FIRSTCHILD
	.comm	_WS_EX_CLIENTEDGE,4,2           ## @WS_EX_CLIENTEDGE
	.section	__TEXT,__const
	.p2align	2                               ## @.str.1
l_.str.1:
	.long	77                              ## 0x4d
	.long	68                              ## 0x44
	.long	73                              ## 0x49
	.long	67                              ## 0x43
	.long	76                              ## 0x4c
	.long	73                              ## 0x49
	.long	69                              ## 0x45
	.long	78                              ## 0x4e
	.long	84                              ## 0x54
	.long	0                               ## 0x0

	.comm	_WS_CHILD,4,2                   ## @WS_CHILD
	.comm	_WS_CLIPCHILDREN,4,2            ## @WS_CLIPCHILDREN
	.comm	_WS_VSCROLL,4,2                 ## @WS_VSCROLL
	.comm	_WS_HSCROLL,4,2                 ## @WS_HSCROLL
	.comm	_WS_VISIBLE,4,2                 ## @WS_VISIBLE
	.comm	_WS_BORDER,4,2                  ## @WS_BORDER
	.comm	_CW_USEDEFAULT,4,2              ## @CW_USEDEFAULT
	.comm	_hwndMDIClient,4,2              ## @hwndMDIClient
	.comm	_SW_SHOW,4,2                    ## @SW_SHOW
	.no_dead_strip	_FrameOnCreate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FrameOnCreate
_FrameOnCreate:                         ; @FrameOnCreate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x8, _hAppHeap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hAppHeap@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_HeapAlloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	str	w20, [x0, #16]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_SetWindowLongPtr
Lloh6:
	adrp	x22, _hAppInstance@GOTPAGE
Lloh7:
	ldr	x22, [x22, _hAppInstance@GOTPAGEOFF]
	ldr	w21, [x22]
Lloh8:
	adrp	x8, _IDM_CONSOLE_SMALL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IDM_CONSOLE_SMALL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_MAKEINTRESOURCE
	mov	x1, x0
	mov	x0, x21
	bl	_LoadMenu
	str	x0, [x19, #24]
	ldr	w21, [x22]
Lloh11:
	adrp	x8, _IDM_CONSOLE_LARGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IDM_CONSOLE_LARGE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_MAKEINTRESOURCE
	mov	x1, x0
	mov	x0, x21
	bl	_LoadMenu
	str	x0, [x19, #8]
Lloh14:
	adrp	x8, _TRUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x19, #32]
	ldr	w0, [x19, #16]
	ldr	x1, [x19, #24]
	bl	_SetMenu
	ldr	w21, [x19, #16]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TEXT
	mov	x1, x0
	mov	x0, x21
	bl	_SetWindowText
	ldr	x0, [x19, #8]
	mov	w1, #1
	bl	_GetSubMenu
Lloh19:
	adrp	x8, _IDM_MDI_FIRSTCHILD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IDM_MDI_FIRSTCHILD@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #24]
Lloh22:
	adrp	x8, _WS_EX_CLIENTEDGE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WS_EX_CLIENTEDGE@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _WS_CHILD@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WS_CHILD@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _WS_CLIPCHILDREN@GOTPAGE
Lloh29:
	ldr	x9, [x9, _WS_CLIPCHILDREN@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh31:
	adrp	x9, _WS_VSCROLL@GOTPAGE
Lloh32:
	ldr	x9, [x9, _WS_VSCROLL@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh34:
	adrp	x9, _WS_HSCROLL@GOTPAGE
Lloh35:
	ldr	x9, [x9, _WS_HSCROLL@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh37:
	adrp	x9, _WS_VISIBLE@GOTPAGE
Lloh38:
	ldr	x9, [x9, _WS_VISIBLE@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh40:
	adrp	x9, _WS_BORDER@GOTPAGE
Lloh41:
	ldr	x9, [x9, _WS_BORDER@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w3, w8, w9
Lloh43:
	adrp	x8, _CW_USEDEFAULT@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CW_USEDEFAULT@GOTPAGEOFF]
Lloh45:
	ldr	w4, [x8]
	ldr	w8, [x22]
	add	x9, sp, #24
	stp	w8, w9, [sp, #8]
	mov	w8, #3244
	stp	w20, w8, [sp]
Lloh46:
	adrp	x1, l_.str.1@PAGE
Lloh47:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, #0
	mov	x5, x4
	mov	x6, x4
	mov	x7, x4
	bl	_CreateWindowEx
Lloh48:
	adrp	x8, _hwndMDIClient@GOTPAGE
Lloh49:
	ldr	x8, [x8, _hwndMDIClient@GOTPAGEOFF]
Lloh50:
	str	w0, [x8]
	ldr	w0, [x19]
Lloh51:
	adrp	x8, _SW_SHOW@GOTPAGE
Lloh52:
	ldr	x8, [x8, _SW_SHOW@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	bl	_ShowWindow
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotStr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_hAppHeap,4,2                   ; @hAppHeap
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.comm	_hAppInstance,4,2               ; @hAppInstance
	.comm	_IDM_CONSOLE_SMALL,4,2          ; @IDM_CONSOLE_SMALL
	.comm	_IDM_CONSOLE_LARGE,4,2          ; @IDM_CONSOLE_LARGE
	.comm	_TRUE,8,3                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ReactOS Management Console"

	.comm	_IDM_MDI_FIRSTCHILD,4,2         ; @IDM_MDI_FIRSTCHILD
	.comm	_WS_EX_CLIENTEDGE,4,2           ; @WS_EX_CLIENTEDGE
	.section	__TEXT,__const
	.p2align	2                               ; @.str.1
l_.str.1:
	.long	77                              ; 0x4d
	.long	68                              ; 0x44
	.long	73                              ; 0x49
	.long	67                              ; 0x43
	.long	76                              ; 0x4c
	.long	73                              ; 0x49
	.long	69                              ; 0x45
	.long	78                              ; 0x4e
	.long	84                              ; 0x54
	.long	0                               ; 0x0

	.comm	_WS_CHILD,4,2                   ; @WS_CHILD
	.comm	_WS_CLIPCHILDREN,4,2            ; @WS_CLIPCHILDREN
	.comm	_WS_VSCROLL,4,2                 ; @WS_VSCROLL
	.comm	_WS_HSCROLL,4,2                 ; @WS_HSCROLL
	.comm	_WS_VISIBLE,4,2                 ; @WS_VISIBLE
	.comm	_WS_BORDER,4,2                  ; @WS_BORDER
	.comm	_CW_USEDEFAULT,4,2              ; @CW_USEDEFAULT
	.comm	_hwndMDIClient,4,2              ; @hwndMDIClient
	.comm	_SW_SHOW,4,2                    ; @SW_SHOW
	.no_dead_strip	_FrameOnCreate
.subsections_via_symbols
