	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zylonite_voice_hw_params
_zylonite_voice_hw_params:              ## @zylonite_voice_hw_params
	.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	%rsi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_params_rate
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_params_format
	movl	%eax, %edi
	callq	_snd_pcm_format_physical_width
	movl	%eax, %r13d
	cmpl	$8000, %r14d                    ## imm = 0x1F40
	je	LBB0_1
## %bb.2:
	cmpl	$48000, %r14d                   ## imm = 0xBB80
	je	LBB0_6
## %bb.3:
	cmpl	$16000, %r14d                   ## imm = 0x3E80
	jne	LBB0_5
## %bb.4:
	movl	$6, %r12d
	jmp	LBB0_7
LBB0_1:
	movl	$12, %r12d
	jmp	LBB0_7
LBB0_6:
	movl	$2, %r12d
LBB0_7:
	movq	_PXA_SSP_CLK_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_snd_soc_dai_set_sysclk
	testl	%eax, %eax
	js	LBB0_15
## %bb.8:
	incl	%r13d
	imull	%r13d, %r14d
	shll	$3, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	callq	_snd_soc_dai_set_pll
	testl	%eax, %eax
	js	LBB0_15
## %bb.9:
	movq	_clk_pout@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_10
## %bb.11:
	movq	_WM9713_PCMCLK_DIV@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_10:
	movq	_WM9713_PCMCLK_PLL_DIV@GOTPCREL(%rip), %rax
LBB0_12:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_WM9713_PCMDIV
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_snd_soc_dai_set_clkdiv
	testl	%eax, %eax
	js	LBB0_15
## %bb.13:
	movq	_SND_SOC_DAIFMT_I2S@GOTPCREL(%rip), %r14
	movq	_SND_SOC_DAIFMT_NB_NF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	orl	(%r14), %esi
	movq	_SND_SOC_DAIFMT_CBS_CFS@GOTPCREL(%rip), %r12
	orl	(%r12), %esi
	movq	%r13, %rdi
	callq	_snd_soc_dai_set_fmt
	testl	%eax, %eax
	js	LBB0_15
## %bb.14:
	movl	(%rbx), %esi
	orl	(%r14), %esi
	orl	(%r12), %esi
	movq	%r15, %rdi
	callq	_snd_soc_dai_set_fmt
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PXA_SSP_CLK_AUDIO,4,2          ## @PXA_SSP_CLK_AUDIO
	.comm	_clk_pout,8,3                   ## @clk_pout
	.comm	_WM9713_PCMCLK_PLL_DIV,4,2      ## @WM9713_PCMCLK_PLL_DIV
	.comm	_WM9713_PCMCLK_DIV,4,2          ## @WM9713_PCMCLK_DIV
	.comm	_SND_SOC_DAIFMT_I2S,4,2         ## @SND_SOC_DAIFMT_I2S
	.comm	_SND_SOC_DAIFMT_NB_NF,4,2       ## @SND_SOC_DAIFMT_NB_NF
	.comm	_SND_SOC_DAIFMT_CBS_CFS,4,2     ## @SND_SOC_DAIFMT_CBS_CFS
	.no_dead_strip	_zylonite_voice_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zylonite_voice_hw_params
_zylonite_voice_hw_params:              ; @zylonite_voice_hw_params
	.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	x22, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldp	x19, x20, [x8]
	mov	x0, x1
	bl	_params_rate
	mov	x21, x0
	mov	x0, x22
	bl	_params_format
	bl	_snd_pcm_format_physical_width
	mov	x23, x0
	mov	w8, #8000
	cmp	w21, w8
	b.eq	LBB0_4
; %bb.1:
	mov	w8, #48000
	cmp	w21, w8
	b.eq	LBB0_5
; %bb.2:
	mov	w8, #16000
	cmp	w21, w8
	b.ne	LBB0_11
; %bb.3:
	mov	w22, #6
	b	LBB0_6
LBB0_4:
	mov	w22, #12
	b	LBB0_6
LBB0_5:
	mov	w22, #2
LBB0_6:
Lloh0:
	adrp	x8, _PXA_SSP_CLK_AUDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PXA_SSP_CLK_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
	bl	_snd_soc_dai_set_sysclk
	tbnz	w0, #31, LBB0_12
; %bb.7:
	madd	w8, w21, w23, w21
	lsl	w3, w8, #3
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_snd_soc_dai_set_pll
	tbnz	w0, #31, LBB0_12
; %bb.8:
Lloh3:
	adrp	x8, _clk_pout@GOTPAGE
Lloh4:
	ldr	x8, [x8, _clk_pout@GOTPAGEOFF]
Lloh5:
	adrp	x9, _WM9713_PCMCLK_DIV@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WM9713_PCMCLK_DIV@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x10, _WM9713_PCMCLK_PLL_DIV@GOTPAGE
Lloh9:
	ldr	x10, [x10, _WM9713_PCMCLK_PLL_DIV@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w21, [x8]
	mov	x0, x22
	bl	_WM9713_PCMDIV
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_snd_soc_dai_set_clkdiv
	tbnz	w0, #31, LBB0_12
; %bb.9:
Lloh10:
	adrp	x21, _SND_SOC_DAIFMT_I2S@GOTPAGE
Lloh11:
	ldr	x21, [x21, _SND_SOC_DAIFMT_I2S@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh12:
	adrp	x22, _SND_SOC_DAIFMT_NB_NF@GOTPAGE
Lloh13:
	ldr	x22, [x22, _SND_SOC_DAIFMT_NB_NF@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh14:
	adrp	x23, _SND_SOC_DAIFMT_CBS_CFS@GOTPAGE
Lloh15:
	ldr	x23, [x23, _SND_SOC_DAIFMT_CBS_CFS@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w1, w8, w9
	mov	x0, x20
	bl	_snd_soc_dai_set_fmt
	tbnz	w0, #31, LBB0_12
; %bb.10:
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_snd_soc_dai_set_fmt
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_12
LBB0_11:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PXA_SSP_CLK_AUDIO,4,2          ; @PXA_SSP_CLK_AUDIO
	.comm	_clk_pout,8,3                   ; @clk_pout
	.comm	_WM9713_PCMCLK_PLL_DIV,4,2      ; @WM9713_PCMCLK_PLL_DIV
	.comm	_WM9713_PCMCLK_DIV,4,2          ; @WM9713_PCMCLK_DIV
	.comm	_SND_SOC_DAIFMT_I2S,4,2         ; @SND_SOC_DAIFMT_I2S
	.comm	_SND_SOC_DAIFMT_NB_NF,4,2       ; @SND_SOC_DAIFMT_NB_NF
	.comm	_SND_SOC_DAIFMT_CBS_CFS,4,2     ; @SND_SOC_DAIFMT_CBS_CFS
	.no_dead_strip	_zylonite_voice_hw_params
.subsections_via_symbols
