	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateNewMDIChild              ## -- Begin function CreateNewMDIChild
	.p2align	4, 0x90
_CreateNewMDIChild:                     ## @CreateNewMDIChild
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_CreateNewConsoleTitle
	movl	%eax, -24(%rbp)
	movq	_szMMCChildFrm@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	xorl	%edi, %edi
	callq	_GetModuleHandle
	movl	%eax, -32(%rbp)
	movq	_CW_USEDEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rax, -40(%rbp)
	movq	%rax, -64(%rbp)
	movq	%rax, -56(%rbp)
	movq	_MDIS_ALLCHILDSTYLES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_WM_MDICREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_SendMessage
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	incl	(%r14)
LBB0_2:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_szMMCChildFrm,4,2              ## @szMMCChildFrm
	.comm	_CW_USEDEFAULT,8,3              ## @CW_USEDEFAULT
	.comm	_MDIS_ALLCHILDSTYLES,4,2        ## @MDIS_ALLCHILDSTYLES
	.comm	_WM_MDICREATE,4,2               ## @WM_MDICREATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateNewMDIChild              ; -- Begin function CreateNewMDIChild
	.p2align	2
_CreateNewMDIChild:                     ; @CreateNewMDIChild
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_CreateNewConsoleTitle
Lloh0:
	adrp	x8, _szMMCChildFrm@GOTPAGE
Lloh1:
	ldr	x8, [x8, _szMMCChildFrm@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #52]
	mov	x0, #0
	bl	_GetModuleHandle
	str	w0, [sp, #48]
Lloh3:
	adrp	x8, _CW_USEDEFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CW_USEDEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stp	x8, x8, [sp, #32]
Lloh6:
	adrp	x9, _MDIS_ALLCHILDSTYLES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MDIS_ALLCHILDSTYLES@GOTPAGEOFF]
	stp	x8, x8, [sp, #16]
Lloh8:
	ldr	w8, [x9]
	str	w8, [sp, #8]
Lloh9:
	adrp	x8, _WM_MDICREATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WM_MDICREATE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x20
	mov	w2, #0
	bl	_SendMessage
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_szMMCChildFrm,4,2              ; @szMMCChildFrm
	.comm	_CW_USEDEFAULT,8,3              ; @CW_USEDEFAULT
	.comm	_MDIS_ALLCHILDSTYLES,4,2        ; @MDIS_ALLCHILDSTYLES
	.comm	_WM_MDICREATE,4,2               ; @WM_MDICREATE
.subsections_via_symbols
