	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_buf
_read_buf:                              ## @read_buf
	.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
	movl	%edx, %ebx
	movl	(%rdi), %eax
	cmpl	%edx, %eax
	cmovbl	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	16(%rdi), %r12
	subl	%ebx, %eax
	movl	%eax, (%rdi)
	movl	4(%rdi), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_zmemcpy
	cmpl	$1, (%r12)
	jne	LBB0_3
## %bb.2:
	movl	12(%r14), %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_adler32
	movl	%eax, 12(%r14)
LBB0_3:
	addl	%ebx, 4(%r14)
	addl	%ebx, 8(%r14)
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_read_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_buf
_read_buf:                              ; @read_buf
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
	cmp	w8, w2
	csel	w20, w8, w2, lo
	cbz	w20, LBB0_4
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #16]
	sub	w8, w8, w20
	str	w8, [x0]
	ldr	w1, [x0, #4]
	mov	x0, x21
	mov	x2, x20
	bl	_zmemcpy
	ldr	w8, [x22]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x19, #12]
	mov	x1, x21
	mov	x2, x20
	bl	_adler32
	str	w0, [x19, #12]
LBB0_3:
	ldur	d0, [x19, #4]
	dup.2s	v1, w20
	add.2s	v0, v0, v1
	stur	d0, [x19, #4]
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_read_buf
.subsections_via_symbols
