	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setscreensize
_setscreensize:                         ## @setscreensize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TIOCGWINSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-8(%rbp), %rdx
	callq	_ioctl
	movq	-8(%rbp), %rcx
	movq	_MAX_WINSIZE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rcx
	cmovlq	%rcx, %rdx
	testq	%rcx, %rcx
	movq	_DEFAULT_WINSIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmoveq	%rcx, %rdx
	cmpl	$-1, %eax
	cmoveq	%rcx, %rdx
	incq	%rdx
	movq	_win_size@GOTPCREL(%rip), %rax
	movq	%rdx, (%rax)
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.comm	_TIOCGWINSZ,4,2                 ## @TIOCGWINSZ
	.comm	_MAX_WINSIZE,8,3                ## @MAX_WINSIZE
	.comm	_win_size,8,3                   ## @win_size
	.comm	_DEFAULT_WINSIZE,8,3            ## @DEFAULT_WINSIZE
	.no_dead_strip	_setscreensize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setscreensize
_setscreensize:                         ; @setscreensize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _TIOCGWINSZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIOCGWINSZ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	ldr	x8, [sp, #8]
Lloh6:
	adrp	x9, _MAX_WINSIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_WINSIZE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x9, x8, x9, lt
	cmp	x8, #0
	mov	w8, #-1
	ccmp	w0, w8, #4, ne
Lloh9:
	adrp	x8, _DEFAULT_WINSIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEFAULT_WINSIZE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	csel	x8, x9, x8, ne
	add	x8, x8, #1
Lloh12:
	adrp	x9, _win_size@GOTPAGE
Lloh13:
	ldr	x9, [x9, _win_size@GOTPAGEOFF]
Lloh14:
	str	x8, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.comm	_TIOCGWINSZ,4,2                 ; @TIOCGWINSZ
	.comm	_MAX_WINSIZE,8,3                ; @MAX_WINSIZE
	.comm	_win_size,8,3                   ; @win_size
	.comm	_DEFAULT_WINSIZE,8,3            ; @DEFAULT_WINSIZE
	.no_dead_strip	_setscreensize
.subsections_via_symbols
