	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_buf_fill                       ## -- Begin function buf_fill
	.p2align	4, 0x90
_buf_fill:                              ## @buf_fill
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	cmpb	$0, _buf_fill.fini(%rip)
	jne	LBB0_10
## %bb.1:
	movq	_buf@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_blksz@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_ar_read
	testl	%eax, %eax
	jle	LBB0_2
LBB0_8:
	movq	(%rbx), %rcx
	movq	_bufpt@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movl	%eax, %edx
	addq	%rdx, %rcx
	movq	_bufend@GOTPCREL(%rip), %rsi
	movq	%rcx, (%rsi)
	movq	_rdcnt@GOTPCREL(%rip), %rcx
	addq	%rdx, (%rcx)
	jmp	LBB0_10
LBB0_2:
	movq	_frmt@GOTPCREL(%rip), %r15
	movq	_rdcnt@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_ar_next
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, (%r12)
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	callq	_ar_read
	testl	%eax, %eax
	jle	LBB0_3
	jmp	LBB0_8
LBB0_6:
	movb	$1, _buf_fill.fini(%rip)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_9:
	movq	_exit_val@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	$-1, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_buf_fill.fini,1,2 ## @buf_fill.fini
	.comm	_buf,8,3                        ## @buf
	.comm	_blksz,4,2                      ## @blksz
	.comm	_bufpt,8,3                      ## @bufpt
	.comm	_bufend,8,3                     ## @bufend
	.comm	_rdcnt,8,3                      ## @rdcnt
	.comm	_frmt,8,3                       ## @frmt
	.comm	_exit_val,4,2                   ## @exit_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_buf_fill                       ; -- Begin function buf_fill
	.p2align	2
_buf_fill:                              ; @buf_fill
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	adrp	x20, _buf_fill.fini@PAGE
	ldrb	w8, [x20, _buf_fill.fini@PAGEOFF]
	tbz	w8, #0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_11
LBB0_2:
Lloh0:
	adrp	x19, _buf@GOTPAGE
Lloh1:
	ldr	x19, [x19, _buf@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	adrp	x21, _blksz@GOTPAGE
Lloh3:
	ldr	x21, [x21, _blksz@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_ar_read
	cmp	w0, #0
	b.le	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _bufpt@GOTPAGE
Lloh5:
	ldr	x8, [x8, _bufpt@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh6:
	str	x9, [x8]
	mov	w8, w0
	add	x9, x9, x8
Lloh7:
	adrp	x10, _bufend@GOTPAGE
Lloh8:
	ldr	x10, [x10, _bufend@GOTPAGEOFF]
Lloh9:
	str	x9, [x10]
Lloh10:
	adrp	x9, _rdcnt@GOTPAGE
Lloh11:
	ldr	x9, [x9, _rdcnt@GOTPAGEOFF]
	ldr	x10, [x9]
	add	x8, x10, x8
	str	x8, [x9]
	b	LBB0_11
LBB0_4:
Lloh12:
	adrp	x22, _frmt@GOTPAGE
Lloh13:
	ldr	x22, [x22, _frmt@GOTPAGEOFF]
Lloh14:
	adrp	x23, _rdcnt@GOTPAGE
Lloh15:
	ldr	x23, [x23, _rdcnt@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	tbnz	w0, #31, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_ar_next
	tbnz	x0, #63, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x23]
	ldr	x0, [x19]
	ldr	w1, [x21]
	bl	_ar_read
	cmp	w0, #0
	b.le	LBB0_5
	b	LBB0_3
LBB0_9:
	mov	w0, #0
	mov	w8, #1
	strb	w8, [x20, _buf_fill.fini@PAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x8, _exit_val@GOTPAGE
Lloh17:
	ldr	x8, [x8, _exit_val@GOTPAGEOFF]
	mov	w9, #1
Lloh18:
	str	w9, [x8]
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_buf_fill.fini,1,2 ; @buf_fill.fini
	.comm	_buf,8,3                        ; @buf
	.comm	_blksz,4,2                      ; @blksz
	.comm	_bufpt,8,3                      ; @bufpt
	.comm	_bufend,8,3                     ; @bufend
	.comm	_rdcnt,8,3                      ; @rdcnt
	.comm	_frmt,8,3                       ; @frmt
	.comm	_exit_val,4,2                   ; @exit_val
.subsections_via_symbols
