	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fillbuf                        ## -- Begin function fillbuf
	.p2align	4, 0x90
_fillbuf:                               ## @fillbuf
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movq	_BUFSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	(%rbx), %rax
	subq	%rax, %rdx
	addq	%rax, %rsi
	callq	_read
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:
	movl	%eax, %ecx
	addq	%rcx, (%rbx)
	jmp	LBB0_4
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_EINTR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %eax
	notl	%eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZE,8,3                    ## @BUFSIZE
	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_EINTR,8,3                      ## @EINTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fillbuf                        ; -- Begin function fillbuf
	.p2align	2
_fillbuf:                               ; @fillbuf
	.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	x19, x2
Lloh0:
	adrp	x8, _BUFSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUFSIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x2]
	sub	x2, x8, x9
	add	x1, x1, x9
	bl	_read
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	ldr	x8, [x19]
	add	x8, x8, w0, uxtw
	str	x8, [x19]
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh8:
	adrp	x10, _EINTR@GOTPAGE
Lloh9:
	ldr	x10, [x10, _EINTR@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	mov	w8, #-2
	cinc	w0, w8, ne
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZE,8,3                    ; @BUFSIZE
	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_EINTR,8,3                      ; @EINTR
.subsections_via_symbols
