	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8974_set_dai_fmt
_wm8974_set_dai_fmt:                    ## @wm8974_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	(%rdi), %r14
	movq	_WM8974_CLOCK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_snd_soc_read
	movl	%eax, %r15d
	andl	$510, %r15d                     ## imm = 0x1FE
	movq	_SND_SOC_DAIFMT_MASTER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	cmpl	$136, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$137, %eax
	jne	LBB0_9
## %bb.2:
	orl	$1, %r15d
LBB0_3:
	movq	_SND_SOC_DAIFMT_FORMAT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	jae	LBB0_9
## %bb.4:
	movl	$201, %ecx
	btl	%eax, %ecx
	jb	LBB0_5
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_SND_SOC_DAIFMT_INV_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	addl	$-129, %ebx
	cmpl	$4, %ebx
	ja	LBB0_9
## %bb.6:
	cltq
	leaq	l_switch.table.wm8974_set_dai_fmt(%rip), %rcx
	movl	(%rcx,%rax,4), %edx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_8:
	orl	$128, %edx
	jmp	LBB0_11
LBB0_7:
	orl	$256, %edx                      ## imm = 0x100
	jmp	LBB0_11
LBB0_10:
	orl	$384, %edx                      ## imm = 0x180
LBB0_11:
	movq	_WM8974_IFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_soc_write
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_snd_soc_write
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_WM8974_CLOCK,4,2               ## @WM8974_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
	.comm	_WM8974_IFACE,4,2               ## @WM8974_IFACE
	.no_dead_strip	_wm8974_set_dai_fmt
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.wm8974_set_dai_fmt
l_switch.table.wm8974_set_dai_fmt:
	.long	0                               ## 0x0
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	8                               ## 0x8
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	24                              ## 0x18

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8974_set_dai_fmt
_wm8974_set_dai_fmt:                    ; @wm8974_set_dai_fmt
	.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	x21, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x22, _WM8974_CLOCK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WM8974_CLOCK@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_snd_soc_read
	and	w20, w0, #0x1fe
Lloh2:
	adrp	x8, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w21
	cmp	w8, #136
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #137
	b.ne	LBB0_5
; %bb.2:
	orr	w20, w20, #0x1
LBB0_3:
Lloh5:
	adrp	x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w21
	sub	w8, w8, #128
	cmp	w8, #8
	b.hs	LBB0_5
; %bb.4:
	mov	w9, #201
	lsr	w9, w9, w8
	tbnz	w9, #0, LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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_7:
Lloh11:
	adrp	x9, _SND_SOC_DAIFMT_INV_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SND_SOC_DAIFMT_INV_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w9, w9, w21
	sub	w9, w9, #129
	cmp	w9, #4
	b.hi	LBB0_5
; %bb.8:
Lloh14:
	adrp	x10, l_switch.table.wm8974_set_dai_fmt@PAGE
Lloh15:
	add	x10, x10, l_switch.table.wm8974_set_dai_fmt@PAGEOFF
	ldr	w2, [x10, w8, sxtw #2]
Lloh16:
	adrp	x8, lJTI0_0@PAGE
Lloh17:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
	orr	w2, w2, #0x80
	b	LBB0_12
LBB0_10:
	orr	w2, w2, #0x100
	b	LBB0_12
LBB0_11:
	orr	w2, w2, #0x180
LBB0_12:
Lloh18:
	adrp	x8, _WM8974_IFACE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WM8974_IFACE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_soc_write
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_soc_write
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
                                        ; -- End function
	.comm	_WM8974_CLOCK,4,2               ; @WM8974_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
	.comm	_WM8974_IFACE,4,2               ; @WM8974_IFACE
	.no_dead_strip	_wm8974_set_dai_fmt
	.p2align	2                               ; @switch.table.wm8974_set_dai_fmt
l_switch.table.wm8974_set_dai_fmt:
	.long	0                               ; 0x0
	.long	16                              ; 0x10
	.long	16                              ; 0x10
	.long	8                               ; 0x8
	.long	16                              ; 0x10
	.long	16                              ; 0x10
	.long	16                              ; 0x10
	.long	24                              ; 0x18

.subsections_via_symbols
