	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setttywidth                    ## -- Begin function setttywidth
	.p2align	4, 0x90
_setttywidth:                           ## @setttywidth
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	_ttyout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fileno
	movq	_TIOCGWINSZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-24(%rbp), %rdx
	movl	%eax, %edi
	callq	_ioctl
	movq	-24(%rbp), %rcx
	testq	%rcx, %rcx
	movl	$80, %edx
	cmovel	%edx, %ecx
	cmpl	$-1, %eax
	cmovel	%edx, %ecx
	movq	_ttywidth@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movl	%ebx, (%r14)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_ttyout,4,2                     ## @ttyout
	.comm	_TIOCGWINSZ,4,2                 ## @TIOCGWINSZ
	.comm	_ttywidth,4,2                   ## @ttywidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setttywidth                    ; -- Begin function setttywidth
	.p2align	2
_setttywidth:                           ; @setttywidth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x19, _errno@GOTPAGE
Lloh1:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	ldr	w20, [x19]
Lloh2:
	adrp	x8, _ttyout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ttyout@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_fileno
Lloh5:
	adrp	x8, _TIOCGWINSZ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TIOCGWINSZ@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	ldr	x8, [sp, #8]
	cmp	x8, #0
	mov	w9, #-1
	ccmp	w0, w9, #4, ne
	mov	w9, #80
Lloh8:
	adrp	x10, _ttywidth@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ttywidth@GOTPAGEOFF]
	csel	w8, w8, w9, ne
Lloh10:
	str	w8, [x10]
	str	w20, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_ttyout,4,2                     ; @ttyout
	.comm	_TIOCGWINSZ,4,2                 ; @TIOCGWINSZ
	.comm	_ttywidth,4,2                   ; @ttywidth
.subsections_via_symbols
