	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_display                        ## -- Begin function display
	.p2align	4, 0x90
_display:                               ## @display
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rsi), %edi
	cmpl	(%r14), %edi
	jne	LBB0_1
LBB0_22:
	movl	16(%r14), %edi
	movl	20(%r14), %esi
	xorl	%edx, %edx
	callq	_wmove
	movl	16(%r14), %edi
	callq	_wclrtoeol
	jmp	LBB0_32
LBB0_1:
	cmpl	4(%r14), %edi
	jne	LBB0_2
LBB0_5:
	movl	12(%r14), %edi
	movl	16(%r14), %ebx
	movl	20(%r14), %r15d
	decl	%edi
	movl	%edi, 12(%r14)
	xorl	%esi, %esi
	callq	_max
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_wmove
	movl	12(%r14), %edx
	movl	16(%r14), %edi
	movl	20(%r14), %esi
	callq	_getyx
	movl	16(%r14), %edi
	movl	$32, %esi
	callq	_waddch
	movl	12(%r14), %edx
	movl	16(%r14), %edi
	movl	20(%r14), %esi
	callq	_wmove
	jmp	LBB0_32
LBB0_2:
	cmpl	8(%r14), %edi
	jne	LBB0_3
LBB0_10:
	movl	12(%r14), %r15d
	movl	%r15d, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jle	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	decl	%ebx
	movl	16(%r14), %edi
	movl	20(%r14), %esi
	movl	%ebx, %edx
	callq	_readwin
	cmpl	$32, %eax
	je	LBB0_11
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_13 Depth=1
	leal	-1(%rbx), %r12d
	testl	%ebx, %ebx
	movl	%r12d, %ebx
	jle	LBB0_17
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r14), %edi
	movl	20(%r14), %esi
	movl	%ebx, %edx
	callq	_readwin
	cmpl	$32, %eax
	jne	LBB0_14
	jmp	LBB0_16
LBB0_3:
	movq	%rsi, %rbx
	leal	-4(%rdi), %eax
	cmpl	$19, %eax
	ja	LBB0_4
## %bb.6:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movl	16(%r14), %ebx
	movl	$10, %edi
	jmp	LBB0_30
LBB0_15:
	decl	%ebx
LBB0_16:
	movl	%ebx, %r12d
LBB0_17:
	movl	16(%r14), %edi
	movl	20(%r14), %esi
	leal	1(%r12), %ebx
	movl	%ebx, %edx
	callq	_wmove
	cmpl	%r15d, %ebx
	jge	LBB0_20
## %bb.18:
	notl	%r12d
	addl	%r15d, %r12d
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r14), %edi
	movl	$32, %esi
	callq	_waddch
	decl	%r12d
	jne	LBB0_19
LBB0_20:
	movl	16(%r14), %edi
	movl	20(%r14), %esi
	movl	%ebx, %edx
	callq	_wmove
	jmp	LBB0_32
LBB0_4:
	cmpl	$127, %edi
	je	LBB0_5
LBB0_27:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_iswprint
	movl	(%rbx), %edi
	testq	%rax, %rax
	jne	LBB0_29
## %bb.28:
	cmpl	$9, %edi
	movl	$9, %edi
	jne	LBB0_31
LBB0_29:
	movl	16(%r14), %ebx
LBB0_30:
	callq	_makecchar
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_wadd_wch
LBB0_32:
	movl	12(%r14), %edx
	movl	16(%r14), %edi
	movl	20(%r14), %esi
	callq	_getyx
	movl	16(%r14), %edi
LBB0_25:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wrefresh                       ## TAILCALL
LBB0_8:
	cmpq	_my_win@GOTPCREL(%rip), %r14
	jne	LBB0_33
## %bb.9:
	movq	_my_win@GOTPCREL(%rip), %rbx
	movl	16(%rbx), %edi
	callq	_werase
	movl	12(%rbx), %edx
	movl	16(%rbx), %edi
	movl	20(%rbx), %esi
	callq	_getyx
	movl	16(%rbx), %edi
	callq	_wrefresh
	movq	_his_win@GOTPCREL(%rip), %rbx
	movl	4(%rbx), %edi
	callq	_werase
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	movl	8(%rbx), %esi
	callq	_getyx
	movl	4(%rbx), %edi
	jmp	LBB0_25
LBB0_26:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write                          ## TAILCALL
LBB0_23:
	cmpq	_my_win@GOTPCREL(%rip), %r14
	je	LBB0_24
LBB0_33:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	_curscr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_25
LBB0_31:
	xorl	%eax, %eax
	callq	_beep
	jmp	LBB0_32
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_26
	.long	L0_0_set_5
	.long	L0_0_set_27
	.long	L0_0_set_7
	.long	L0_0_set_27
	.long	L0_0_set_23
	.long	L0_0_set_7
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_22
	.long	L0_0_set_27
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_my_win,24,2                    ## @my_win
	.comm	_his_win,12,2                   ## @his_win
	.comm	_curscr,4,2                     ## @curscr
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_display                        ; -- Begin function display
	.p2align	2
_display:                               ; @display
	.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	x19, x0
	ldr	w0, [x1]
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_2
LBB0_1:
	ldp	w0, w1, [x19, #16]
	mov	w2, #0
	bl	_wmove
	ldr	w0, [x19, #16]
	bl	_wclrtoeol
	b	LBB0_23
LBB0_2:
	ldr	w8, [x19, #4]
	cmp	w0, w8
	b.ne	LBB0_4
LBB0_3:
	ldp	w21, w20, [x19, #16]
	ldr	w8, [x19, #12]
	sub	w0, w8, #1
	str	w0, [x19, #12]
	mov	w1, #0
	bl	_max
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_wmove
	ldp	w0, w1, [x19, #16]
	ldr	w2, [x19, #12]
	bl	_getyx
	ldr	w0, [x19, #16]
	mov	w1, #32
	bl	_waddch
	ldp	w0, w1, [x19, #16]
	ldr	w2, [x19, #12]
	bl	_wmove
	b	LBB0_23
LBB0_4:
	ldr	w8, [x19, #8]
	cmp	w0, w8
	b.ne	LBB0_15
LBB0_5:
	ldr	w21, [x19, #12]
	mov	x20, x21
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	subs	w20, w20, #1
	b.lt	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	w0, w1, [x19, #16]
	mov	x2, x20
	bl	_readwin
	cmp	w0, #32
	b.eq	LBB0_6
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	sub	w22, w20, #1
	cmp	w20, #0
	mov	x20, x22
	b.le	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w0, w1, [x19, #16]
	mov	x2, x20
	bl	_readwin
	cmp	w0, #32
	b.ne	LBB0_8
LBB0_10:
	mov	x22, x20
LBB0_11:
	ldp	w0, w1, [x19, #16]
	add	w20, w22, #1
	mov	x2, x20
	bl	_wmove
	cmp	w20, w21
	b.ge	LBB0_14
; %bb.12:
	mvn	w8, w22
	add	w21, w8, w21
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	mov	w1, #32
	bl	_waddch
	subs	w21, w21, #1
	b.ne	LBB0_13
LBB0_14:
	ldp	w0, w1, [x19, #16]
	mov	x2, x20
	bl	_wmove
	b	LBB0_23
LBB0_15:
	mov	x20, x1
	sub	w8, w0, #4
	cmp	w8, #19
	b.hi	LBB0_18
; %bb.16:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_1
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_17:
	ldr	w20, [x19, #16]
	mov	w0, #10
	b	LBB0_22
LBB0_18:
	cmp	w0, #127
	b.eq	LBB0_3
LBB0_19:
	bl	_iswprint
	mov	x8, x0
	ldr	w0, [x20]
	cbnz	x8, LBB0_21
; %bb.20:
	cmp	w0, #9
	b.ne	LBB0_31
LBB0_21:
	ldr	w20, [x19, #16]
LBB0_22:
	bl	_makecchar
	mov	x1, x0
	mov	x0, x20
	bl	_wadd_wch
LBB0_23:
	ldp	w0, w1, [x19, #16]
	ldr	w2, [x19, #12]
	bl	_getyx
	ldr	w0, [x19, #16]
LBB0_24:
	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	_wrefresh
LBB0_25:
Lloh2:
	adrp	x20, _my_win@GOTPAGE
Lloh3:
	ldr	x20, [x20, _my_win@GOTPAGEOFF]
	cmp	x19, x20
	b.ne	LBB0_29
; %bb.26:
	ldr	w0, [x20, #16]
	bl	_werase
	ldp	w0, w1, [x20, #16]
	ldr	w2, [x20, #12]
	bl	_getyx
	ldr	w0, [x20, #16]
	bl	_wrefresh
Lloh4:
	adrp	x19, _his_win@GOTPAGE
Lloh5:
	ldr	x19, [x19, _his_win@GOTPAGEOFF]
	ldr	w0, [x19, #4]
	bl	_werase
	ldp	w0, w1, [x19, #4]
	ldr	w2, [x19]
	bl	_getyx
	ldr	w0, [x19, #4]
	b	LBB0_24
LBB0_27:
Lloh6:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #4
	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	_write
LBB0_28:
Lloh9:
	adrp	x8, _my_win@GOTPAGE
Lloh10:
	ldr	x8, [x8, _my_win@GOTPAGEOFF]
	cmp	x19, x8
	b.eq	LBB0_30
LBB0_29:
	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
	ret
LBB0_30:
Lloh11:
	adrp	x8, _curscr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _curscr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_24
LBB0_31:
	bl	_beep
	b	LBB0_23
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_25-LBB0_1)>>2
	.byte	(LBB0_19-LBB0_1)>>2
	.byte	(LBB0_19-LBB0_1)>>2
	.byte	(LBB0_27-LBB0_1)>>2
	.byte	(LBB0_3-LBB0_1)>>2
	.byte	(LBB0_19-LBB0_1)>>2
	.byte	(LBB0_17-LBB0_1)>>2
	.byte	(LBB0_19-LBB0_1)>>2
	.byte	(LBB0_28-LBB0_1)>>2
	.byte	(LBB0_17-LBB0_1)>>2
	.byte	(LBB0_19-LBB0_1)>>2
	.byte	(LBB0_19-LBB0_1)>>2
	.byte	(LBB0_19-LBB0_1)>>2
	.byte	(LBB0_19-LBB0_1)>>2
	.byte	(LBB0_19-LBB0_1)>>2
	.byte	(LBB0_19-LBB0_1)>>2
	.byte	(LBB0_19-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_19-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
                                        ; -- End function
	.comm	_my_win,24,2                    ; @my_win
	.comm	_his_win,12,2                   ; @his_win
	.comm	_curscr,4,2                     ; @curscr
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
.subsections_via_symbols
