	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8940_set_dai_fmt
_wm8940_set_dai_fmt:                    ## @wm8940_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	_WM8940_IFACE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_snd_soc_read
	movl	%eax, %r15d
	movq	_WM8940_CLOCK@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_snd_soc_read
	andl	$510, %eax                      ## imm = 0x1FE
	movq	_SND_SOC_DAIFMT_MASTER_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	cmpl	$137, %ecx
	je	LBB0_3
## %bb.1:
	cmpl	$138, %ecx
	jne	LBB0_17
## %bb.2:
	orl	$1, %eax
LBB0_3:
	andl	$65127, %r15d                   ## imm = 0xFE67
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_snd_soc_write
	movq	_SND_SOC_DAIFMT_FORMAT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	addl	$-131, %eax
	cmpl	$5, %eax
	ja	LBB0_9
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	orl	$8, %r15d
	jmp	LBB0_9
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_5:
	orl	$16, %r15d
	jmp	LBB0_9
LBB0_8:
	orl	$152, %r15d
	jmp	LBB0_9
LBB0_7:
	orl	$24, %r15d
LBB0_9:
	movq	_SND_SOC_DAIFMT_INV_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	cmpl	$133, %ebx
	je	LBB0_14
## %bb.10:
	cmpl	$132, %ebx
	je	LBB0_13
## %bb.11:
	cmpl	$130, %ebx
	jne	LBB0_15
## %bb.12:
	orl	$128, %r15d
	jmp	LBB0_15
LBB0_14:
	orl	$384, %r15d                     ## imm = 0x180
	jmp	LBB0_15
LBB0_13:
	orl	$256, %r15d                     ## imm = 0x100
LBB0_15:
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_snd_soc_write
	xorl	%eax, %eax
LBB0_16:
	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_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_WM8940_IFACE,4,2               ## @WM8940_IFACE
	.comm	_WM8940_CLOCK,4,2               ## @WM8940_CLOCK
	.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	_wm8940_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 wm8940_set_dai_fmt
_wm8940_set_dai_fmt:                    ; @wm8940_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	x20, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x22, _WM8940_IFACE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WM8940_IFACE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_snd_soc_read
	mov	x21, x0
Lloh2:
	adrp	x23, _WM8940_CLOCK@GOTPAGE
Lloh3:
	ldr	x23, [x23, _WM8940_CLOCK@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_snd_soc_read
	and	w2, w0, #0x1fe
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, w20
	cmp	w8, #137
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #138
	b.ne	LBB0_6
; %bb.2:
	orr	w2, w2, #0x1
LBB0_3:
	mov	w8, #65127
	and	w21, w21, w8
	ldr	w1, [x23]
	mov	x0, x19
	bl	_snd_soc_write
Lloh7:
	adrp	x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w8, w8, w20
	sub	w8, w8, #131
	cmp	w8, #5
	b.hi	LBB0_10
; %bb.4:
Lloh10:
	adrp	x9, lJTI0_0@PAGE
Lloh11:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	orr	w21, w21, #0x8
	b	LBB0_10
LBB0_6:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_7:
	orr	w21, w21, #0x10
	b	LBB0_10
LBB0_8:
	mov	w8, #152
	orr	w21, w21, w8
	b	LBB0_10
LBB0_9:
	orr	w21, w21, #0x18
LBB0_10:
Lloh15:
	adrp	x8, _SND_SOC_DAIFMT_INV_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SND_SOC_DAIFMT_INV_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w8, w8, w20
	orr	w9, w21, #0x180
	orr	w10, w21, #0x100
	orr	w11, w21, #0x80
	cmp	w8, #130
	csel	w11, w21, w11, ne
	cmp	w8, #132
	csel	w10, w10, w11, eq
	cmp	w8, #133
	csel	w2, w9, w10, eq
	ldr	w1, [x22]
	mov	x0, x19
	bl	_snd_soc_write
	mov	w0, #0
LBB0_11:
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
                                        ; -- End function
	.comm	_WM8940_IFACE,4,2               ; @WM8940_IFACE
	.comm	_WM8940_CLOCK,4,2               ; @WM8940_CLOCK
	.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	_wm8940_set_dai_fmt
.subsections_via_symbols
