	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdcbuf_refill
_mdcbuf_refill:                         ## @mdcbuf_refill
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rdx
	testq	%rdx, %rdx
	jle	LBB0_3
## %bb.1:
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rdi
	cmpq	%rdi, %rsi
	je	LBB0_3
## %bb.2:
	callq	_memmove
	movq	(%rbx), %rdx
LBB0_3:
	movq	16(%rbx), %rax
	movq	%rax, 8(%rbx)
	movl	24(%rbx), %eax
	addl	28(%rbx), %edx
	negl	%edx
	leal	(%rax,%rdx), %esi
	addl	$22, %esi
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pullf_read
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_12
## %bb.4:
	je	LBB0_5
## %bb.6:
	cmpl	$22, %r14d
	jb	LBB0_8
## %bb.7:
	movq	32(%rbx), %rsi
	movl	28(%rbx), %edx
	movq	%rbx, %rdi
	callq	_mdcbuf_load_data
	movl	$0, 28(%rbx)
	movq	-32(%rbp), %rsi
	leal	-22(%r14), %edx
	movq	%rbx, %rdi
	callq	_mdcbuf_load_data
	movq	-32(%rbp), %rax
	movl	%r14d, %ecx
	leaq	(%rax,%rcx,4), %rsi
	addq	$-88, %rsi
	movq	%rbx, %rdi
	movl	$22, %edx
	jmp	LBB0_11
LBB0_5:
	movq	%rbx, %rdi
	callq	_mdcbuf_finish
	movl	%eax, %r14d
	jmp	LBB0_12
LBB0_8:
	movslq	28(%rbx), %rax
	movslq	%r14d, %r15
	addq	%rax, %r15
	cmpl	$23, %r15d
	jl	LBB0_10
## %bb.9:
	addq	$-22, %r15
	movq	32(%rbx), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_mdcbuf_load_data
	movslq	28(%rbx), %rdx
	subq	%r15, %rdx
	movl	%edx, 28(%rbx)
	movq	32(%rbx), %rdi
	movl	%r15d, %esi
	addq	%rdi, %rsi
	callq	_memmove
LBB0_10:
	movq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
LBB0_11:
	callq	_mdcbuf_load_mdc
	xorl	%r14d, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mdcbuf_refill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdcbuf_refill
_mdcbuf_refill:                         ; @mdcbuf_refill
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x2, [x0]
	cmp	x2, #1
	b.lt	LBB0_3
; %bb.1:
	ldp	x1, x0, [x19, #8]
	cmp	x1, x0
	b.eq	LBB0_3
; %bb.2:
	bl	_memmove
	ldr	x2, [x19]
LBB0_3:
	ldr	x8, [x19, #16]
	str	x8, [x19, #8]
	ldp	w8, w9, [x19, #24]
	add	w9, w9, w2
	sub	w8, w8, w9
	add	w1, w8, #22
	add	x2, sp, #8
	mov	x0, x20
	bl	_pullf_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_12
; %bb.4:
	cbz	w20, LBB0_7
; %bb.5:
	subs	w21, w20, #22
	b.lo	LBB0_8
; %bb.6:
	ldr	x1, [x19, #32]
	ldr	w2, [x19, #28]
	mov	x0, x19
	bl	_mdcbuf_load_data
	str	wzr, [x19, #28]
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, x21
	bl	_mdcbuf_load_data
	ldr	x8, [sp, #8]
	add	x8, x8, w20, uxtw #2
	sub	x1, x8, #88
	mov	x0, x19
	mov	w2, #22
	b	LBB0_11
LBB0_7:
	mov	x0, x19
	bl	_mdcbuf_finish
	mov	x20, x0
	b	LBB0_12
LBB0_8:
	ldrsw	x8, [x19, #28]
	add	x8, x8, w20, sxtw
	cmp	w8, #23
	b.lt	LBB0_10
; %bb.9:
	sub	x21, x8, #22
	ldr	x1, [x19, #32]
	mov	x0, x19
	mov	x2, x21
	bl	_mdcbuf_load_data
	ldrsw	x8, [x19, #28]
	sub	x2, x8, x21
	str	w2, [x19, #28]
	ldr	x0, [x19, #32]
	add	x1, x0, w21, uxtw
	bl	_memmove
LBB0_10:
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, x20
LBB0_11:
	bl	_mdcbuf_load_mdc
	mov	w20, #0
LBB0_12:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mdcbuf_refill
.subsections_via_symbols
