	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_resize_display                 ## -- Begin function resize_display
	.p2align	4, 0x90
_resize_display:                        ## @resize_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TIOCGWINSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_4
## %bb.1:
	movl	-56(%rbp), %edi
	movq	_LINES@GOTPCREL(%rip), %rbx
	movq	-48(%rbp), %rsi
	movq	_COLS@GOTPCREL(%rip), %r14
	cmpl	(%rbx), %edi
	jne	LBB0_3
## %bb.2:
	cmpq	(%r14), %rsi
	je	LBB0_4
LBB0_3:
	callq	_resizeterm
	movl	(%rbx), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	movq	_my_win@GOTPCREL(%rip), %r15
	movl	%esi, (%r15)
	movq	(%r14), %rdx
	movq	%rdx, 8(%r15)
	movl	16(%r15), %edi
	callq	_wresize
	movl	16(%r15), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_mvwin
	movl	16(%r15), %edi
	movq	_TRUE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_clearok
	movl	(%rbx), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	decl	%esi
	movq	_his_win@GOTPCREL(%rip), %r12
	movl	%esi, (%r12)
	movq	(%r14), %rdx
	movq	%rdx, 8(%r12)
	movl	16(%r12), %edi
	callq	_wresize
	movl	16(%r12), %edi
	movl	(%r15), %esi
	incl	%esi
	xorl	%edx, %edx
	callq	_mvwin
	movl	16(%r12), %edi
	movl	(%r13), %esi
	callq	_clearok
	movq	_line_win@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	(%r14), %rdx
	movl	$1, %esi
	callq	_wresize
	movl	(%rbx), %edi
	movl	(%r15), %esi
	xorl	%edx, %edx
	callq	_mvwin
	movl	(%rbx), %edi
	movl	(%r15), %esi
	xorl	%edx, %edx
	callq	_wmove
	movl	(%rbx), %edi
	movl	$45, %esi
	movl	$45, %edx
	callq	_box
	movl	16(%r12), %edi
	callq	_wrefresh
	movl	(%rbx), %edi
	callq	_wrefresh
	movl	16(%r15), %edi
	callq	_wrefresh
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_TIOCGWINSZ,4,2                 ## @TIOCGWINSZ
	.comm	_LINES,4,2                      ## @LINES
	.comm	_COLS,8,3                       ## @COLS
	.comm	_my_win,24,3                    ## @my_win
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_his_win,24,3                   ## @his_win
	.comm	_line_win,4,2                   ## @line_win
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_resize_display                 ; -- Begin function resize_display
	.p2align	2
_resize_display:                        ; @resize_display
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _TIOCGWINSZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIOCGWINSZ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	w0, [sp]
Lloh6:
	adrp	x21, _LINES@GOTPAGE
Lloh7:
	ldr	x21, [x21, _LINES@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	x1, [sp, #8]
Lloh8:
	adrp	x20, _COLS@GOTPAGE
Lloh9:
	ldr	x20, [x20, _COLS@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	w0, w8
	ccmp	x1, x9, #0, eq
	b.eq	LBB0_3
; %bb.2:
	bl	_resizeterm
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
Lloh10:
	adrp	x19, _my_win@GOTPAGE
Lloh11:
	ldr	x19, [x19, _my_win@GOTPAGEOFF]
	str	w1, [x19]
	ldr	x2, [x20]
	str	x2, [x19, #8]
	ldr	w0, [x19, #16]
	bl	_wresize
	ldr	w0, [x19, #16]
	mov	w1, #0
	mov	w2, #0
	bl	_mvwin
	ldr	w0, [x19, #16]
Lloh12:
	adrp	x22, _TRUE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_clearok
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	sub	w1, w8, #1
Lloh14:
	adrp	x21, _his_win@GOTPAGE
Lloh15:
	ldr	x21, [x21, _his_win@GOTPAGEOFF]
	str	w1, [x21]
	ldr	x2, [x20]
	str	x2, [x21, #8]
	ldr	w0, [x21, #16]
	bl	_wresize
	ldr	w0, [x21, #16]
	ldr	w8, [x19]
	add	w1, w8, #1
	mov	w2, #0
	bl	_mvwin
	ldr	w0, [x21, #16]
	ldr	w1, [x22]
	bl	_clearok
Lloh16:
	adrp	x22, _line_win@GOTPAGE
Lloh17:
	ldr	x22, [x22, _line_win@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x2, [x20]
	mov	w1, #1
	bl	_wresize
	ldr	w0, [x22]
	ldr	w1, [x19]
	mov	w2, #0
	bl	_mvwin
	ldr	w0, [x22]
	ldr	w1, [x19]
	mov	w2, #0
	bl	_wmove
	ldr	w0, [x22]
	mov	w1, #45
	mov	w2, #45
	bl	_box
	ldr	w0, [x21, #16]
	bl	_wrefresh
	ldr	w0, [x22]
	bl	_wrefresh
	ldr	w0, [x19, #16]
	bl	_wrefresh
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_TIOCGWINSZ,4,2                 ; @TIOCGWINSZ
	.comm	_LINES,4,2                      ; @LINES
	.comm	_COLS,8,3                       ; @COLS
	.comm	_my_win,24,3                    ; @my_win
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_his_win,24,3                   ; @his_win
	.comm	_line_win,4,2                   ; @line_win
.subsections_via_symbols
