	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8400_set_dai_fmt
_wm8400_set_dai_fmt:                    ## @wm8400_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), %r15
	movq	_WM8400_AUDIO_INTERFACE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wm8400_read
	movl	%eax, %r12d
	movq	_WM8400_AUDIO_INTERFACE_3@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_wm8400_read
	movl	%eax, %r14d
	movq	_SND_SOC_DAIFMT_MASTER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	cmpl	$134, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$133, %eax
	jne	LBB0_11
## %bb.2:
	movq	_WM8400_AIF_MSTR1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r14d
	jmp	LBB0_4
LBB0_3:
	movq	_WM8400_AIF_MSTR1@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_4:
	movq	_SND_SOC_DAIFMT_FORMAT_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_11
## %bb.5:
	movq	_WM8400_AIF_FMT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r12d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_8:
	movq	_WM8400_AIF_FMT_RIGHTJ@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_9:
	movq	_WM8400_AIF_FMT_LEFTJ@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_WM8400_AIF_FMT_I2S@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_12:
	movq	_WM8400_AIF_FMT_DSP@GOTPCREL(%rip), %rax
	movq	_WM8400_AIF_LRCLK_INV@GOTPCREL(%rip), %rcx
	orl	(%rax), %r12d
	orl	(%rcx), %r12d
	movl	%r12d, %edx
	jmp	LBB0_13
LBB0_10:
	movq	_WM8400_AIF_FMT_DSP@GOTPCREL(%rip), %rax
LBB0_7:
	orl	(%rax), %r12d
	movq	_WM8400_AIF_LRCLK_INV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	%r12d, %edx
LBB0_13:
	movq	_WM8400_AUDIO_INTERFACE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wm8400_write
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_wm8400_write
	xorl	%eax, %eax
LBB0_14:
	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_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_12
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_WM8400_AUDIO_INTERFACE_1,4,2   ## @WM8400_AUDIO_INTERFACE_1
	.comm	_WM8400_AUDIO_INTERFACE_3,4,2   ## @WM8400_AUDIO_INTERFACE_3
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ## @SND_SOC_DAIFMT_MASTER_MASK
	.comm	_WM8400_AIF_MSTR1,4,2           ## @WM8400_AIF_MSTR1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WM8400_AIF_FMT_MASK,4,2        ## @WM8400_AIF_FMT_MASK
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ## @SND_SOC_DAIFMT_FORMAT_MASK
	.comm	_WM8400_AIF_FMT_I2S,4,2         ## @WM8400_AIF_FMT_I2S
	.comm	_WM8400_AIF_LRCLK_INV,4,2       ## @WM8400_AIF_LRCLK_INV
	.comm	_WM8400_AIF_FMT_RIGHTJ,4,2      ## @WM8400_AIF_FMT_RIGHTJ
	.comm	_WM8400_AIF_FMT_LEFTJ,4,2       ## @WM8400_AIF_FMT_LEFTJ
	.comm	_WM8400_AIF_FMT_DSP,4,2         ## @WM8400_AIF_FMT_DSP
	.no_dead_strip	_wm8400_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 wm8400_set_dai_fmt
_wm8400_set_dai_fmt:                    ; @wm8400_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]
Lloh0:
	adrp	x23, _WM8400_AUDIO_INTERFACE_1@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WM8400_AUDIO_INTERFACE_1@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_wm8400_read
	mov	x22, x0
Lloh2:
	adrp	x24, _WM8400_AUDIO_INTERFACE_3@GOTPAGE
Lloh3:
	ldr	x24, [x24, _WM8400_AUDIO_INTERFACE_3@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_wm8400_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
	cmp	w8, #134
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #133
	b.ne	LBB0_7
; %bb.2:
Lloh7:
	adrp	x8, _WM8400_AIF_MSTR1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WM8400_AIF_MSTR1@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w20, w0, w8
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x8, _WM8400_AIF_MSTR1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WM8400_AIF_MSTR1@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w20, w8, w0
LBB0_4:
Lloh13:
	adrp	x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	and	w8, w8, w21
	sub	w9, w8, #128
	cmp	w9, #4
	b.hi	LBB0_7
; %bb.5:
Lloh16:
	adrp	x8, _WM8400_AIF_FMT_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WM8400_AIF_FMT_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	bic	w8, w22, w8
Lloh19:
	adrp	x10, lJTI0_0@PAGE
Lloh20:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_6
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_6:
Lloh21:
	adrp	x9, _WM8400_AIF_FMT_RIGHTJ@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WM8400_AIF_FMT_RIGHTJ@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_8:
Lloh26:
	adrp	x9, _WM8400_AIF_FMT_LEFTJ@GOTPAGE
Lloh27:
	ldr	x9, [x9, _WM8400_AIF_FMT_LEFTJ@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh28:
	adrp	x9, _WM8400_AIF_FMT_I2S@GOTPAGE
Lloh29:
	ldr	x9, [x9, _WM8400_AIF_FMT_I2S@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh30:
	adrp	x9, _WM8400_AIF_FMT_DSP@GOTPAGE
Lloh31:
	ldr	x9, [x9, _WM8400_AIF_FMT_DSP@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x10, _WM8400_AIF_LRCLK_INV@GOTPAGE
Lloh34:
	ldr	x10, [x10, _WM8400_AIF_LRCLK_INV@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w2, w8, w10
	b	LBB0_13
LBB0_11:
Lloh36:
	adrp	x9, _WM8400_AIF_FMT_DSP@GOTPAGE
Lloh37:
	ldr	x9, [x9, _WM8400_AIF_FMT_DSP@GOTPAGEOFF]
LBB0_12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh38:
	adrp	x9, _WM8400_AIF_LRCLK_INV@GOTPAGE
Lloh39:
	ldr	x9, [x9, _WM8400_AIF_LRCLK_INV@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	bic	w2, w8, w9
LBB0_13:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_wm8400_write
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_wm8400_write
	mov	w0, #0
LBB0_14:
	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 AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
                                        ; -- End function
	.comm	_WM8400_AUDIO_INTERFACE_1,4,2   ; @WM8400_AUDIO_INTERFACE_1
	.comm	_WM8400_AUDIO_INTERFACE_3,4,2   ; @WM8400_AUDIO_INTERFACE_3
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ; @SND_SOC_DAIFMT_MASTER_MASK
	.comm	_WM8400_AIF_MSTR1,4,2           ; @WM8400_AIF_MSTR1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WM8400_AIF_FMT_MASK,4,2        ; @WM8400_AIF_FMT_MASK
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ; @SND_SOC_DAIFMT_FORMAT_MASK
	.comm	_WM8400_AIF_FMT_I2S,4,2         ; @WM8400_AIF_FMT_I2S
	.comm	_WM8400_AIF_LRCLK_INV,4,2       ; @WM8400_AIF_LRCLK_INV
	.comm	_WM8400_AIF_FMT_RIGHTJ,4,2      ; @WM8400_AIF_FMT_RIGHTJ
	.comm	_WM8400_AIF_FMT_LEFTJ,4,2       ; @WM8400_AIF_FMT_LEFTJ
	.comm	_WM8400_AIF_FMT_DSP,4,2         ; @WM8400_AIF_FMT_DSP
	.no_dead_strip	_wm8400_set_dai_fmt
.subsections_via_symbols
