	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_buffer
_fill_buffer:                           ## @fill_buffer
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	xorl	%edi, %edi
	cmpq	8(%rbx), %rax
	sete	%dil
	callq	_assert
	movl	8(%rbx), %eax
	addl	%eax, 52(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	xorl	%esi, %esi
	cmpl	$0, 16(%rbx)
	jne	LBB0_20
## %bb.1:
	movq	%rbx, %rdi
	callq	_kurl_isfile
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	8(%rbx), %rsi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rdx
	cmpq	%rsi, %rdx
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	48(%rbx), %edi
	subq	%rsi, %rdx
	addq	32(%rbx), %rsi
	callq	_read
	testl	%eax, %eax
	je	LBB0_5
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	%eax, %rsi
	addq	8(%rbx), %rsi
	movq	%rsi, 8(%rbx)
	jmp	LBB0_3
LBB0_7:
	leaq	-84(%rbp), %r15
	leaq	-80(%rbp), %r12
	leaq	-76(%rbp), %r13
	leaq	-48(%rbp), %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, -44(%rbp)
	movq	$-1, -72(%rbp)
	movl	$10, -64(%rbp)
	movq	$0, -56(%rbp)
	movl	40(%rbx), %edi
	leaq	-72(%rbp), %rsi
	callq	_curl_multi_timeout
	movq	-72(%rbp), %rcx
	testq	%rcx, %rcx
	js	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rcx, %rax
	shrq	$3, %rax
	movabsq	$2361183241434822607, %rdx      ## imm = 0x20C49BA5E353F7CF
	mulq	%rdx
	shrq	$4, %rdx
	movl	%edx, -64(%rbp)
	cmpl	$2, %edx
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, -64(%rbp)
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	imulq	$1000, %rdx, %rax               ## imm = 0x3E8
	subq	%rax, %rcx
	imulq	$1000, %rcx, %rax               ## imm = 0x3E8
	movq	%rax, -56(%rbp)
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	callq	_FD_ZERO
	movq	%r12, %rdi
	callq	_FD_ZERO
	movq	%r13, %rdi
	callq	_FD_ZERO
	movl	40(%rbx), %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	leaq	-44(%rbp), %r8
	callq	_curl_multi_fdset
	movl	-44(%rbp), %edi
	testl	%edi, %edi
	js	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	%edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	leaq	-64(%rbp), %r8
	callq	_select
	testl	%eax, %eax
	js	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$0, -44(%rbp)
	jns	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	$0, -96(%rbp)
	movl	$100000000, -104(%rbp)          ## imm = 0x5F5E100
	leaq	-104(%rbp), %rdi
	leaq	-120(%rbp), %rsi
	callq	_nanosleep
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	44(%rbx), %edi
	movq	_CURLPAUSE_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_curl_easy_pause
	movl	40(%rbx), %edi
	movq	%r14, %rsi
	callq	_curl_multi_perform
	cmpl	$0, -48(%rbp)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	24(%rbx), %rax
	movq	_CURL_MAX_WRITE_SIZE@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	cmpq	%rax, 8(%rbx)
	jl	LBB0_8
LBB0_18:
	movq	8(%rbx), %rsi
	movq	24(%rbx), %rax
	movq	_CURL_MAX_WRITE_SIZE@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	cmpq	%rax, %rsi
	jl	LBB0_19
	jmp	LBB0_20
LBB0_5:
	movq	8(%rbx), %rsi
	movq	24(%rbx), %rdx
LBB0_6:
	cmpq	%rdx, %rsi
	jge	LBB0_20
LBB0_19:
	movl	$1, 16(%rbx)
LBB0_20:
	movl	%esi, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CURLPAUSE_CONT,4,2             ## @CURLPAUSE_CONT
	.comm	_CURL_MAX_WRITE_SIZE,8,3        ## @CURL_MAX_WRITE_SIZE
	.no_dead_strip	_fill_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_buffer
_fill_buffer:                           ; @fill_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldp	x8, x9, [x0]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	w8, [x19, #8]
	ldr	w9, [x19, #52]
	add	w8, w9, w8
	str	w8, [x19, #52]
	stp	xzr, xzr, [x19]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_22
LBB0_2:
	mov	x0, x19
	bl	_kurl_isfile
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x0, [x19, #8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	cmp	x9, x0
	b.le	LBB0_20
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #48]
	ldr	x10, [x19, #32]
	add	x1, x10, x0
	sub	x2, x9, x0
	mov	x0, x8
	bl	_read
	cbz	w0, LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, w0, sxtw
	str	x0, [x19, #8]
	b	LBB0_4
LBB0_7:
	mov	w20, #-1
	mov	x21, #-1
	mov	w22, #10
	mov	x23, #63439
	movk	x23, #58195, lsl #16
	movk	x23, #39845, lsl #32
	movk	x23, #8388, lsl #48
	mov	w24, #1
	mov	w25, #1000
	mov	w27, #57600
	movk	w27, #1525, lsl #16
Lloh0:
	adrp	x28, _CURLPAUSE_CONT@GOTPAGE
Lloh1:
	ldr	x28, [x28, _CURLPAUSE_CONT@GOTPAGEOFF]
Lloh2:
	adrp	x26, _CURL_MAX_WRITE_SIZE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _CURL_MAX_WRITE_SIZE@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	str	w20, [sp, #60]
	stp	xzr, x21, [sp, #40]
	str	w22, [sp, #32]
	ldr	w0, [x19, #40]
	add	x1, sp, #48
	bl	_curl_multi_timeout
	ldr	x8, [sp, #48]
	tbnz	x8, #63, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	lsr	x9, x8, #3
	umulh	x9, x9, x23
	lsr	x9, x9, #4
	str	w9, [sp, #32]
	cmp	w9, #2
	b.lt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	str	w24, [sp, #32]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	msub	x8, x9, x25, x8
	mul	x8, x8, x25
	str	x8, [sp, #40]
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x0, sp, #72
	bl	_FD_ZERO
	add	x0, sp, #68
	bl	_FD_ZERO
	add	x0, sp, #64
	bl	_FD_ZERO
	ldr	w0, [x19, #40]
	add	x1, sp, #72
	add	x2, sp, #68
	add	x3, sp, #64
	add	x4, sp, #60
	bl	_curl_multi_fdset
	ldr	w8, [sp, #60]
	tbnz	w8, #31, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	add	w0, w8, #1
	add	x1, sp, #72
	add	x2, sp, #68
	add	x3, sp, #64
	add	x4, sp, #32
	bl	_select
	tbnz	w0, #31, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [sp, #60]
	tbz	w8, #31, LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	str	xzr, [sp, #24]
	str	w27, [sp, #16]
	add	x0, sp, #16
	mov	x1, sp
	bl	_nanosleep
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19, #44]
	ldr	w1, [x28]
	bl	_curl_easy_pause
	ldr	w0, [x19, #40]
	add	x1, sp, #76
	bl	_curl_multi_perform
	ldr	w8, [sp, #76]
	cbz	w8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
	ldr	x10, [x26]
	sub	x9, x9, x10
	cmp	x8, x9
	b.lt	LBB0_8
LBB0_18:
	ldr	x0, [x19, #8]
	ldr	x8, [x19, #24]
	ldr	x9, [x26]
	sub	x8, x8, x9
	cmp	x0, x8
	b.lt	LBB0_21
	b	LBB0_22
LBB0_19:
	ldr	x0, [x19, #8]
	ldr	x9, [x19, #24]
LBB0_20:
	cmp	x0, x9
	b.ge	LBB0_22
LBB0_21:
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_22:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CURLPAUSE_CONT,4,2             ; @CURLPAUSE_CONT
	.comm	_CURL_MAX_WRITE_SIZE,8,3        ; @CURL_MAX_WRITE_SIZE
	.no_dead_strip	_fill_buffer
.subsections_via_symbols
