	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdfl_codec_init                ## -- Begin function cdfl_codec_init
	.p2align	4, 0x90
_cdfl_codec_init:                       ## @cdfl_codec_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_CD_FRAME_SIZE@GOTPCREL(%rip), %rcx
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_CHDERR_CODEC_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	%rdi, %rbx
	shll	$2, %esi
	movl	%esi, %edi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	$1, 8(%rbx)
	leaq	16(%rbx), %rdi
	callq	_flac_decoder_init
	cmpq	$0, 16(%rbx)
	jne	LBB0_4
LBB0_5:
	movq	_CHDERR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_CHDERR_NONE@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CD_FRAME_SIZE,4,2              ## @CD_FRAME_SIZE
	.comm	_CHDERR_CODEC_ERROR,8,3         ## @CHDERR_CODEC_ERROR
	.comm	_CHDERR_OUT_OF_MEMORY,8,3       ## @CHDERR_OUT_OF_MEMORY
	.comm	_CHDERR_NONE,8,3                ## @CHDERR_NONE
	.comm	_CD_MAX_SECTOR_DATA,4,2         ## @CD_MAX_SECTOR_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdfl_codec_init                ; -- Begin function cdfl_codec_init
	.p2align	2
_cdfl_codec_init:                       ; @cdfl_codec_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _CD_FRAME_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CD_FRAME_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w9, w1, w8
	msub	w8, w9, w8, w1
	cbz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x20, _CHDERR_CODEC_ERROR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _CHDERR_CODEC_ERROR@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x19, x0
	lsl	w0, w1, #2
	bl	_malloc
	str	x0, [x19]
Lloh5:
	adrp	x20, _CHDERR_OUT_OF_MEMORY@GOTPAGE
Lloh6:
	ldr	x20, [x20, _CHDERR_OUT_OF_MEMORY@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19, #8]
	add	x0, x19, #16
	bl	_flac_decoder_init
	ldr	x8, [x19, #16]
Lloh7:
	adrp	x9, _CHDERR_NONE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CHDERR_NONE@GOTPAGEOFF]
	cmp	x8, #0
	csel	x20, x20, x9, eq
LBB0_4:
	ldr	x0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CD_FRAME_SIZE,4,2              ; @CD_FRAME_SIZE
	.comm	_CHDERR_CODEC_ERROR,8,3         ; @CHDERR_CODEC_ERROR
	.comm	_CHDERR_OUT_OF_MEMORY,8,3       ; @CHDERR_OUT_OF_MEMORY
	.comm	_CHDERR_NONE,8,3                ; @CHDERR_NONE
	.comm	_CD_MAX_SECTOR_DATA,4,2         ; @CD_MAX_SECTOR_DATA
.subsections_via_symbols
