	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush
_flush:                                 ## @flush
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_SIGALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sigALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpb	$0, (%r15)
	je	LBB0_4
## %bb.1:
	incq	%r15
	movq	_timeoutbuf@GOTPCREL(%rip), %r14
	leaq	-41(%rbp), %r12
	movl	$1, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_setjmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_alarm
	movq	_FD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_read
	movl	%ebx, %edi
	callq	_alarm
	leaq	1(%r15), %rax
	cmpb	$0, (%r15)
	movq	%rax, %r15
	jne	LBB0_2
LBB0_4:
	movq	_SIGALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_signal
	movq	_timeout@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGALRM,4,2                    ## @SIGALRM
	.comm	_sigALRM,4,2                    ## @sigALRM
	.comm	_timeoutbuf,4,2                 ## @timeoutbuf
	.comm	_FD,4,2                         ## @FD
	.comm	_timeout,8,3                    ## @timeout
	.no_dead_strip	_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush
_flush:                                 ; @flush
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
Lloh0:
	adrp	x23, _SIGALRM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SIGALRM@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x8, _sigALRM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sigALRM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_signal
	mov	x19, x0
	ldrb	w8, [x20]
	cbz	w8, LBB0_4
; %bb.1:
	add	x26, x20, #1
Lloh5:
	adrp	x24, _timeoutbuf@GOTPAGE
Lloh6:
	ldr	x24, [x24, _timeoutbuf@GOTPAGEOFF]
	mov	w20, #10
Lloh7:
	adrp	x25, _FD@GOTPAGE
Lloh8:
	ldr	x25, [x25, _FD@GOTPAGEOFF]
	add	x21, sp, #15
	mov	w22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	bl	_setjmp
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_alarm
	ldr	w0, [x25]
	mov	x1, x21
	mov	x2, x22
	bl	_read
	mov	w0, #0
	bl	_alarm
	ldrb	w8, [x26], #1
	cbnz	w8, LBB0_2
LBB0_4:
	ldr	w0, [x23]
	mov	x1, x19
	bl	_signal
Lloh9:
	adrp	x9, _timeout@GOTPAGE
Lloh10:
	ldr	x9, [x9, _timeout@GOTPAGEOFF]
Lloh11:
	str	xzr, [x9]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGALRM,4,2                    ; @SIGALRM
	.comm	_sigALRM,4,2                    ; @sigALRM
	.comm	_timeoutbuf,4,2                 ; @timeoutbuf
	.comm	_FD,4,2                         ; @FD
	.comm	_timeout,8,3                    ; @timeout
	.no_dead_strip	_flush
.subsections_via_symbols
