	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flac_decoder_read_callback     ## -- Begin function flac_decoder_read_callback
	.p2align	4, 0x90
_flac_decoder_read_callback:            ## @flac_decoder_read_callback
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	(%rdx), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	8(%rdi), %rsi
	subq	(%rdi), %rsi
	jle	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_MIN
	movslq	%eax, %r12
	movq	(%rbx), %rsi
	addq	16(%rbx), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_memcpy
	addq	%r12, (%rbx)
	movq	(%r14), %rdi
	cmpq	%r12, %rdi
	ja	LBB0_5
	jmp	LBB0_7
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_3:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
LBB0_5:
	movq	(%rbx), %rax
	movq	8(%rbx), %rsi
	movq	24(%rbx), %rcx
	leaq	(%rcx,%rsi), %rdx
	cmpq	%rdx, %rax
	jge	LBB0_7
## %bb.6:
	subq	%r12, %rdi
	subq	%rax, %rsi
	addq	%rcx, %rsi
	callq	_MIN
	movq	%r13, %rcx
	movslq	%eax, %r13
	leaq	(%rcx,%r12,4), %rdi
	movq	(%rbx), %rsi
	addq	32(%rbx), %rsi
	subq	8(%rbx), %rsi
	movq	%r13, %rdx
	callq	_memcpy
	addq	%r13, %r12
	addq	%r13, (%rbx)
LBB0_7:
	movq	%r12, (%r14)
	cmpq	%r15, %r12
	jae	LBB0_8
## %bb.9:
	movq	_FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_FLAC__STREAM_DECODER_READ_STATUS_CONTINUE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM,4,2 ## @FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM
	.comm	_FLAC__STREAM_DECODER_READ_STATUS_CONTINUE,4,2 ## @FLAC__STREAM_DECODER_READ_STATUS_CONTINUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flac_decoder_read_callback     ; -- Begin function flac_decoder_read_callback
	.p2align	2
_flac_decoder_read_callback:            ; @flac_decoder_read_callback
	.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
	mov	x20, x2
	ldr	x19, [x2]
	cbz	x19, LBB0_3
; %bb.1:
	mov	x23, x1
	mov	x21, x0
	ldp	x8, x9, [x0]
	subs	x1, x9, x8
	b.le	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_MIN
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
	ldr	x8, [x21, #16]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x23
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x21]
	add	x8, x8, x22
	str	x8, [x21]
	ldr	x8, [x20]
	cmp	x8, x22
	b.hi	LBB0_5
	b	LBB0_7
LBB0_3:
	mov	x22, #0
	b	LBB0_7
LBB0_4:
	mov	x22, #0
	mov	x8, x19
LBB0_5:
	ldp	x9, x10, [x21]
	ldr	x11, [x21, #24]
	add	x12, x11, x10
	cmp	x9, x12
	b.ge	LBB0_7
; %bb.6:
	sub	x0, x8, x22
	sub	x8, x10, x9
	add	x1, x8, x11
	bl	_MIN
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x24, w0
	add	x0, x23, x22, lsl #2
	ldr	x8, [x21, #32]
	ldp	x9, x10, [x21]
	add	x8, x9, x8
	sub	x1, x8, x10
	mov	x2, x24
	bl	_memcpy
	add	x22, x22, x24
	ldr	x8, [x21]
	add	x8, x8, x24
	str	x8, [x21]
LBB0_7:
	str	x22, [x20]
Lloh0:
	adrp	x8, _FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM@GOTPAGEOFF]
Lloh2:
	adrp	x9, _FLAC__STREAM_DECODER_READ_STATUS_CONTINUE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FLAC__STREAM_DECODER_READ_STATUS_CONTINUE@GOTPAGEOFF]
	cmp	x22, x19
	csel	x8, x8, x9, lo
	ldr	w0, [x8]
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM,4,2 ; @FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM
	.comm	_FLAC__STREAM_DECODER_READ_STATUS_CONTINUE,4,2 ; @FLAC__STREAM_DECODER_READ_STATUS_CONTINUE
.subsections_via_symbols
