	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdzl_codec_init                ## -- Begin function cdzl_codec_init
	.p2align	4, 0x90
_cdzl_codec_init:                       ## @cdzl_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CD_FRAME_SIZE@GOTPCREL(%rip), %r15
	movl	%esi, %eax
	cltd
	idivl	(%r15)
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_CHDERR_CODEC_ERROR@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%esi, %ebx
	movq	%rdi, %r14
	leal	(,%rbx,4), %edi
	callq	_malloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	%ebx, %eax
	cltd
	idivl	(%r15)
	addq	$4, %r14
	movq	_CD_MAX_SECTOR_DATA@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zlib_codec_init                ## TAILCALL
LBB0_3:
	movq	_CHDERR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.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	_CD_MAX_SECTOR_DATA,4,2         ## @CD_MAX_SECTOR_DATA
	.comm	_CHDERR_NONE,8,3                ## @CHDERR_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdzl_codec_init                ; -- Begin function cdzl_codec_init
	.p2align	2
_cdzl_codec_init:                       ; @cdzl_codec_init
	.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
Lloh0:
	adrp	x21, _CD_FRAME_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CD_FRAME_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	sdiv	w9, w1, w8
	msub	w8, w9, w8, w1
	cbz	w8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _CHDERR_CODEC_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CHDERR_CODEC_ERROR@GOTPAGEOFF]
LBB0_2:
	ldr	x0, [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
LBB0_3:
	mov	x19, x1
	mov	x20, x0
	lsl	w0, w1, #2
	bl	_malloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_5
; %bb.4:
	add	x0, x20, #4
	ldr	w8, [x21]
	sdiv	w8, w19, w8
Lloh4:
	adrp	x9, _CD_MAX_SECTOR_DATA@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CD_MAX_SECTOR_DATA@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	mul	w1, w9, w8
	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
	b	_zlib_codec_init
LBB0_5:
Lloh7:
	adrp	x8, _CHDERR_OUT_OF_MEMORY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CHDERR_OUT_OF_MEMORY@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, 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	_CD_MAX_SECTOR_DATA,4,2         ; @CD_MAX_SECTOR_DATA
	.comm	_CHDERR_NONE,8,3                ; @CHDERR_NONE
.subsections_via_symbols
