	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_and_make_win
_init_and_make_win:                     ## @init_and_make_win
	.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	%r9d, %r12d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.1:
	movl	%r15d, %edi
	callq	_tui_win_is_auxillary
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_tui_alloc_generic_win_info
	jmp	LBB0_4
LBB0_3:
	movl	%r15d, %edi
	callq	_tui_alloc_win_info
LBB0_4:
	movq	%rax, %rbx
LBB0_5:
	movl	%r15d, %edi
	callq	_tui_win_is_auxillary
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%al
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.6:
	movl	%r13d, %edx
	movl	16(%rbp), %r13d
	movb	%al, %cl
	movl	%r12d, %r9d
	leaq	(%rbx,%rcx,8), %r12
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_init_gen_win_info
	movl	%r15d, %edi
	callq	_tui_win_is_auxillary
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	movq	(%r12), %rax
	movq	_CMD_WIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.9:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_11:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_tui_make_window
LBB0_12:
	movq	%rbx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_WIN,8,3                    ## @CMD_WIN
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_init_and_make_win
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_and_make_win
_init_and_make_win:                     ; @init_and_make_win
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x21, [x0]
	cbnz	x21, LBB0_5
; %bb.1:
	mov	x0, x22
	bl	_tui_win_is_auxillary
	cbz	x0, LBB0_3
; %bb.2:
	bl	_tui_alloc_generic_win_info
	b	LBB0_4
LBB0_3:
	mov	x0, x22
	bl	_tui_alloc_win_info
LBB0_4:
	mov	x21, x0
LBB0_5:
	mov	x0, x22
	bl	_tui_win_is_auxillary
	cmp	x0, #0
	cset	w8, eq
	cbz	x21, LBB0_9
; %bb.6:
	add	x27, x21, w8, uxtw #3
	mov	x0, x27
	mov	x1, x22
	mov	x2, x26
	mov	x3, x25
	mov	x4, x24
	mov	x5, x23
	bl	_init_gen_win_info
	mov	x0, x22
	bl	_tui_win_is_auxillary
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x27]
Lloh0:
	adrp	x9, _CMD_WIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CMD_WIN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _FALSE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FALSE@GOTPAGEOFF]
Lloh5:
	adrp	x11, _TRUE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _TRUE@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_8:
	mov	x0, x27
	mov	x1, x19
	bl	_tui_make_window
LBB0_9:
	str	x21, [x20]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_WIN,8,3                    ; @CMD_WIN
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_init_and_make_win
.subsections_via_symbols
