	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8350_set_dai_fmt
_wm8350_set_dai_fmt:                    ## @wm8350_set_dai_fmt
	.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, %r13d
	movq	(%rdi), %r15
	movq	_WM8350_AI_FORMATING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wm8350_codec_read
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_WM8350_AIF_BCLK_INV@GOTPCREL(%rip), %rax
	movq	_WM8350_AIF_LRCLK_INV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movq	_WM8350_AIF_FMT_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_WM8350_AI_DAC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wm8350_codec_read
	movq	_WM8350_BCLK_MSTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	notl	%r12d
	andl	%eax, %r12d
	movq	_WM8350_DAC_LR_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wm8350_codec_read
	movq	_WM8350_DACLRC_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	_WM8350_ADC_LR_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wm8350_codec_read
	movl	%eax, %esi
	movq	_WM8350_ADCLRC_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SND_SOC_DAIFMT_MASTER_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r13d, %ecx
	cmpl	$137, %ecx
	je	LBB0_3
## %bb.1:
	cmpl	$138, %ecx
	jne	LBB0_13
## %bb.2:
	movq	_WM8350_BCLK_MSTR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r12d
	movq	_WM8350_DACLRC_ENA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	orl	%eax, %esi
	jmp	LBB0_4
LBB0_3:
	notl	%eax
	andl	%eax, %esi
LBB0_4:
	movq	_SND_SOC_DAIFMT_FORMAT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	ja	LBB0_13
## %bb.5:
	notl	%r14d
	andl	%r14d, %edx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	orl	$256, %edx                      ## imm = 0x100
	jmp	LBB0_10
LBB0_7:
	orl	$512, %edx                      ## imm = 0x200
	jmp	LBB0_10
LBB0_8:
	movq	_WM8350_AIF_LRCLK_INV@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_9:
	orl	$768, %edx                      ## imm = 0x300
LBB0_10:
	movq	_SND_SOC_DAIFMT_INV_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	addl	$-129, %r13d
	cmpl	$4, %r13d
	ja	LBB0_13
## %bb.11:
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%r13,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_12:
	movq	_WM8350_AIF_LRCLK_INV@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
LBB0_14:
	movq	_WM8350_AIF_LRCLK_INV@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_15:
	movq	_WM8350_AIF_BCLK_INV@GOTPCREL(%rip), %rax
LBB0_16:
	orl	(%rax), %edx
LBB0_17:
	movq	_WM8350_AI_FORMATING@GOTPCREL(%rip), %rax
	movl	%esi, %r14d
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wm8350_codec_write
	movq	_WM8350_AI_DAC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_wm8350_codec_write
	movq	_WM8350_DAC_LR_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_wm8350_codec_write
	movq	_WM8350_ADC_LR_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_wm8350_codec_write
	xorl	%eax, %eax
LBB0_18:
	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_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_6
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
.set L0_1_set_17, LBB0_17-LJTI0_1
.set L0_1_set_12, LBB0_12-LJTI0_1
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_15, LBB0_15-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
LJTI0_1:
	.long	L0_1_set_17
	.long	L0_1_set_12
	.long	L0_1_set_13
	.long	L0_1_set_15
	.long	L0_1_set_14
	.end_data_region
                                        ## -- End function
	.comm	_WM8350_AI_FORMATING,4,2        ## @WM8350_AI_FORMATING
	.comm	_WM8350_AIF_BCLK_INV,4,2        ## @WM8350_AIF_BCLK_INV
	.comm	_WM8350_AIF_LRCLK_INV,4,2       ## @WM8350_AIF_LRCLK_INV
	.comm	_WM8350_AIF_FMT_MASK,4,2        ## @WM8350_AIF_FMT_MASK
	.comm	_WM8350_AI_DAC_CONTROL,4,2      ## @WM8350_AI_DAC_CONTROL
	.comm	_WM8350_BCLK_MSTR,4,2           ## @WM8350_BCLK_MSTR
	.comm	_WM8350_DAC_LR_RATE,4,2         ## @WM8350_DAC_LR_RATE
	.comm	_WM8350_DACLRC_ENA,4,2          ## @WM8350_DACLRC_ENA
	.comm	_WM8350_ADC_LR_RATE,4,2         ## @WM8350_ADC_LR_RATE
	.comm	_WM8350_ADCLRC_ENA,4,2          ## @WM8350_ADCLRC_ENA
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ## @SND_SOC_DAIFMT_MASTER_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ## @SND_SOC_DAIFMT_FORMAT_MASK
	.comm	_SND_SOC_DAIFMT_INV_MASK,4,2    ## @SND_SOC_DAIFMT_INV_MASK
	.no_dead_strip	_wm8350_set_dai_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8350_set_dai_fmt
_wm8350_set_dai_fmt:                    ; @wm8350_set_dai_fmt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _WM8350_AI_FORMATING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM8350_AI_FORMATING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wm8350_codec_read
	mov	x24, x0
Lloh3:
	adrp	x8, _WM8350_AIF_BCLK_INV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM8350_AIF_BCLK_INV@GOTPAGEOFF]
Lloh5:
	ldr	w27, [x8]
Lloh6:
	adrp	x8, _WM8350_AIF_LRCLK_INV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WM8350_AIF_LRCLK_INV@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
Lloh9:
	adrp	x8, _WM8350_AIF_FMT_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WM8350_AIF_FMT_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w28, [x8]
Lloh12:
	adrp	x8, _WM8350_AI_DAC_CONTROL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WM8350_AI_DAC_CONTROL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wm8350_codec_read
Lloh15:
	adrp	x23, _WM8350_BCLK_MSTR@GOTPAGE
Lloh16:
	ldr	x23, [x23, _WM8350_BCLK_MSTR@GOTPAGEOFF]
	ldr	w8, [x23]
	bic	w20, w0, w8
Lloh17:
	adrp	x8, _WM8350_DAC_LR_RATE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WM8350_DAC_LR_RATE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wm8350_codec_read
Lloh20:
	adrp	x26, _WM8350_DACLRC_ENA@GOTPAGE
Lloh21:
	ldr	x26, [x26, _WM8350_DACLRC_ENA@GOTPAGEOFF]
	ldr	w8, [x26]
	bic	w21, w0, w8
Lloh22:
	adrp	x8, _WM8350_ADC_LR_RATE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WM8350_ADC_LR_RATE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wm8350_codec_read
Lloh25:
	adrp	x8, _WM8350_ADCLRC_ENA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WM8350_ADCLRC_ENA@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	and	w9, w9, w22
	cmp	w9, #137
	b.eq	LBB0_3
; %bb.1:
	cmp	w9, #138
	b.ne	LBB0_13
; %bb.2:
	ldr	w9, [x23]
	orr	w20, w9, w20
	ldr	w9, [x26]
	orr	w21, w9, w21
	orr	w23, w8, w0
	b	LBB0_4
LBB0_3:
	bic	w23, w0, w8
LBB0_4:
Lloh31:
	adrp	x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	and	w8, w8, w22
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_13
; %bb.5:
	orr	w9, w25, w27
	orr	w9, w9, w28
	bic	w2, w24, w9
Lloh34:
	adrp	x9, lJTI0_0@PAGE
Lloh35:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	orr	w2, w2, #0x100
	b	LBB0_10
LBB0_7:
	orr	w2, w2, #0x200
	b	LBB0_10
LBB0_8:
Lloh36:
	adrp	x8, _WM8350_AIF_LRCLK_INV@GOTPAGE
Lloh37:
	ldr	x8, [x8, _WM8350_AIF_LRCLK_INV@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	orr	w8, w2, w8
	orr	w2, w8, #0x300
	b	LBB0_10
LBB0_9:
	orr	w2, w2, #0x300
LBB0_10:
Lloh39:
	adrp	x8, _SND_SOC_DAIFMT_INV_MASK@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SND_SOC_DAIFMT_INV_MASK@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	and	w8, w8, w22
	sub	w8, w8, #129
	cmp	w8, #4
	b.hi	LBB0_13
; %bb.11:
Lloh42:
	adrp	x9, lJTI0_1@PAGE
Lloh43:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_12
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_12:
Lloh44:
	adrp	x8, _WM8350_AIF_LRCLK_INV@GOTPAGE
Lloh45:
	ldr	x8, [x8, _WM8350_AIF_LRCLK_INV@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh46:
	adrp	x8, _EINVAL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_14:
Lloh49:
	adrp	x8, _WM8350_AIF_BCLK_INV@GOTPAGE
Lloh50:
	ldr	x8, [x8, _WM8350_AIF_BCLK_INV@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	orr	w2, w8, w2
	b	LBB0_17
LBB0_16:
Lloh51:
	adrp	x8, _WM8350_AIF_LRCLK_INV@GOTPAGE
Lloh52:
	ldr	x8, [x8, _WM8350_AIF_LRCLK_INV@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	adrp	x9, _WM8350_AIF_BCLK_INV@GOTPAGE
Lloh55:
	ldr	x9, [x9, _WM8350_AIF_BCLK_INV@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	orr	w8, w8, w2
	orr	w2, w8, w9
LBB0_17:
Lloh57:
	adrp	x8, _WM8350_AI_FORMATING@GOTPAGE
Lloh58:
	ldr	x8, [x8, _WM8350_AI_FORMATING@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wm8350_codec_write
Lloh60:
	adrp	x8, _WM8350_AI_DAC_CONTROL@GOTPAGE
Lloh61:
	ldr	x8, [x8, _WM8350_AI_DAC_CONTROL@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_wm8350_codec_write
Lloh63:
	adrp	x8, _WM8350_DAC_LR_RATE@GOTPAGE
Lloh64:
	ldr	x8, [x8, _WM8350_DAC_LR_RATE@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_wm8350_codec_write
Lloh66:
	adrp	x8, _WM8350_ADC_LR_RATE@GOTPAGE
Lloh67:
	ldr	x8, [x8, _WM8350_ADC_LR_RATE@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_wm8350_codec_write
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
lJTI0_1:
	.byte	(LBB0_17-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_13-LBB0_12)>>2
	.byte	(LBB0_14-LBB0_12)>>2
	.byte	(LBB0_16-LBB0_12)>>2
                                        ; -- End function
	.comm	_WM8350_AI_FORMATING,4,2        ; @WM8350_AI_FORMATING
	.comm	_WM8350_AIF_BCLK_INV,4,2        ; @WM8350_AIF_BCLK_INV
	.comm	_WM8350_AIF_LRCLK_INV,4,2       ; @WM8350_AIF_LRCLK_INV
	.comm	_WM8350_AIF_FMT_MASK,4,2        ; @WM8350_AIF_FMT_MASK
	.comm	_WM8350_AI_DAC_CONTROL,4,2      ; @WM8350_AI_DAC_CONTROL
	.comm	_WM8350_BCLK_MSTR,4,2           ; @WM8350_BCLK_MSTR
	.comm	_WM8350_DAC_LR_RATE,4,2         ; @WM8350_DAC_LR_RATE
	.comm	_WM8350_DACLRC_ENA,4,2          ; @WM8350_DACLRC_ENA
	.comm	_WM8350_ADC_LR_RATE,4,2         ; @WM8350_ADC_LR_RATE
	.comm	_WM8350_ADCLRC_ENA,4,2          ; @WM8350_ADCLRC_ENA
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ; @SND_SOC_DAIFMT_MASTER_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ; @SND_SOC_DAIFMT_FORMAT_MASK
	.comm	_SND_SOC_DAIFMT_INV_MASK,4,2    ; @SND_SOC_DAIFMT_INV_MASK
	.no_dead_strip	_wm8350_set_dai_fmt
.subsections_via_symbols
