	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8993_set_dai_fmt
_wm8993_set_dai_fmt:                    ## @wm8993_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, %ebx
	movq	(%rdi), %r14
	movq	(%r14), %r13
	movq	_WM8993_AUDIO_INTERFACE_1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_wm8993_read
	movl	%eax, %r15d
	movq	_WM8993_AUDIO_INTERFACE_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wm8993_read
	movq	_SND_SOC_DAIFMT_MASTER_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	%ebx, %edi
	addl	$-137, %edi
	cmpl	$3, %edi
	ja	LBB0_16
## %bb.1:
	movq	%r12, %r11
	movq	_WM8993_BCLK_DIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_WM8993_AIF_BCLK_INV@GOTPCREL(%rip), %r8
	movl	(%r8), %ecx
	orl	%r10d, %ecx
	movq	_WM8993_AIF_LRCLK_INV@GOTPCREL(%rip), %r9
	orl	(%r9), %ecx
	movq	_WM8993_AIF_FMT_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%ecx, %r15d
	movq	_WM8993_LRCLK_DIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %r12d
	notl	%r12d
	andl	%eax, %r12d
	xorl	%edx, %edx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdi,4), %rdi
	addq	%rsi, %rdi
	jmpq	*%rdi
LBB0_2:
	orl	%r10d, %r15d
	movl	$1, %edx
	jmp	LBB0_5
LBB0_3:
	orl	%r10d, %r15d
LBB0_4:
	orl	%eax, %ecx
	movl	$1, %edx
	movl	%ecx, %r12d
LBB0_5:
	movl	%edx, (%r13)
	movq	_SND_SOC_DAIFMT_FORMAT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_16
## %bb.6:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	orl	$8, %r15d
	jmp	LBB0_9
LBB0_8:
	orl	$16, %r15d
LBB0_9:
	movq	_SND_SOC_DAIFMT_INV_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	addl	$-129, %ebx
	cmpl	$4, %ebx
	ja	LBB0_16
## %bb.10:
	leaq	LJTI0_2(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_17:
	orl	(%r8), %r15d
LBB0_18:
	orl	(%r9), %r15d
	jmp	LBB0_19
LBB0_12:
	orl	(%r9), %r15d
LBB0_13:
	orl	$24, %r15d
	movq	_SND_SOC_DAIFMT_INV_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	cmpl	$129, %ebx
	je	LBB0_19
## %bb.14:
	cmpl	$132, %ebx
	jne	LBB0_16
LBB0_15:
	orl	(%r8), %r15d
LBB0_19:
	movl	(%r11), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_wm8993_write
	movq	_WM8993_AUDIO_INTERFACE_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_wm8993_write
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_20:
	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_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_3
.set L0_1_set_9, LBB0_9-LJTI0_1
.set L0_1_set_16, LBB0_16-LJTI0_1
.set L0_1_set_7, LBB0_7-LJTI0_1
.set L0_1_set_8, LBB0_8-LJTI0_1
.set L0_1_set_12, LBB0_12-LJTI0_1
.set L0_1_set_13, LBB0_13-LJTI0_1
LJTI0_1:
	.long	L0_1_set_9
	.long	L0_1_set_16
	.long	L0_1_set_16
	.long	L0_1_set_7
	.long	L0_1_set_16
	.long	L0_1_set_16
	.long	L0_1_set_8
	.long	L0_1_set_12
	.long	L0_1_set_13
.set L0_2_set_19, LBB0_19-LJTI0_2
.set L0_2_set_18, LBB0_18-LJTI0_2
.set L0_2_set_16, LBB0_16-LJTI0_2
.set L0_2_set_15, LBB0_15-LJTI0_2
.set L0_2_set_17, LBB0_17-LJTI0_2
LJTI0_2:
	.long	L0_2_set_19
	.long	L0_2_set_18
	.long	L0_2_set_16
	.long	L0_2_set_15
	.long	L0_2_set_17
	.end_data_region
                                        ## -- End function
	.comm	_WM8993_AUDIO_INTERFACE_1,4,2   ## @WM8993_AUDIO_INTERFACE_1
	.comm	_WM8993_AUDIO_INTERFACE_4,4,2   ## @WM8993_AUDIO_INTERFACE_4
	.comm	_WM8993_BCLK_DIR,4,2            ## @WM8993_BCLK_DIR
	.comm	_WM8993_AIF_BCLK_INV,4,2        ## @WM8993_AIF_BCLK_INV
	.comm	_WM8993_AIF_LRCLK_INV,4,2       ## @WM8993_AIF_LRCLK_INV
	.comm	_WM8993_AIF_FMT_MASK,4,2        ## @WM8993_AIF_FMT_MASK
	.comm	_WM8993_LRCLK_DIR,4,2           ## @WM8993_LRCLK_DIR
	.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	_wm8993_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 wm8993_set_dai_fmt
_wm8993_set_dai_fmt:                    ; @wm8993_set_dai_fmt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	ldr	x19, [x0]
	ldr	x24, [x19]
Lloh0:
	adrp	x22, _WM8993_AUDIO_INTERFACE_1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WM8993_AUDIO_INTERFACE_1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_wm8993_read
	mov	x20, x0
Lloh2:
	adrp	x23, _WM8993_AUDIO_INTERFACE_4@GOTPAGE
Lloh3:
	ldr	x23, [x23, _WM8993_AUDIO_INTERFACE_4@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_wm8993_read
Lloh4:
	adrp	x8, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	and	w8, w8, w21
	sub	w12, w8, #137
	cmp	w12, #3
	b.hi	LBB0_17
; %bb.1:
	mov	w10, #0
Lloh7:
	adrp	x8, _WM8993_BCLK_DIR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WM8993_BCLK_DIR@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x8]
Lloh10:
	adrp	x8, _WM8993_AIF_BCLK_INV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WM8993_AIF_BCLK_INV@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w13, w9, w11
Lloh12:
	adrp	x9, _WM8993_AIF_LRCLK_INV@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WM8993_AIF_LRCLK_INV@GOTPAGEOFF]
	ldr	w14, [x9]
	orr	w13, w13, w14
Lloh14:
	adrp	x14, _WM8993_AIF_FMT_MASK@GOTPAGE
Lloh15:
	ldr	x14, [x14, _WM8993_AIF_FMT_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w14, [x14]
	orr	w13, w13, w14
Lloh17:
	adrp	x14, _WM8993_LRCLK_DIR@GOTPAGE
Lloh18:
	ldr	x14, [x14, _WM8993_LRCLK_DIR@GOTPAGEOFF]
	bic	w2, w20, w13
Lloh19:
	ldr	w13, [x14]
Lloh20:
	adrp	x14, lJTI0_0@PAGE
Lloh21:
	add	x14, x14, lJTI0_0@PAGEOFF
	adr	x15, LBB0_2
	ldrb	w16, [x14, x12]
	add	x15, x15, x16, lsl #2
	bic	w20, w0, w13
	br	x15
LBB0_2:
	orr	w2, w2, w11
	b	LBB0_5
LBB0_3:
	orr	w2, w2, w11
LBB0_4:
	orr	w20, w13, w0
LBB0_5:
	mov	w10, #1
LBB0_6:
	str	w10, [x24]
Lloh22:
	adrp	x10, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGE
Lloh23:
	ldr	x10, [x10, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	and	w10, w10, w21
	sub	w10, w10, #128
	cmp	w10, #8
	b.hi	LBB0_17
; %bb.7:
Lloh25:
	adrp	x11, lJTI0_1@PAGE
Lloh26:
	add	x11, x11, lJTI0_1@PAGEOFF
	adr	x12, LBB0_8
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_8:
	orr	w2, w2, #0x8
	b	LBB0_10
LBB0_9:
	orr	w2, w2, #0x10
LBB0_10:
Lloh27:
	adrp	x10, _SND_SOC_DAIFMT_INV_MASK@GOTPAGE
Lloh28:
	ldr	x10, [x10, _SND_SOC_DAIFMT_INV_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	and	w10, w10, w21
	sub	w10, w10, #129
	cmp	w10, #4
	b.hi	LBB0_17
; %bb.11:
Lloh30:
	adrp	x11, lJTI0_2@PAGE
Lloh31:
	add	x11, x11, lJTI0_2@PAGEOFF
	adr	x12, LBB0_12
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_12:
	ldr	w8, [x9]
	orr	w2, w8, w2
	b	LBB0_19
LBB0_13:
	ldr	w9, [x9]
	orr	w2, w9, w2
LBB0_14:
	orr	w2, w2, #0x18
Lloh32:
	adrp	x9, _SND_SOC_DAIFMT_INV_MASK@GOTPAGE
Lloh33:
	ldr	x9, [x9, _SND_SOC_DAIFMT_INV_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	and	w9, w9, w21
	cmp	w9, #129
	b.eq	LBB0_19
; %bb.15:
	cmp	w9, #132
	b.ne	LBB0_17
LBB0_16:
	ldr	w8, [x8]
	orr	w2, w8, w2
	b	LBB0_19
LBB0_17:
Lloh35:
	adrp	x8, _EINVAL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_20
LBB0_18:
	ldr	w8, [x8]
	ldr	w9, [x9]
	orr	w8, w8, w2
	orr	w2, w8, w9
LBB0_19:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_wm8993_write
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
	bl	_wm8993_write
	mov	w0, #0
LBB0_20:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_17-LBB0_8)>>2
	.byte	(LBB0_17-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_17-LBB0_8)>>2
	.byte	(LBB0_17-LBB0_8)>>2
	.byte	(LBB0_9-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
lJTI0_2:
	.byte	(LBB0_19-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_17-LBB0_12)>>2
	.byte	(LBB0_16-LBB0_12)>>2
	.byte	(LBB0_18-LBB0_12)>>2
                                        ; -- End function
	.comm	_WM8993_AUDIO_INTERFACE_1,4,2   ; @WM8993_AUDIO_INTERFACE_1
	.comm	_WM8993_AUDIO_INTERFACE_4,4,2   ; @WM8993_AUDIO_INTERFACE_4
	.comm	_WM8993_BCLK_DIR,4,2            ; @WM8993_BCLK_DIR
	.comm	_WM8993_AIF_BCLK_INV,4,2        ; @WM8993_AIF_BCLK_INV
	.comm	_WM8993_AIF_LRCLK_INV,4,2       ; @WM8993_AIF_LRCLK_INV
	.comm	_WM8993_AIF_FMT_MASK,4,2        ; @WM8993_AIF_FMT_MASK
	.comm	_WM8993_LRCLK_DIR,4,2           ; @WM8993_LRCLK_DIR
	.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	_wm8993_set_dai_fmt
.subsections_via_symbols
