	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_mcbsp_dai_set_clks_src
_omap_mcbsp_dai_set_clks_src:           ## @omap_mcbsp_dai_set_clks_src
	.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
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_OMAP243X_CONTROL_DEVCONF1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_cpu_class_is_omap1
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_OMAP_MCBSP_SYSCLK_CLKS_FCLK@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r12d, (%rax)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_17
LBB0_3:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_cpu_is_omap2420
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	cmpl	$2, (%r13)
	jge	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	callq	_cpu_is_omap343x
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_OMAP343X_CONTROL_DEVCONF1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_7:
	movl	(%r13), %eax
	cmpq	$4, %rax
	ja	LBB0_2
## %bb.8:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	movq	_OMAP2_CONTROL_DEVCONF0@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_12:
	movl	$2, %r15d
	jmp	LBB0_13
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_9:
	movq	_OMAP2_CONTROL_DEVCONF0@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$6, %r15d
	jmp	LBB0_13
LBB0_10:
	movl	$4, %r15d
LBB0_13:
	movq	_OMAP_MCBSP_SYSCLK_CLKS_FCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_omap_ctrl_readl
	movl	$1, %edx
	movl	%r15d, %ecx
	shll	%cl, %edx
	cmpl	%r12d, %ebx
	jne	LBB0_15
## %bb.14:
	notl	%edx
	andl	%edx, %eax
	jmp	LBB0_16
LBB0_15:
	orl	%edx, %eax
LBB0_16:
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_omap_ctrl_writel
	xorl	%ebx, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_OMAP243X_CONTROL_DEVCONF1,4,2  ## @OMAP243X_CONTROL_DEVCONF1
	.comm	_OMAP_MCBSP_SYSCLK_CLKS_FCLK,4,2 ## @OMAP_MCBSP_SYSCLK_CLKS_FCLK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OMAP343X_CONTROL_DEVCONF1,4,2  ## @OMAP343X_CONTROL_DEVCONF1
	.comm	_OMAP2_CONTROL_DEVCONF0,4,2     ## @OMAP2_CONTROL_DEVCONF0
	.no_dead_strip	_omap_mcbsp_dai_set_clks_src
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_mcbsp_dai_set_clks_src
_omap_mcbsp_dai_set_clks_src:           ; @omap_mcbsp_dai_set_clks_src
	.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	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _OMAP243X_CONTROL_DEVCONF1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMAP243X_CONTROL_DEVCONF1@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_cpu_class_is_omap1
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _OMAP_MCBSP_SYSCLK_CLKS_FCLK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OMAP_MCBSP_SYSCLK_CLKS_FCLK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_8
	b	LBB0_15
LBB0_2:
	bl	_cpu_is_omap2420
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x21]
	cmp	w8, #2
	b.ge	LBB0_8
LBB0_4:
	bl	_cpu_is_omap343x
Lloh6:
	adrp	x8, _OMAP343X_CONTROL_DEVCONF1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OMAP343X_CONTROL_DEVCONF1@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w20, w20, w8, eq
	ldr	w8, [x21]
	cmp	w8, #4
	b.hi	LBB0_8
; %bb.5:
	mov	w21, #0
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
Lloh11:
	adrp	x8, _OMAP2_CONTROL_DEVCONF0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OMAP2_CONTROL_DEVCONF0@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
LBB0_7:
	mov	w21, #2
	b	LBB0_11
LBB0_8:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_9:
Lloh17:
	adrp	x8, _OMAP2_CONTROL_DEVCONF0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OMAP2_CONTROL_DEVCONF0@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	mov	w21, #6
	b	LBB0_11
LBB0_10:
	mov	w21, #4
LBB0_11:
Lloh20:
	adrp	x8, _OMAP_MCBSP_SYSCLK_CLKS_FCLK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OMAP_MCBSP_SYSCLK_CLKS_FCLK@GOTPAGEOFF]
Lloh22:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_omap_ctrl_readl
	mov	w8, #1
	lsl	w8, w8, w21
	cmp	w22, w19
	b.ne	LBB0_13
; %bb.12:
	bic	w0, w0, w8
	b	LBB0_14
LBB0_13:
	orr	w0, w0, w8
LBB0_14:
	mov	x1, x20
	bl	_omap_ctrl_writel
	mov	w0, #0
LBB0_15:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
                                        ; -- End function
	.comm	_OMAP243X_CONTROL_DEVCONF1,4,2  ; @OMAP243X_CONTROL_DEVCONF1
	.comm	_OMAP_MCBSP_SYSCLK_CLKS_FCLK,4,2 ; @OMAP_MCBSP_SYSCLK_CLKS_FCLK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OMAP343X_CONTROL_DEVCONF1,4,2  ; @OMAP343X_CONTROL_DEVCONF1
	.comm	_OMAP2_CONTROL_DEVCONF0,4,2     ; @OMAP2_CONTROL_DEVCONF0
	.no_dead_strip	_omap_mcbsp_dai_set_clks_src
.subsections_via_symbols
