	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdfl_codec_decompress          ## -- Begin function cdfl_codec_decompress
	.p2align	4, 0x90
_cdfl_codec_decompress:                 ## @cdfl_codec_decompress
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %eax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_CD_FRAME_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %ebx
	leaq	8(%rdi), %r13
	movq	_CD_MAX_SECTOR_DATA@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	imull	%eax, %edi
	callq	_cdfl_codec_blocksize
	movq	%r13, %r14
	movq	%r13, %rdi
	movl	$44100, %esi                    ## imm = 0xAC44
	movl	$2, %edx
	movl	%eax, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_flac_decoder_reset
	movq	_CHDERR_DECOMPRESSION_ERROR@GOTPCREL(%rip), %r13
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	(%r15), %rsi
	movl	(%r12), %eax
	imull	%ebx, %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$2, %edx
	movl	16(%r15), %ecx
	movq	%r14, %rdi
	callq	_flac_decoder_decode_interleaved
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	%r14, %rdi
	callq	_flac_decoder_finish
	movq	_CHDERR_NONE@GOTPCREL(%rip), %r13
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.3:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	_CD_FRAME_SIZE@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r12), %rax
	movslq	%r13d, %r13
	imulq	%r13, %rax
	leaq	(%r14,%rax,4), %rdi
	movq	_CD_MAX_SECTOR_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %eax
	imull	%r13d, %eax
	movslq	%eax, %rsi
	shlq	$2, %rsi
	addq	(%r15), %rsi
	callq	_memcpy
	incl	%r13d
	cmpl	%r13d, %ebx
	jne	LBB0_4
## %bb.5:
	movq	_CHDERR_NONE@GOTPCREL(%rip), %r13
LBB0_6:
	movq	(%r13), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CD_FRAME_SIZE,4,2              ## @CD_FRAME_SIZE
	.comm	_CD_MAX_SECTOR_DATA,4,2         ## @CD_MAX_SECTOR_DATA
	.comm	_CHDERR_DECOMPRESSION_ERROR,8,3 ## @CHDERR_DECOMPRESSION_ERROR
	.comm	_CHDERR_NONE,8,3                ## @CHDERR_NONE
	.comm	_CD_MAX_SUBCODE_DATA,4,2        ## @CD_MAX_SUBCODE_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdfl_codec_decompress          ; -- Begin function cdfl_codec_decompress
	.p2align	2
_cdfl_codec_decompress:                 ; @cdfl_codec_decompress
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	add	x21, x0, #8
Lloh0:
	adrp	x24, _CD_FRAME_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CD_FRAME_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	sdiv	w25, w4, w8
Lloh2:
	adrp	x26, _CD_MAX_SECTOR_DATA@GOTPAGE
Lloh3:
	ldr	x26, [x26, _CD_MAX_SECTOR_DATA@GOTPAGEOFF]
	ldr	w8, [x26]
	mul	w0, w8, w25
	bl	_cdfl_codec_blocksize
	mov	x3, x0
	mov	x0, x21
	mov	w1, #44100
	mov	w2, #2
	mov	x4, x23
	mov	x5, x22
	bl	_flac_decoder_reset
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x1, [x20]
	ldr	w8, [x26]
	mul	w8, w8, w25
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #2
	ldr	w3, [x20, #16]
	mov	x0, x21
	bl	_flac_decoder_decode_interleaved
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_flac_decoder_finish
	cmp	w25, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w22, #0
Lloh4:
	adrp	x21, _CHDERR_NONE@GOTPAGE
Lloh5:
	ldr	x21, [x21, _CHDERR_NONE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	mul	w8, w8, w22
	add	x0, x19, w8, sxtw #2
	ldr	x8, [x20]
	ldr	w2, [x26]
	mul	w9, w2, w22
	add	x1, x8, w9, sxtw #2
	bl	_memcpy
	add	w22, w22, #1
	cmp	w25, w22
	b.ne	LBB0_4
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x21, _CHDERR_DECOMPRESSION_ERROR@GOTPAGE
Lloh7:
	ldr	x21, [x21, _CHDERR_DECOMPRESSION_ERROR@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x21, _CHDERR_NONE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _CHDERR_NONE@GOTPAGEOFF]
LBB0_7:
	ldr	x0, [x21]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CD_FRAME_SIZE,4,2              ; @CD_FRAME_SIZE
	.comm	_CD_MAX_SECTOR_DATA,4,2         ; @CD_MAX_SECTOR_DATA
	.comm	_CHDERR_DECOMPRESSION_ERROR,8,3 ; @CHDERR_DECOMPRESSION_ERROR
	.comm	_CHDERR_NONE,8,3                ; @CHDERR_NONE
	.comm	_CD_MAX_SUBCODE_DATA,4,2        ; @CD_MAX_SUBCODE_DATA
.subsections_via_symbols
