	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_display_resize                 ## -- Begin function display_resize
	.p2align	4, 0x90
_display_resize:                        ## @display_resize
	.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	_screenbuf@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_free
LBB0_2:
	movq	_smart_terminal@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_screen_length@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_Header_lines@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	xorl	%r15d, %r15d
	testl	%ebx, %ebx
	cmovlel	%r15d, %ebx
	testq	%r12, %r12
	movl	$1, %edi
	cmovnel	%ebx, %edi
	movq	_screen_width@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_calloc
	movq	%rax, (%r14)
	testq	%r12, %r12
	jne	LBB0_4
## %bb.3:
	movq	_Largest@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_4:
	cmpq	$1, %rax
	sbbl	%r15d, %r15d
	orl	%ebx, %r15d
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_screenbuf,8,3                  ## @screenbuf
	.comm	_smart_terminal,8,3             ## @smart_terminal
	.comm	_screen_length,4,2              ## @screen_length
	.comm	_Header_lines,4,2               ## @Header_lines
	.comm	_screen_width,4,2               ## @screen_width
	.comm	_Largest,4,2                    ## @Largest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_display_resize                 ; -- Begin function display_resize
	.p2align	2
_display_resize:                        ; @display_resize
	.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
Lloh0:
	adrp	x19, _screenbuf@GOTPAGE
Lloh1:
	ldr	x19, [x19, _screenbuf@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_free
LBB0_2:
Lloh2:
	adrp	x8, _smart_terminal@GOTPAGE
Lloh3:
	ldr	x8, [x8, _smart_terminal@GOTPAGEOFF]
Lloh4:
	ldr	x20, [x8]
Lloh5:
	adrp	x8, _screen_length@GOTPAGE
Lloh6:
	ldr	x8, [x8, _screen_length@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _Header_lines@GOTPAGE
Lloh9:
	ldr	x9, [x9, _Header_lines@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	sub	w8, w8, w9
	cmp	w8, #0
	csel	w21, w8, wzr, gt
	cmp	x20, #0
	csinc	w0, w21, wzr, ne
Lloh11:
	adrp	x8, _screen_width@GOTPAGE
Lloh12:
	ldr	x8, [x8, _screen_width@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_calloc
	cmp	x20, #0
Lloh14:
	adrp	x8, _Largest@GOTPAGE
Lloh15:
	ldr	x8, [x8, _Largest@GOTPAGEOFF]
	str	x0, [x19]
Lloh16:
	ldr	w8, [x8]
	csel	w8, w8, w21, eq
	cmp	x0, #0
	csinv	w0, w8, wzr, ne
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_screenbuf,8,3                  ; @screenbuf
	.comm	_smart_terminal,8,3             ; @smart_terminal
	.comm	_screen_length,4,2              ; @screen_length
	.comm	_Header_lines,4,2               ; @Header_lines
	.comm	_screen_width,4,2               ; @screen_width
	.comm	_Largest,4,2                    ; @Largest
.subsections_via_symbols
