	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tty_fix                        ## -- Begin function tty_fix
	.p2align	4, 0x90
_tty_fix:                               ## @tty_fix
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_havemodes@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fileno
	movq	_TCSADRAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_savemodes@GOTPCREL(%rip), %rdx
	movl	%eax, %edi
	popq	%rbp
	jmp	_tcsetattr                      ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_havemodes,4,2                  ## @havemodes
	.comm	_stdin,4,2                      ## @stdin
	.comm	_TCSADRAIN,4,2                  ## @TCSADRAIN
	.comm	_savemodes,4,2                  ## @savemodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tty_fix                        ; -- Begin function tty_fix
	.p2align	2
_tty_fix:                               ; @tty_fix
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _havemodes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _havemodes@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _stdin@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_fileno
Lloh6:
	adrp	x8, _TCSADRAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TCSADRAIN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, _savemodes@GOTPAGE
Lloh10:
	ldr	x2, [x2, _savemodes@GOTPAGEOFF]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_tcsetattr
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_havemodes,4,2                  ; @havemodes
	.comm	_stdin,4,2                      ; @stdin
	.comm	_TCSADRAIN,4,2                  ; @TCSADRAIN
	.comm	_savemodes,4,2                  ; @savemodes
.subsections_via_symbols
