	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flac_decoder_write_callback    ## -- Begin function flac_decoder_write_callback
	.p2align	4, 0x90
_flac_decoder_write_callback:           ## @flac_decoder_write_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rsi), %eax
	xorl	%edi, %edi
	cmpl	(%r14), %eax
	sete	%dil
	callq	_assert
	xorl	%ecx, %ecx
	cmpq	$0, 24(%r14)
	setne	%cl
	shll	$3, %ecx
	movl	4(%r15), %r9d
	movq	8(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_10
## %bb.1:
	testl	%r9d, %r9d
	jle	LBB0_19
## %bb.2:
	movl	20(%r14), %r8d
	movslq	16(%r14), %r10
	cmpl	%r8d, %r10d
	cmovgl	%r10d, %r8d
	subl	%r10d, %r8d
	xorl	%r11d, %r11d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r11
	incq	%r10
	movl	%r10d, 16(%r14)
	cmpq	%r9, %r11
	je	LBB0_19
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	cmpq	%r8, %r11
	je	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edi
	testl	%edi, %edi
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	incq	%rax
	cmpq	%rax, %rdi
	je	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r14), %rbx
	movq	(%rbx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	(%r12,%rax,8), %rdx
	movl	(%rdx,%r11,8), %edx
	movl	%edx, %esi
	shll	%cl, %esi
	sarl	%cl, %edx
	orl	%esi, %edx
	movslq	%edx, %rdx
	movq	%rdx, (%rbx,%r10,8)
	jmp	LBB0_8
LBB0_10:
	testl	%r9d, %r9d
	jle	LBB0_19
## %bb.11:
	movl	(%r15), %r10d
	movl	16(%r14), %r11d
	movl	%r10d, %edx
	imull	%r11d, %edx
	movslq	%edx, %rdi
	shlq	$3, %rdi
	addq	(%rax), %rdi
	movl	20(%r14), %r8d
	cmpl	%r8d, %r11d
	cmovgl	%r11d, %r8d
	subl	%r11d, %r8d
	movl	%r10d, %r15d
	andl	$-2, %r15d
	xorl	%eax, %eax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rax
	incl	%r11d
	movl	%r11d, 16(%r14)
	cmpq	%r9, %rax
	je	LBB0_19
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	cmpq	%r8, %rax
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	testl	%r10d, %r10d
	jle	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%esi, %esi
	cmpl	$1, %r10d
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12,%rsi,8), %rbx
	movl	(%rbx,%rax,8), %ebx
	movl	%ebx, %edx
	shll	%cl, %edx
	sarl	%cl, %ebx
	orl	%edx, %ebx
	movslq	%ebx, %rdx
	movq	%rdx, (%rdi)
	movq	8(%r12,%rsi,8), %rdx
	movl	(%rdx,%rax,8), %edx
	movl	%edx, %ebx
	shll	%cl, %ebx
	sarl	%cl, %edx
	orl	%ebx, %edx
	movslq	%edx, %rdx
	movq	%rdx, 8(%rdi)
	addq	$16, %rdi
	addq	$2, %rsi
	cmpq	%rsi, %r15
	jne	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	testb	$1, %r10b
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r12,%rsi,8), %rdx
	movl	(%rdx,%rax,8), %edx
	movl	%edx, %esi
	shll	%cl, %esi
	sarl	%cl, %edx
	orl	%esi, %edx
	movslq	%edx, %rdx
	movq	%rdx, (%rdi)
	addq	$8, %rdi
	jmp	LBB0_18
LBB0_19:
	movq	_FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE,4,2 ## @FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flac_decoder_write_callback    ; -- Begin function flac_decoder_write_callback
	.p2align	2
_flac_decoder_write_callback:           ; @flac_decoder_write_callback
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x1]
	ldr	w9, [x0]
	cmp	w8, w9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x20, #24]
	cmp	x8, #0
	cset	w8, ne
	lsl	w8, w8, #3
	ldr	w9, [x21, #4]
	ldr	x12, [x20, #8]
	ldr	x10, [x12, #8]
	cbz	x10, LBB0_10
; %bb.1:
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.2:
	mov	x10, #0
	ldp	w11, w12, [x20, #16]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	cmp	w11, w12
	csel	w12, w11, w12, gt
	sub	w12, w12, w11
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #1
	add	x11, x11, #1
	str	w11, [x20, #16]
	cmp	x10, x9
	b.eq	LBB0_17
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	x10, x12
	b.eq	LBB0_17
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w14, [x21]
	cmp	w14, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x13, #0
	lsl	x14, x14, #3
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x13, x13, #8
	cmp	x14, x13
	b.eq	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x20, #8]
	ldr	x15, [x15, x13]
	cbz	x15, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x16, [x19, x13]
	ldr	x16, [x16, x10, lsl #3]
	lsl	w17, w16, w8
	asr	w16, w16, w8
	orr	w16, w17, w16
	sxtw	x16, w16
	str	x16, [x15, x11, lsl #3]
	b	LBB0_7
LBB0_10:
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.11:
	mov	x10, #0
	ldr	w11, [x21]
	ldr	x13, [x12]
	ldp	w12, w14, [x20, #16]
	mul	w15, w11, w12
	add	x13, x13, w15, sxtw #3
	cmp	w12, w14
	csel	w14, w12, w14, gt
	sub	w14, w14, w12
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x10, x10, #1
	add	w12, w12, #1
	str	w12, [x20, #16]
	cmp	x10, x9
	b.eq	LBB0_17
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	cmp	x10, x14
	b.eq	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w11, #1
	b.lt	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x15, x11
	mov	x16, x19
LBB0_16:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x17, [x16], #8
	ldr	x17, [x17, x10, lsl #3]
	lsl	w0, w17, w8
	asr	w17, w17, w8
	orr	w17, w0, w17
	sxtw	x17, w17
	str	x17, [x13], #8
	subs	x15, x15, #1
	b.ne	LBB0_16
	b	LBB0_12
LBB0_17:
Lloh0:
	adrp	x8, _FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE,4,2 ; @FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE
.subsections_via_symbols
