	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm9081_set_dai_fmt
_wm9081_set_dai_fmt:                    ## @wm9081_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), %r12
	movq	_WM9081_AUDIO_INTERFACE_2@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_snd_soc_read
	movq	_SND_SOC_DAIFMT_MASTER_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%ebx, %esi
	addl	$-137, %esi
	cmpl	$3, %esi
	ja	LBB0_17
## %bb.1:
	movq	_WM9081_AIF_BCLK_INV@GOTPCREL(%rip), %r8
	movq	_WM9081_AIF_LRCLK_INV@GOTPCREL(%rip), %r9
	movq	_WM9081_BCLK_DIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_WM9081_LRCLK_DIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movq	_WM9081_AIF_FMT_MASK@GOTPCREL(%rip), %r11
	movl	%r13d, %ecx
	orl	%r10d, %ecx
	movl	(%r8), %edi
	orl	%ecx, %edi
	orl	(%r9), %edi
	orl	(%r11), %edi
	notl	%edi
	andl	%edi, %eax
	xorl	%edi, %edi
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rsi,4), %rsi
	addq	%rdx, %rsi
	jmpq	*%rsi
LBB0_2:
	orl	%r13d, %eax
	jmp	LBB0_5
LBB0_3:
	orl	%r10d, %eax
	jmp	LBB0_5
LBB0_4:
	orl	%ecx, %eax
LBB0_5:
	movl	$1, %edi
LBB0_6:
	movl	%edi, (%r12)
	movq	_SND_SOC_DAIFMT_FORMAT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	addl	$-128, %ecx
	cmpl	$8, %ecx
	ja	LBB0_17
## %bb.7:
	leaq	LJTI0_1(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_8:
	orl	$1, %eax
	jmp	LBB0_10
LBB0_9:
	orl	$2, %eax
LBB0_10:
	movq	_SND_SOC_DAIFMT_INV_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	addl	$-129, %ebx
	cmpl	$4, %ebx
	ja	LBB0_17
## %bb.11:
	leaq	LJTI0_2(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_18:
	orl	(%r8), %eax
LBB0_19:
	orl	(%r9), %eax
	jmp	LBB0_20
LBB0_13:
	orl	(%r9), %eax
LBB0_14:
	orl	$3, %eax
	movq	_SND_SOC_DAIFMT_INV_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	cmpl	$129, %ebx
	je	LBB0_20
## %bb.15:
	cmpl	$132, %ebx
	jne	LBB0_17
LBB0_16:
	orl	(%r8), %eax
LBB0_20:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_snd_soc_write
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	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_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
.set L0_1_set_10, LBB0_10-LJTI0_1
.set L0_1_set_17, LBB0_17-LJTI0_1
.set L0_1_set_8, LBB0_8-LJTI0_1
.set L0_1_set_9, LBB0_9-LJTI0_1
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
LJTI0_1:
	.long	L0_1_set_10
	.long	L0_1_set_17
	.long	L0_1_set_17
	.long	L0_1_set_8
	.long	L0_1_set_17
	.long	L0_1_set_17
	.long	L0_1_set_9
	.long	L0_1_set_13
	.long	L0_1_set_14
.set L0_2_set_20, LBB0_20-LJTI0_2
.set L0_2_set_19, LBB0_19-LJTI0_2
.set L0_2_set_17, LBB0_17-LJTI0_2
.set L0_2_set_16, LBB0_16-LJTI0_2
.set L0_2_set_18, LBB0_18-LJTI0_2
LJTI0_2:
	.long	L0_2_set_20
	.long	L0_2_set_19
	.long	L0_2_set_17
	.long	L0_2_set_16
	.long	L0_2_set_18
	.end_data_region
                                        ## -- End function
	.comm	_WM9081_AUDIO_INTERFACE_2,4,2   ## @WM9081_AUDIO_INTERFACE_2
	.comm	_WM9081_AIF_BCLK_INV,4,2        ## @WM9081_AIF_BCLK_INV
	.comm	_WM9081_AIF_LRCLK_INV,4,2       ## @WM9081_AIF_LRCLK_INV
	.comm	_WM9081_BCLK_DIR,4,2            ## @WM9081_BCLK_DIR
	.comm	_WM9081_LRCLK_DIR,4,2           ## @WM9081_LRCLK_DIR
	.comm	_WM9081_AIF_FMT_MASK,4,2        ## @WM9081_AIF_FMT_MASK
	.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	_wm9081_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 wm9081_set_dai_fmt
_wm9081_set_dai_fmt:                    ; @wm9081_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	x20, x1
	ldr	x19, [x0]
	ldr	x22, [x19]
Lloh0:
	adrp	x21, _WM9081_AUDIO_INTERFACE_2@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WM9081_AUDIO_INTERFACE_2@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_soc_read
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, w20
	sub	w11, w8, #137
	cmp	w11, #3
	b.hi	LBB0_17
; %bb.1:
	mov	w10, #0
Lloh5:
	adrp	x8, _WM9081_AIF_BCLK_INV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WM9081_AIF_BCLK_INV@GOTPAGEOFF]
	ldr	w15, [x8]
Lloh7:
	adrp	x9, _WM9081_AIF_LRCLK_INV@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WM9081_AIF_LRCLK_INV@GOTPAGEOFF]
	ldr	w16, [x9]
Lloh9:
	adrp	x12, _WM9081_BCLK_DIR@GOTPAGE
Lloh10:
	ldr	x12, [x12, _WM9081_BCLK_DIR@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
Lloh12:
	adrp	x13, _WM9081_LRCLK_DIR@GOTPAGE
Lloh13:
	ldr	x13, [x13, _WM9081_LRCLK_DIR@GOTPAGEOFF]
Lloh14:
	ldr	w13, [x13]
	orr	w14, w13, w12
	orr	w15, w14, w15
	orr	w15, w15, w16
Lloh15:
	adrp	x16, _WM9081_AIF_FMT_MASK@GOTPAGE
Lloh16:
	ldr	x16, [x16, _WM9081_AIF_FMT_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w16, [x16]
	orr	w15, w15, w16
	bic	w2, w0, w15
Lloh18:
	adrp	x15, lJTI0_0@PAGE
Lloh19:
	add	x15, x15, lJTI0_0@PAGEOFF
	adr	x16, LBB0_2
	ldrb	w17, [x15, x11]
	add	x16, x16, x17, lsl #2
	br	x16
LBB0_2:
	orr	w2, w2, w13
	b	LBB0_5
LBB0_3:
	orr	w2, w2, w12
	b	LBB0_5
LBB0_4:
	orr	w2, w14, w2
LBB0_5:
	mov	w10, #1
LBB0_6:
	str	w10, [x22]
Lloh20:
	adrp	x10, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGE
Lloh21:
	ldr	x10, [x10, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	and	w10, w10, w20
	sub	w10, w10, #128
	cmp	w10, #8
	b.hi	LBB0_17
; %bb.7:
Lloh23:
	adrp	x11, lJTI0_1@PAGE
Lloh24:
	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, #0x1
	b	LBB0_10
LBB0_9:
	orr	w2, w2, #0x2
LBB0_10:
Lloh25:
	adrp	x10, _SND_SOC_DAIFMT_INV_MASK@GOTPAGE
Lloh26:
	ldr	x10, [x10, _SND_SOC_DAIFMT_INV_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	and	w10, w10, w20
	sub	w10, w10, #129
	cmp	w10, #4
	b.hi	LBB0_17
; %bb.11:
Lloh28:
	adrp	x11, lJTI0_2@PAGE
Lloh29:
	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, #0x3
Lloh30:
	adrp	x9, _SND_SOC_DAIFMT_INV_MASK@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SND_SOC_DAIFMT_INV_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	and	w9, w9, w20
	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:
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh35:
	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, [x21]
	mov	x0, x19
	bl	_snd_soc_write
	mov	w0, #0
LBB0_20:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-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	_WM9081_AUDIO_INTERFACE_2,4,2   ; @WM9081_AUDIO_INTERFACE_2
	.comm	_WM9081_AIF_BCLK_INV,4,2        ; @WM9081_AIF_BCLK_INV
	.comm	_WM9081_AIF_LRCLK_INV,4,2       ; @WM9081_AIF_LRCLK_INV
	.comm	_WM9081_BCLK_DIR,4,2            ; @WM9081_BCLK_DIR
	.comm	_WM9081_LRCLK_DIR,4,2           ; @WM9081_LRCLK_DIR
	.comm	_WM9081_AIF_FMT_MASK,4,2        ; @WM9081_AIF_FMT_MASK
	.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	_wm9081_set_dai_fmt
.subsections_via_symbols
