	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8903_set_dai_fmt
_wm8903_set_dai_fmt:                    ## @wm8903_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	_WM8903_AUDIO_INTERFACE_1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_snd_soc_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	_WM8903_LRCLK_DIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movq	_WM8903_BCLK_DIR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%esi, %edx
	orl	%r12d, %edx
	movq	_WM8903_AIF_FMT_MASK@GOTPCREL(%rip), %r11
	movq	_WM8903_AIF_LRCLK_INV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_WM8903_AIF_BCLK_INV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r8d, %r10d
	orl	%r9d, %r10d
	movl	(%r11), %ecx
	orl	%r10d, %ecx
	orl	%edx, %ecx
	notl	%ecx
	andl	%ecx, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rdi,4), %rdi
	addq	%rcx, %rdi
	jmpq	*%rdi
LBB0_2:
	orl	%r12d, %eax
	jmp	LBB0_5
LBB0_3:
	orl	%esi, %eax
	jmp	LBB0_5
LBB0_4:
	orl	%edx, %eax
LBB0_5:
	movq	_SND_SOC_DAIFMT_FORMAT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%ebx, %edx
	addl	$-128, %edx
	cmpl	$8, %edx
	ja	LBB0_16
## %bb.6:
	movl	$3, %ecx
	leaq	LJTI0_1(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_7:
	orl	$1, %eax
	jmp	LBB0_9
LBB0_8:
	orl	$2, %eax
LBB0_9:
	movq	_SND_SOC_DAIFMT_INV_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	addl	$-129, %ebx
	cmpl	$4, %ebx
	ja	LBB0_16
## %bb.10:
	leaq	LJTI0_2(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_11:
	orl	%r9d, %eax
	jmp	LBB0_19
LBB0_12:
	orl	$3, %r9d
	movl	%r9d, %ecx
LBB0_13:
	orl	%ecx, %eax
	movq	_SND_SOC_DAIFMT_INV_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	cmpl	$129, %ebx
	je	LBB0_19
## %bb.14:
	cmpl	$132, %ebx
	jne	LBB0_16
LBB0_15:
	orl	%r8d, %eax
	jmp	LBB0_19
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_18:
	orl	%r10d, %eax
LBB0_19:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_snd_soc_write
	xorl	%eax, %eax
LBB0_20:
	popq	%rbx
	popq	%r12
	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_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_5
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
.set L0_1_set_7, LBB0_7-LJTI0_1
.set L0_1_set_16, LBB0_16-LJTI0_1
.set L0_1_set_9, LBB0_9-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_7
	.long	L0_1_set_16
	.long	L0_1_set_16
	.long	L0_1_set_9
	.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_11, LBB0_11-LJTI0_2
.set L0_2_set_16, LBB0_16-LJTI0_2
.set L0_2_set_15, LBB0_15-LJTI0_2
.set L0_2_set_18, LBB0_18-LJTI0_2
LJTI0_2:
	.long	L0_2_set_19
	.long	L0_2_set_11
	.long	L0_2_set_16
	.long	L0_2_set_15
	.long	L0_2_set_18
	.end_data_region
                                        ## -- End function
	.comm	_WM8903_AUDIO_INTERFACE_1,4,2   ## @WM8903_AUDIO_INTERFACE_1
	.comm	_WM8903_LRCLK_DIR,4,2           ## @WM8903_LRCLK_DIR
	.comm	_WM8903_BCLK_DIR,4,2            ## @WM8903_BCLK_DIR
	.comm	_WM8903_AIF_FMT_MASK,4,2        ## @WM8903_AIF_FMT_MASK
	.comm	_WM8903_AIF_LRCLK_INV,4,2       ## @WM8903_AIF_LRCLK_INV
	.comm	_WM8903_AIF_BCLK_INV,4,2        ## @WM8903_AIF_BCLK_INV
	.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	_wm8903_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 wm8903_set_dai_fmt
_wm8903_set_dai_fmt:                    ; @wm8903_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]
Lloh0:
	adrp	x21, _WM8903_AUDIO_INTERFACE_1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WM8903_AUDIO_INTERFACE_1@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_16
; %bb.1:
Lloh5:
	adrp	x8, _WM8903_LRCLK_DIR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WM8903_LRCLK_DIR@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x8]
Lloh8:
	adrp	x8, _WM8903_BCLK_DIR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WM8903_BCLK_DIR@GOTPAGEOFF]
Lloh10:
	ldr	w13, [x8]
	orr	w14, w13, w12
Lloh11:
	adrp	x8, _WM8903_AIF_FMT_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WM8903_AIF_FMT_MASK@GOTPAGEOFF]
Lloh13:
	adrp	x9, _WM8903_AIF_LRCLK_INV@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WM8903_AIF_LRCLK_INV@GOTPAGEOFF]
Lloh15:
	ldr	w15, [x8]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x8, _WM8903_AIF_BCLK_INV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WM8903_AIF_BCLK_INV@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w10, w8, w9
	orr	w15, w10, w15
	orr	w15, w15, w14
	bic	w2, w0, w15
Lloh20:
	adrp	x15, lJTI0_0@PAGE
Lloh21:
	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, w12
	b	LBB0_5
LBB0_3:
	orr	w2, w2, w13
	b	LBB0_5
LBB0_4:
	orr	w2, w2, w14
LBB0_5:
Lloh22:
	adrp	x11, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGE
Lloh23:
	ldr	x11, [x11, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
	and	w11, w11, w20
	sub	w12, w11, #128
	cmp	w12, #8
	b.hi	LBB0_16
; %bb.6:
	mov	w11, #3
Lloh25:
	adrp	x13, lJTI0_1@PAGE
Lloh26:
	add	x13, x13, lJTI0_1@PAGEOFF
	adr	x14, LBB0_7
	ldrb	w15, [x13, x12]
	add	x14, x14, x15, lsl #2
	br	x14
LBB0_7:
	orr	w2, w2, #0x1
	b	LBB0_9
LBB0_8:
	orr	w2, w2, #0x2
LBB0_9:
Lloh27:
	adrp	x11, _SND_SOC_DAIFMT_INV_MASK@GOTPAGE
Lloh28:
	ldr	x11, [x11, _SND_SOC_DAIFMT_INV_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	and	w11, w11, w20
	sub	w11, w11, #129
	cmp	w11, #4
	b.hi	LBB0_16
; %bb.10:
Lloh30:
	adrp	x12, lJTI0_2@PAGE
Lloh31:
	add	x12, x12, lJTI0_2@PAGEOFF
	adr	x13, LBB0_11
	ldrb	w14, [x12, x11]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_11:
	orr	w2, w2, w9
	b	LBB0_18
LBB0_12:
	orr	w11, w9, #0x3
LBB0_13:
	orr	w2, w11, w2
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, w20
	cmp	w9, #129
	b.eq	LBB0_18
; %bb.14:
	cmp	w9, #132
	b.ne	LBB0_16
LBB0_15:
	orr	w2, w2, w8
	b	LBB0_18
LBB0_16:
Lloh35:
	adrp	x8, _EINVAL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_17:
	orr	w2, w10, w2
LBB0_18:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_soc_write
	mov	w0, #0
LBB0_19:
	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	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.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_5-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_7-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
lJTI0_2:
	.byte	(LBB0_18-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_16-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_17-LBB0_11)>>2
                                        ; -- End function
	.comm	_WM8903_AUDIO_INTERFACE_1,4,2   ; @WM8903_AUDIO_INTERFACE_1
	.comm	_WM8903_LRCLK_DIR,4,2           ; @WM8903_LRCLK_DIR
	.comm	_WM8903_BCLK_DIR,4,2            ; @WM8903_BCLK_DIR
	.comm	_WM8903_AIF_FMT_MASK,4,2        ; @WM8903_AIF_FMT_MASK
	.comm	_WM8903_AIF_LRCLK_INV,4,2       ; @WM8903_AIF_LRCLK_INV
	.comm	_WM8903_AIF_BCLK_INV,4,2        ; @WM8903_AIF_BCLK_INV
	.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	_wm8903_set_dai_fmt
.subsections_via_symbols
