	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcflush                        ## -- Begin function tcflush
	.p2align	4, 0x90
_tcflush:                               ## @tcflush
	.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
	cmpl	$128, %esi
	je	LBB0_5
## %bb.1:
	cmpl	$129, %esi
	je	LBB0_7
## %bb.2:
	cmpl	$130, %esi
	jne	LBB0_6
## %bb.3:
	movq	_FREAD@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_FWRITE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	jmp	LBB0_8
LBB0_7:
	movq	_FREAD@GOTPCREL(%rip), %rax
	movq	_FWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -4(%rbp)
LBB0_8:
	movq	_TIOCFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdx
	callq	__ioctl
	jmp	LBB0_9
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FREAD,4,2                      ## @FREAD
	.comm	_FWRITE,4,2                     ## @FWRITE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_TIOCFLUSH,4,2                  ## @TIOCFLUSH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcflush                        ; -- Begin function tcflush
	.p2align	2
_tcflush:                               ; @tcflush
	.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
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w1, #130
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _FREAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FREAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _FWRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FWRITE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _FREAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FREAD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _FWRITE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FWRITE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_6:
	stur	w8, [x29, #-4]
Lloh12:
	adrp	x8, _TIOCFLUSH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TIOCFLUSH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	sub	x2, x29, #4
	bl	__ioctl
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _errno@GOTPAGE
Lloh19:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FREAD,4,2                      ; @FREAD
	.comm	_FWRITE,4,2                     ; @FWRITE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_TIOCFLUSH,4,2                  ; @TIOCFLUSH
.subsections_via_symbols
