	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function neo1973_gta02_voice_hw_params
_neo1973_gta02_voice_hw_params:         ## @neo1973_gta02_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_s3c24xx_i2s_get_clockrate
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_params_rate
	cmpl	$8000, %eax                     ## imm = 0x1F40
	jne	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_params_channels
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.4:
	movq	_WM8753_PCM_DIV_6@GOTPCREL(%rip), %rax
	movq	_SND_SOC_DAIFMT_DSP_B@GOTPCREL(%rip), %rcx
	movq	_SND_SOC_DAIFMT_NB_NF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movl	(%rax), %r12d
	movq	_SND_SOC_DAIFMT_CBS_CFS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_soc_dai_set_fmt
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movq	_WM8753_PCMCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SND_SOC_CLOCK_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	$12288000, %edx                 ## imm = 0xBB8000
	callq	_snd_soc_dai_set_sysclk
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movq	_WM8753_PCMDIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_snd_soc_dai_set_clkdiv
	testl	%eax, %eax
	js	LBB0_7
## %bb.10:
	movq	_WM8753_PLL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shrq	$2, %r14
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	$12288000, %ecx                 ## imm = 0xBB8000
	callq	_snd_soc_dai_set_pll
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %ebx
LBB0_8:
	movl	%ebx, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WM8753_PCM_DIV_6,4,2           ## @WM8753_PCM_DIV_6
	.comm	_SND_SOC_DAIFMT_DSP_B,4,2       ## @SND_SOC_DAIFMT_DSP_B
	.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
	.comm	_WM8753_PCMCLK,4,2              ## @WM8753_PCMCLK
	.comm	_SND_SOC_CLOCK_IN,4,2           ## @SND_SOC_CLOCK_IN
	.comm	_WM8753_PCMDIV,4,2              ## @WM8753_PCMDIV
	.comm	_WM8753_PLL2,4,2                ## @WM8753_PLL2
	.no_dead_strip	_neo1973_gta02_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 neo1973_gta02_voice_hw_params
_neo1973_gta02_voice_hw_params:         ; @neo1973_gta02_voice_hw_params
	.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	x21, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x19, [x8]
	bl	_s3c24xx_i2s_get_clockrate
	mov	x20, x0
	mov	x0, x21
	bl	_params_rate
	mov	w8, #8000
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.1:
	mov	x0, x21
	bl	_params_channels
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _WM8753_PCM_DIV_6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM8753_PCM_DIV_6@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _SND_SOC_DAIFMT_DSP_B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SND_SOC_DAIFMT_DSP_B@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SND_SOC_DAIFMT_NB_NF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SND_SOC_DAIFMT_NB_NF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _SND_SOC_DAIFMT_CBS_CFS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SND_SOC_DAIFMT_CBS_CFS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_snd_soc_dai_set_fmt
	tbnz	w0, #31, LBB0_7
; %bb.3:
Lloh12:
	adrp	x8, _WM8753_PCMCLK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WM8753_PCMCLK@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _SND_SOC_CLOCK_IN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SND_SOC_CLOCK_IN@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #32768
	movk	w2, #187, lsl #16
	bl	_snd_soc_dai_set_sysclk
	tbnz	w0, #31, LBB0_7
; %bb.4:
Lloh18:
	adrp	x8, _WM8753_PCMDIV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WM8753_PCMDIV@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_snd_soc_dai_set_clkdiv
	tbnz	w0, #31, LBB0_7
; %bb.5:
Lloh21:
	adrp	x8, _WM8753_PLL2@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WM8753_PLL2@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	lsr	x2, x20, #2
	mov	x0, x19
	mov	w3, #32768
	movk	w3, #187, lsl #16
	bl	_snd_soc_dai_set_pll
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_7
LBB0_6:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WM8753_PCM_DIV_6,4,2           ; @WM8753_PCM_DIV_6
	.comm	_SND_SOC_DAIFMT_DSP_B,4,2       ; @SND_SOC_DAIFMT_DSP_B
	.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
	.comm	_WM8753_PCMCLK,4,2              ; @WM8753_PCMCLK
	.comm	_SND_SOC_CLOCK_IN,4,2           ; @SND_SOC_CLOCK_IN
	.comm	_WM8753_PCMDIV,4,2              ; @WM8753_PCMDIV
	.comm	_WM8753_PLL2,4,2                ; @WM8753_PLL2
	.no_dead_strip	_neo1973_gta02_voice_hw_params
.subsections_via_symbols
