	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evm_hw_params
_evm_hw_params:                         ## @evm_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	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	8(%rax), %r12
	xorl	%eax, %eax
	callq	_machine_is_davinci_dm355_evm
	movl	$27000000, %r15d                ## imm = 0x19BFCC0
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	xorl	%eax, %eax
	callq	_machine_is_davinci_dm6467_evm
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	xorl	%eax, %eax
	callq	_machine_is_davinci_evm
	movl	$12288000, %r15d                ## imm = 0xBB8000
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	callq	_machine_is_davinci_da830_evm
	movl	$24576000, %r15d                ## imm = 0x1770000
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_machine_is_davinci_da850_evm
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movq	_AUDIO_FORMAT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_snd_soc_dai_set_fmt
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_snd_soc_dai_set_fmt
	testl	%eax, %eax
	js	LBB0_8
## %bb.11:
	movq	_SND_SOC_CLOCK_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_snd_soc_dai_set_sysclk
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	jmp	LBB0_10
LBB0_8:
	movl	%eax, %ebx
LBB0_9:
	movl	%ebx, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AUDIO_FORMAT,4,2               ## @AUDIO_FORMAT
	.comm	_SND_SOC_CLOCK_OUT,4,2          ## @SND_SOC_CLOCK_OUT
	.no_dead_strip	_evm_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evm_hw_params
_evm_hw_params:                         ; @evm_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	w21, #64704
	movk	w21, #411, lsl #16
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldp	x20, x19, [x8]
	bl	_machine_is_davinci_dm355_evm
	cbnz	x0, LBB0_7
; %bb.1:
	bl	_machine_is_davinci_dm6467_evm
	cbnz	x0, LBB0_7
; %bb.2:
	bl	_machine_is_davinci_evm
	cbz	x0, LBB0_4
; %bb.3:
	mov	w21, #32768
	movk	w21, #187, lsl #16
	b	LBB0_7
LBB0_4:
	bl	_machine_is_davinci_da830_evm
	cbnz	x0, LBB0_6
; %bb.5:
	bl	_machine_is_davinci_da850_evm
	cbz	x0, LBB0_11
LBB0_6:
	mov	w21, #24576000
LBB0_7:
Lloh0:
	adrp	x22, _AUDIO_FORMAT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AUDIO_FORMAT@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_snd_soc_dai_set_fmt
	tbnz	w0, #31, LBB0_10
; %bb.8:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_snd_soc_dai_set_fmt
	tbnz	w0, #31, LBB0_10
; %bb.9:
Lloh2:
	adrp	x8, _SND_SOC_CLOCK_OUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SND_SOC_CLOCK_OUT@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_snd_soc_dai_set_sysclk
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_10:
	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_11:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AUDIO_FORMAT,4,2               ; @AUDIO_FORMAT
	.comm	_SND_SOC_CLOCK_OUT,4,2          ; @SND_SOC_CLOCK_OUT
	.no_dead_strip	_evm_hw_params
.subsections_via_symbols
