	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8580_set_paif_dai_fmt
_wm8580_set_paif_dai_fmt:               ## @wm8580_set_paif_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, %r13
	movq	(%rdi), %rsi
	movq	8(%rdi), %r14
	movq	_WM8580_PAIF1@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_snd_soc_read
	movl	%eax, %r15d
	movq	_WM8580_PAIF3@GOTPCREL(%rip), %rax
	movq	(%r13), %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_snd_soc_read
	movl	%eax, %r12d
	movq	_WM8580_AIF_FMT_MASK@GOTPCREL(%rip), %rsi
	movq	_WM8580_AIF_LRP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_WM8580_AIF_BCP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	orl	%eax, %ecx
	movl	(%rsi), %esi
	orl	%ecx, %esi
	movq	_SND_SOC_DAIFMT_MASTER_MASK@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	%ebx, %edi
	cmpl	$138, %edi
	je	LBB0_3
## %bb.1:
	cmpl	$137, %edi
	jne	LBB0_19
## %bb.2:
	movq	_WM8580_AIF_MS@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	notl	%edi
	andl	%edi, %r15d
	jmp	LBB0_4
LBB0_3:
	movq	_WM8580_AIF_MS@GOTPCREL(%rip), %rdi
	orl	(%rdi), %r15d
LBB0_4:
	movq	_SND_SOC_DAIFMT_FORMAT_MASK@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	%ebx, %edi
	addl	$-128, %edi
	cmpl	$8, %edi
	ja	LBB0_19
## %bb.5:
	notl	%esi
	andl	%esi, %r12d
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdi,4), %rdi
	addq	%rsi, %rdi
	jmpq	*%rdi
LBB0_8:
	movq	_WM8580_AIF_FMT_RIGHTJ@GOTPCREL(%rip), %rsi
	jmp	LBB0_7
LBB0_9:
	movq	_WM8580_AIF_FMT_LEFTJ@GOTPCREL(%rip), %rsi
	jmp	LBB0_7
LBB0_6:
	movq	_WM8580_AIF_FMT_I2S@GOTPCREL(%rip), %rsi
LBB0_7:
	orl	(%rsi), %r12d
	xorl	%esi, %esi
	jmp	LBB0_12
LBB0_14:
	movq	_WM8580_AIF_FMT_DSP@GOTPCREL(%rip), %rsi
	orl	%eax, %r12d
	jmp	LBB0_11
LBB0_10:
	movq	_WM8580_AIF_FMT_DSP@GOTPCREL(%rip), %rsi
LBB0_11:
	orl	(%rsi), %r12d
	movb	$1, %sil
LBB0_12:
	movq	_SND_SOC_DAIFMT_INV_MASK@GOTPCREL(%rip), %rdi
	andl	(%rdi), %ebx
	addl	$-129, %ebx
	cmpl	$4, %ebx
	ja	LBB0_19
## %bb.13:
	leaq	LJTI0_1(%rip), %rdi
	movslq	(%rdi,%rbx,4), %rbx
	addq	%rdi, %rbx
	jmpq	*%rbx
LBB0_17:
	testb	%sil, %sil
	jne	LBB0_19
## %bb.18:
	orl	%eax, %r12d
	jmp	LBB0_21
LBB0_20:
	orl	%edx, %r12d
	jmp	LBB0_21
LBB0_15:
	testb	%sil, %sil
	je	LBB0_16
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_22
LBB0_16:
	orl	%ecx, %r12d
LBB0_21:
	movq	(%r13), %rsi
	movq	_WM8580_PAIF1@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_snd_soc_write
	movq	(%r13), %rsi
	movq	_WM8580_PAIF3@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_snd_soc_write
	xorl	%eax, %eax
LBB0_22:
	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_19, LBB0_19-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_9
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_6
	.long	L0_0_set_14
	.long	L0_0_set_10
.set L0_1_set_21, LBB0_21-LJTI0_1
.set L0_1_set_17, LBB0_17-LJTI0_1
.set L0_1_set_19, LBB0_19-LJTI0_1
.set L0_1_set_20, LBB0_20-LJTI0_1
.set L0_1_set_15, LBB0_15-LJTI0_1
LJTI0_1:
	.long	L0_1_set_21
	.long	L0_1_set_17
	.long	L0_1_set_19
	.long	L0_1_set_20
	.long	L0_1_set_15
	.end_data_region
                                        ## -- End function
	.comm	_WM8580_PAIF1,8,3               ## @WM8580_PAIF1
	.comm	_WM8580_PAIF3,8,3               ## @WM8580_PAIF3
	.comm	_WM8580_AIF_FMT_MASK,4,2        ## @WM8580_AIF_FMT_MASK
	.comm	_WM8580_AIF_LRP,4,2             ## @WM8580_AIF_LRP
	.comm	_WM8580_AIF_BCP,4,2             ## @WM8580_AIF_BCP
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ## @SND_SOC_DAIFMT_MASTER_MASK
	.comm	_WM8580_AIF_MS,4,2              ## @WM8580_AIF_MS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ## @SND_SOC_DAIFMT_FORMAT_MASK
	.comm	_WM8580_AIF_FMT_I2S,4,2         ## @WM8580_AIF_FMT_I2S
	.comm	_WM8580_AIF_FMT_RIGHTJ,4,2      ## @WM8580_AIF_FMT_RIGHTJ
	.comm	_WM8580_AIF_FMT_LEFTJ,4,2       ## @WM8580_AIF_FMT_LEFTJ
	.comm	_WM8580_AIF_FMT_DSP,4,2         ## @WM8580_AIF_FMT_DSP
	.comm	_SND_SOC_DAIFMT_INV_MASK,4,2    ## @SND_SOC_DAIFMT_INV_MASK
	.no_dead_strip	_wm8580_set_paif_dai_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8580_set_paif_dai_fmt
_wm8580_set_paif_dai_fmt:               ; @wm8580_set_paif_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
	mov	x19, x0
Lloh0:
	adrp	x23, _WM8580_PAIF1@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WM8580_PAIF1@GOTPAGEOFF]
	ldr	x8, [x23]
	ldp	x9, x20, [x0]
	add	x1, x9, x8
	mov	x0, x20
	bl	_snd_soc_read
	mov	x22, x0
Lloh2:
	adrp	x24, _WM8580_PAIF3@GOTPAGE
Lloh3:
	ldr	x24, [x24, _WM8580_PAIF3@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x9, [x19]
	add	x1, x9, x8
	mov	x0, x20
	bl	_snd_soc_read
Lloh4:
	adrp	x8, _WM8580_AIF_FMT_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WM8580_AIF_FMT_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w11, [x8]
Lloh7:
	adrp	x8, _WM8580_AIF_LRP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WM8580_AIF_LRP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _WM8580_AIF_BCP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WM8580_AIF_BCP@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGE
Lloh14:
	ldr	x10, [x10, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	and	w10, w10, w21
	cmp	w10, #138
	b.eq	LBB0_3
; %bb.1:
	cmp	w10, #137
	b.ne	LBB0_19
; %bb.2:
Lloh16:
	adrp	x10, _WM8580_AIF_MS@GOTPAGE
Lloh17:
	ldr	x10, [x10, _WM8580_AIF_MS@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	bic	w2, w22, w10
	b	LBB0_4
LBB0_3:
Lloh19:
	adrp	x10, _WM8580_AIF_MS@GOTPAGE
Lloh20:
	ldr	x10, [x10, _WM8580_AIF_MS@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	orr	w2, w10, w22
LBB0_4:
Lloh22:
	adrp	x10, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGE
Lloh23:
	ldr	x10, [x10, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	and	w10, w10, w21
	sub	w13, w10, #128
	cmp	w13, #8
	b.hi	LBB0_19
; %bb.5:
	orr	w10, w9, w8
	orr	w11, w10, w11
	bic	w12, w0, w11
Lloh25:
	adrp	x11, lJTI0_0@PAGE
Lloh26:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x14, LBB0_6
	ldrb	w15, [x11, x13]
	add	x14, x14, x15, lsl #2
	br	x14
LBB0_6:
	mov	w11, #0
Lloh27:
	adrp	x13, _WM8580_AIF_FMT_RIGHTJ@GOTPAGE
Lloh28:
	ldr	x13, [x13, _WM8580_AIF_FMT_RIGHTJ@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	w11, #0
Lloh29:
	adrp	x13, _WM8580_AIF_FMT_LEFTJ@GOTPAGE
Lloh30:
	ldr	x13, [x13, _WM8580_AIF_FMT_LEFTJ@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	mov	w11, #0
Lloh31:
	adrp	x13, _WM8580_AIF_FMT_I2S@GOTPAGE
Lloh32:
	ldr	x13, [x13, _WM8580_AIF_FMT_I2S@GOTPAGEOFF]
LBB0_9:
	ldr	w13, [x13]
	orr	w22, w13, w12
	b	LBB0_13
LBB0_10:
Lloh33:
	adrp	x11, _WM8580_AIF_FMT_DSP@GOTPAGE
Lloh34:
	ldr	x11, [x11, _WM8580_AIF_FMT_DSP@GOTPAGEOFF]
Lloh35:
	ldr	w11, [x11]
	orr	w12, w12, w8
	orr	w22, w12, w11
	b	LBB0_12
LBB0_11:
Lloh36:
	adrp	x11, _WM8580_AIF_FMT_DSP@GOTPAGE
Lloh37:
	ldr	x11, [x11, _WM8580_AIF_FMT_DSP@GOTPAGEOFF]
Lloh38:
	ldr	w11, [x11]
	orr	w22, w11, w12
LBB0_12:
	mov	w11, #1
LBB0_13:
Lloh39:
	adrp	x12, _SND_SOC_DAIFMT_INV_MASK@GOTPAGE
Lloh40:
	ldr	x12, [x12, _SND_SOC_DAIFMT_INV_MASK@GOTPAGEOFF]
Lloh41:
	ldr	w12, [x12]
	and	w12, w12, w21
	sub	w12, w12, #129
	cmp	w12, #4
	b.hi	LBB0_19
; %bb.14:
Lloh42:
	adrp	x13, lJTI0_1@PAGE
Lloh43:
	add	x13, x13, lJTI0_1@PAGEOFF
	adr	x14, LBB0_15
	ldrb	w15, [x13, x12]
	add	x14, x14, x15, lsl #2
	br	x14
LBB0_15:
	cbnz	w11, LBB0_19
; %bb.16:
	orr	w22, w22, w8
	b	LBB0_21
LBB0_17:
	orr	w22, w22, w9
	b	LBB0_21
LBB0_18:
	cbz	w11, LBB0_20
LBB0_19:
Lloh44:
	adrp	x8, _EINVAL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_20:
	orr	w22, w10, w22
LBB0_21:
	ldr	x8, [x23]
	ldr	x9, [x19]
	add	x1, x9, x8
	mov	x0, x20
	bl	_snd_soc_write
	ldr	x8, [x24]
	ldr	x9, [x19]
	add	x1, x9, x8
	mov	x0, x20
	mov	x2, x22
	bl	_snd_soc_write
	mov	w0, #0
LBB0_22:
	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	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_19-LBB0_6)>>2
	.byte	(LBB0_19-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_19-LBB0_6)>>2
	.byte	(LBB0_19-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
lJTI0_1:
	.byte	(LBB0_21-LBB0_15)>>2
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_19-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_18-LBB0_15)>>2
                                        ; -- End function
	.comm	_WM8580_PAIF1,8,3               ; @WM8580_PAIF1
	.comm	_WM8580_PAIF3,8,3               ; @WM8580_PAIF3
	.comm	_WM8580_AIF_FMT_MASK,4,2        ; @WM8580_AIF_FMT_MASK
	.comm	_WM8580_AIF_LRP,4,2             ; @WM8580_AIF_LRP
	.comm	_WM8580_AIF_BCP,4,2             ; @WM8580_AIF_BCP
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ; @SND_SOC_DAIFMT_MASTER_MASK
	.comm	_WM8580_AIF_MS,4,2              ; @WM8580_AIF_MS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ; @SND_SOC_DAIFMT_FORMAT_MASK
	.comm	_WM8580_AIF_FMT_I2S,4,2         ; @WM8580_AIF_FMT_I2S
	.comm	_WM8580_AIF_FMT_RIGHTJ,4,2      ; @WM8580_AIF_FMT_RIGHTJ
	.comm	_WM8580_AIF_FMT_LEFTJ,4,2       ; @WM8580_AIF_FMT_LEFTJ
	.comm	_WM8580_AIF_FMT_DSP,4,2         ; @WM8580_AIF_FMT_DSP
	.comm	_SND_SOC_DAIFMT_INV_MASK,4,2    ; @SND_SOC_DAIFMT_INV_MASK
	.no_dead_strip	_wm8580_set_paif_dai_fmt
.subsections_via_symbols
