	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_tty
_test_tty:                              ## @test_tty
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$1, %edi
	callq	_isatty
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_stdout_tty@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_2:
	movl	$2, %edi
	callq	_isatty
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	movq	_stderr_tty@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout_tty,4,2                 ## @stdout_tty
	.comm	_stderr_tty,4,2                 ## @stderr_tty
	.comm	_FILE_TYPE_CHAR,8,3             ## @FILE_TYPE_CHAR
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_stderr,4,2                     ## @stderr
	.comm	_stdout,4,2                     ## @stdout
	.no_dead_strip	_test_tty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_tty
_test_tty:                              ; @test_tty
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w19, #1
	mov	w0, #1
	bl	_isatty
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _stdout_tty@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdout_tty@GOTPAGEOFF]
Lloh2:
	str	w19, [x8]
LBB0_2:
	mov	w0, #2
	bl	_isatty
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _stderr_tty@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr_tty@GOTPAGEOFF]
	mov	w9, #1
Lloh5:
	str	w9, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout_tty,4,2                 ; @stdout_tty
	.comm	_stderr_tty,4,2                 ; @stderr_tty
	.comm	_FILE_TYPE_CHAR,8,3             ; @FILE_TYPE_CHAR
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_stderr,4,2                     ; @stderr
	.comm	_stdout,4,2                     ; @stdout
	.no_dead_strip	_test_tty
.subsections_via_symbols
