	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_windows                   ## -- Begin function init_windows
	.p2align	4, 0x90
_init_windows:                          ## @init_windows
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_stdscr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_getmaxyx
	movq	_MIN_HEIGHT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jg	LBB0_2
## %bb.1:
	movq	_MIN_WIDTH@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_FATAL
LBB0_3:
	movl	$6, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_newwin
	movq	%rax, (%rbx)
	movq	_TRUE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_keypad
	cmpq	$0, (%rbx)
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_FATAL
LBB0_5:
	movl	$-8, %edi
	xorl	%esi, %esi
	movl	$7, %edx
	xorl	%ecx, %ecx
	callq	_newwin
	movq	%rax, (%r14)
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_keypad
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	callq	_FATAL
	movq	(%r14), %rdi
LBB0_7:
	movq	(%rbx), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_wbkgd                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_stdscr,4,2                     ## @stdscr
	.comm	_MIN_HEIGHT,4,2                 ## @MIN_HEIGHT
	.comm	_MIN_WIDTH,4,2                  ## @MIN_WIDTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Minimum screen size - 0 columns by 7 lines"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	"Unable to allocate memory for header_win."

L_.str.2:                               ## @.str.2
	.asciz	"Unable to allocate memory for main_win."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_windows                   ; -- Begin function init_windows
	.p2align	2
_init_windows:                          ; @init_windows
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _stdscr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdscr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #0
	bl	_getmaxyx
Lloh3:
	adrp	x8, _MIN_HEIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIN_HEIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MIN_WIDTH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MIN_WIDTH@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w9, #1, #0, le
	b.lt	LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FATAL
LBB0_2:
	mov	w0, #6
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_newwin
	str	x0, [x19]
Lloh11:
	adrp	x21, _TRUE@GOTPAGE
Lloh12:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_keypad
	ldr	x8, [x19]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FATAL
LBB0_4:
	mov	w0, #-8
	mov	w1, #0
	mov	w2, #7
	mov	w3, #0
	bl	_newwin
	str	x0, [x20]
	ldr	w1, [x21]
	bl	_keypad
	ldr	x0, [x20]
	cbnz	x0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FATAL
	ldr	x0, [x20]
LBB0_6:
	ldr	x1, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_set_wbkgd
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_stdscr,4,2                     ; @stdscr
	.comm	_MIN_HEIGHT,4,2                 ; @MIN_HEIGHT
	.comm	_MIN_WIDTH,4,2                  ; @MIN_WIDTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Minimum screen size - 0 columns by 7 lines"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	"Unable to allocate memory for header_win."

l_.str.2:                               ; @.str.2
	.asciz	"Unable to allocate memory for main_win."

.subsections_via_symbols
