	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function neo1973_gta02_hifi_hw_params
_neo1973_gta02_hifi_hw_params:          ## @neo1973_gta02_hifi_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
	subq	$24, %rsp
	.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), %r13
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_s3c24xx_i2s_get_clockrate
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_params_rate
	cmpl	$44099, %eax                    ## imm = 0xAC43
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jg	LBB0_5
## %bb.1:
	cmpl	$15999, %eax                    ## imm = 0x3E7F
	jg	LBB0_9
## %bb.2:
	cmpl	$8000, %eax                     ## imm = 0x1F40
	je	LBB0_16
## %bb.3:
	movl	$0, %r13d
	cmpl	$11025, %eax                    ## imm = 0x2B11
	jne	LBB0_20
## %bb.4:
	movq	_WM8753_BCLK_DIV_16@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_5:
	cmpl	$88199, %eax                    ## imm = 0x15887
	jg	LBB0_12
## %bb.6:
	cmpl	$44100, %eax                    ## imm = 0xAC44
	je	LBB0_17
## %bb.7:
	movl	$0, %r13d
	cmpl	$48000, %eax                    ## imm = 0xBB80
	jne	LBB0_20
## %bb.8:
	movq	_WM8753_BCLK_DIV_4@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	cmpl	$16000, %eax                    ## imm = 0x3E80
	je	LBB0_16
## %bb.10:
	movl	$0, %r13d
	cmpl	$22050, %eax                    ## imm = 0x5622
	jne	LBB0_20
## %bb.11:
	movq	_WM8753_BCLK_DIV_8@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_12:
	cmpl	$88200, %eax                    ## imm = 0x15888
	je	LBB0_18
## %bb.13:
	movl	$0, %r13d
	cmpl	$96000, %eax                    ## imm = 0x17700
	jne	LBB0_20
## %bb.14:
	movq	_WM8753_BCLK_DIV_2@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %r14d
LBB0_16:
	movl	$12288000, %r13d                ## imm = 0xBB8000
	jmp	LBB0_20
LBB0_17:
	movq	_WM8753_BCLK_DIV_4@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:
	movq	_WM8753_BCLK_DIV_2@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %r14d
	movl	$11289600, %r13d                ## imm = 0xAC4400
LBB0_20:
	movq	_SND_SOC_DAIFMT_I2S@GOTPCREL(%rip), %rbx
	movq	_SND_SOC_DAIFMT_NB_NF@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	orl	(%rbx), %esi
	movq	_SND_SOC_DAIFMT_CBM_CFM@GOTPCREL(%rip), %r12
	orl	(%r12), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_snd_soc_dai_set_fmt
	testl	%eax, %eax
	js	LBB0_27
## %bb.21:
	movl	(%r15), %esi
	orl	(%rbx), %esi
	orl	(%r12), %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_snd_soc_dai_set_fmt
	testl	%eax, %eax
	js	LBB0_27
## %bb.22:
	movq	_WM8753_MCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SND_SOC_CLOCK_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_snd_soc_dai_set_sysclk
	testl	%eax, %eax
	js	LBB0_27
## %bb.23:
	movq	_S3C24XX_DIV_MCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_S3C2410_IISMOD_32FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_soc_dai_set_clkdiv
	testl	%eax, %eax
	js	LBB0_27
## %bb.24:
	movq	_WM8753_BCLKDIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_snd_soc_dai_set_clkdiv
	testl	%eax, %eax
	js	LBB0_27
## %bb.25:
	movq	_S3C24XX_DIV_PRESCALER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$4, %edi
	movl	$4, %esi
	callq	_S3C24XX_PRESCALE
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_snd_soc_dai_set_clkdiv
	testl	%eax, %eax
	js	LBB0_27
## %bb.26:
	movq	_WM8753_PLL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	shrq	$2, %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_snd_soc_dai_set_pll
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_27:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8753_BCLK_DIV_4,4,2          ## @WM8753_BCLK_DIV_4
	.comm	_WM8753_BCLK_DIV_2,4,2          ## @WM8753_BCLK_DIV_2
	.comm	_WM8753_BCLK_DIV_16,4,2         ## @WM8753_BCLK_DIV_16
	.comm	_WM8753_BCLK_DIV_8,4,2          ## @WM8753_BCLK_DIV_8
	.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_CBM_CFM,4,2     ## @SND_SOC_DAIFMT_CBM_CFM
	.comm	_WM8753_MCLK,4,2                ## @WM8753_MCLK
	.comm	_SND_SOC_CLOCK_IN,4,2           ## @SND_SOC_CLOCK_IN
	.comm	_S3C24XX_DIV_MCLK,4,2           ## @S3C24XX_DIV_MCLK
	.comm	_S3C2410_IISMOD_32FS,4,2        ## @S3C2410_IISMOD_32FS
	.comm	_WM8753_BCLKDIV,4,2             ## @WM8753_BCLKDIV
	.comm	_S3C24XX_DIV_PRESCALER,4,2      ## @S3C24XX_DIV_PRESCALER
	.comm	_WM8753_PLL1,4,2                ## @WM8753_PLL1
	.no_dead_strip	_neo1973_gta02_hifi_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_hifi_hw_params
_neo1973_gta02_hifi_hw_params:          ; @neo1973_gta02_hifi_hw_params
	.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	x22, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldp	x21, x19, [x8]
	bl	_s3c24xx_i2s_get_clockrate
	mov	x20, x0
	mov	x0, x22
	bl	_params_rate
	mov	w22, #0
	mov	w8, #44099
	cmp	w0, w8
	b.gt	LBB0_5
; %bb.1:
	mov	w8, #15999
	cmp	w0, w8
	b.gt	LBB0_9
; %bb.2:
	mov	w8, #8000
	cmp	w0, w8
	b.eq	LBB0_15
; %bb.3:
	mov	w8, #11025
	mov	x23, x22
	cmp	w0, w8
	b.ne	LBB0_21
; %bb.4:
	mov	w22, #17408
	movk	w22, #172, lsl #16
Lloh0:
	adrp	x8, _WM8753_BCLK_DIV_16@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM8753_BCLK_DIV_16@GOTPAGEOFF]
	b	LBB0_20
LBB0_5:
	mov	w8, #22663
	movk	w8, #1, lsl #16
	cmp	w0, w8
	b.gt	LBB0_12
; %bb.6:
	mov	w8, #44100
	cmp	w0, w8
	b.eq	LBB0_16
; %bb.7:
	mov	w8, #48000
	mov	x23, x22
	cmp	w0, w8
	b.ne	LBB0_21
; %bb.8:
	mov	w22, #32768
	movk	w22, #187, lsl #16
	b	LBB0_17
LBB0_9:
	mov	w8, #16000
	cmp	w0, w8
	b.eq	LBB0_15
; %bb.10:
	mov	w8, #22050
	mov	x23, x22
	cmp	w0, w8
	b.ne	LBB0_21
; %bb.11:
	mov	w22, #17408
	movk	w22, #172, lsl #16
Lloh2:
	adrp	x8, _WM8753_BCLK_DIV_8@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WM8753_BCLK_DIV_8@GOTPAGEOFF]
	b	LBB0_20
LBB0_12:
	mov	w8, #22664
	movk	w8, #1, lsl #16
	cmp	w0, w8
	b.eq	LBB0_18
; %bb.13:
	mov	w8, #30464
	movk	w8, #1, lsl #16
	mov	x23, x22
	cmp	w0, w8
	b.ne	LBB0_21
; %bb.14:
	mov	w22, #32768
	movk	w22, #187, lsl #16
	b	LBB0_19
LBB0_15:
	mov	w23, #0
	mov	w22, #32768
	movk	w22, #187, lsl #16
	b	LBB0_21
LBB0_16:
	mov	w22, #17408
	movk	w22, #172, lsl #16
LBB0_17:
Lloh4:
	adrp	x8, _WM8753_BCLK_DIV_4@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WM8753_BCLK_DIV_4@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	mov	w22, #17408
	movk	w22, #172, lsl #16
LBB0_19:
Lloh6:
	adrp	x8, _WM8753_BCLK_DIV_2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WM8753_BCLK_DIV_2@GOTPAGEOFF]
LBB0_20:
	ldr	w23, [x8]
LBB0_21:
Lloh8:
	adrp	x24, _SND_SOC_DAIFMT_I2S@GOTPAGE
Lloh9:
	ldr	x24, [x24, _SND_SOC_DAIFMT_I2S@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh10:
	adrp	x25, _SND_SOC_DAIFMT_NB_NF@GOTPAGE
Lloh11:
	ldr	x25, [x25, _SND_SOC_DAIFMT_NB_NF@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w9, w8
Lloh12:
	adrp	x26, _SND_SOC_DAIFMT_CBM_CFM@GOTPAGE
Lloh13:
	ldr	x26, [x26, _SND_SOC_DAIFMT_CBM_CFM@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_snd_soc_dai_set_fmt
	tbnz	w0, #31, LBB0_28
; %bb.22:
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w1, w8, w9
	mov	x0, x21
	bl	_snd_soc_dai_set_fmt
	tbnz	w0, #31, LBB0_28
; %bb.23:
Lloh14:
	adrp	x8, _WM8753_MCLK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WM8753_MCLK@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _SND_SOC_CLOCK_IN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SND_SOC_CLOCK_IN@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_snd_soc_dai_set_sysclk
	tbnz	w0, #31, LBB0_28
; %bb.24:
Lloh20:
	adrp	x8, _S3C24XX_DIV_MCLK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _S3C24XX_DIV_MCLK@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _S3C2410_IISMOD_32FS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _S3C2410_IISMOD_32FS@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_snd_soc_dai_set_clkdiv
	tbnz	w0, #31, LBB0_28
; %bb.25:
Lloh26:
	adrp	x8, _WM8753_BCLKDIV@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WM8753_BCLKDIV@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_snd_soc_dai_set_clkdiv
	tbnz	w0, #31, LBB0_28
; %bb.26:
Lloh29:
	adrp	x8, _S3C24XX_DIV_PRESCALER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _S3C24XX_DIV_PRESCALER@GOTPAGEOFF]
Lloh31:
	ldr	w23, [x8]
	mov	w0, #4
	mov	w1, #4
	bl	_S3C24XX_PRESCALE
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_snd_soc_dai_set_clkdiv
	tbnz	w0, #31, LBB0_28
; %bb.27:
Lloh32:
	adrp	x8, _WM8753_PLL1@GOTPAGE
Lloh33:
	ldr	x8, [x8, _WM8753_PLL1@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	lsr	x2, x20, #2
	mov	x0, x19
	mov	x3, x22
	bl	_snd_soc_dai_set_pll
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_28:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8753_BCLK_DIV_4,4,2          ; @WM8753_BCLK_DIV_4
	.comm	_WM8753_BCLK_DIV_2,4,2          ; @WM8753_BCLK_DIV_2
	.comm	_WM8753_BCLK_DIV_16,4,2         ; @WM8753_BCLK_DIV_16
	.comm	_WM8753_BCLK_DIV_8,4,2          ; @WM8753_BCLK_DIV_8
	.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_CBM_CFM,4,2     ; @SND_SOC_DAIFMT_CBM_CFM
	.comm	_WM8753_MCLK,4,2                ; @WM8753_MCLK
	.comm	_SND_SOC_CLOCK_IN,4,2           ; @SND_SOC_CLOCK_IN
	.comm	_S3C24XX_DIV_MCLK,4,2           ; @S3C24XX_DIV_MCLK
	.comm	_S3C2410_IISMOD_32FS,4,2        ; @S3C2410_IISMOD_32FS
	.comm	_WM8753_BCLKDIV,4,2             ; @WM8753_BCLKDIV
	.comm	_S3C24XX_DIV_PRESCALER,4,2      ; @S3C24XX_DIV_PRESCALER
	.comm	_WM8753_PLL1,4,2                ; @WM8753_PLL1
	.no_dead_strip	_neo1973_gta02_hifi_hw_params
.subsections_via_symbols
