	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function auto_exists_status
_auto_exists_status:                    ## @auto_exists_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rdx
	movq	_TTY_IFEXISTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpb	$47, (%rdi)
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	-16(%rbp), %rdi
	callq	_asprintf
	movq	-16(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	leaq	-24(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_TTY_ON@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_3:
	movq	-16(%rbp), %rdi
	callq	_free
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTY_IFEXISTS,4,2               ## @TTY_IFEXISTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"/dev/%s"

	.comm	_TTY_ON,4,2                     ## @TTY_ON
	.no_dead_strip	_auto_exists_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function auto_exists_status
_auto_exists_status:                    ; @auto_exists_status
	.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
	mov	x2, x0
Lloh0:
	adrp	x8, _TTY_IFEXISTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TTY_IFEXISTS@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldrb	w8, [x0]
Lloh3:
	adrp	x9, l_.str.1@PAGE
Lloh4:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh5:
	adrp	x10, l_.str@PAGE
Lloh6:
	add	x10, x10, l_.str@PAGEOFF
	cmp	w8, #47
	csel	x1, x10, x9, eq
	mov	x0, sp
	bl	_asprintf
	ldr	x0, [sp]
	cbz	x0, LBB0_3
; %bb.1:
	add	x1, sp, #8
	bl	_stat
	cbnz	x0, LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _TTY_ON@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TTY_ON@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w19, w8, w19
LBB0_3:
	ldr	x0, [sp]
	bl	_free
	mov	x0, 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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TTY_IFEXISTS,4,2               ; @TTY_IFEXISTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"/dev/%s"

	.comm	_TTY_ON,4,2                     ; @TTY_ON
	.no_dead_strip	_auto_exists_status
.subsections_via_symbols
