	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ak4104_set_dai_fmt
_ak4104_set_dai_fmt:                    ## @ak4104_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	(%rdi), %r14
	movq	_AK4104_REG_CONTROL1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_ak4104_read_reg_cache
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movq	_AK4104_CONTROL1_DIF0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_AK4104_CONTROL1_DIF1@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	%ecx, %esi
	movl	%esi, %edx
	notl	%edx
	andl	%eax, %edx
	movq	_SND_SOC_DAIFMT_FORMAT_MASK@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	%ebx, %edi
	cmpl	$128, %edi
	je	LBB0_7
## %bb.2:
	cmpl	$130, %edi
	je	LBB0_6
## %bb.3:
	cmpl	$129, %edi
	jne	LBB0_5
## %bb.4:
	orl	%ecx, %edx
	jmp	LBB0_7
LBB0_6:
	orl	%eax, %esi
	movl	%esi, %edx
LBB0_7:
	movq	_SND_SOC_DAIFMT_MASTER_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_SND_SOC_DAIFMT_CBS_CFS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_8
## %bb.10:
	movl	(%r15), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ak4104_spi_write               ## TAILCALL
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AK4104_REG_CONTROL1,4,2        ## @AK4104_REG_CONTROL1
	.comm	_AK4104_CONTROL1_DIF0,4,2       ## @AK4104_CONTROL1_DIF0
	.comm	_AK4104_CONTROL1_DIF1,4,2       ## @AK4104_CONTROL1_DIF1
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ## @SND_SOC_DAIFMT_FORMAT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid dai format\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ## @SND_SOC_DAIFMT_MASTER_MASK
	.comm	_SND_SOC_DAIFMT_CBS_CFS,4,2     ## @SND_SOC_DAIFMT_CBS_CFS
	.no_dead_strip	_ak4104_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 ak4104_set_dai_fmt
_ak4104_set_dai_fmt:                    ; @ak4104_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, _AK4104_REG_CONTROL1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AK4104_REG_CONTROL1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ak4104_read_reg_cache
	tbnz	w0, #31, LBB0_10
; %bb.1:
Lloh2:
	adrp	x8, _AK4104_CONTROL1_DIF0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AK4104_CONTROL1_DIF0@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _AK4104_CONTROL1_DIF1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AK4104_CONTROL1_DIF1@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w9, w9, w8
	bic	w2, w0, w9
Lloh8:
	adrp	x10, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	and	w10, w10, w20
	cmp	w10, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w10, #130
	b.eq	LBB0_5
; %bb.3:
	cmp	w10, #129
	b.ne	LBB0_8
; %bb.4:
	orr	w2, w2, w8
	b	LBB0_6
LBB0_5:
	orr	w2, w9, w0
LBB0_6:
Lloh11:
	adrp	x8, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh14:
	adrp	x9, _SND_SOC_DAIFMT_CBS_CFS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SND_SOC_DAIFMT_CBS_CFS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.7:
	ldr	w1, [x21]
	mov	x0, x19
	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
	b	_ak4104_spi_write
LBB0_8:
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_9:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AK4104_REG_CONTROL1,4,2        ; @AK4104_REG_CONTROL1
	.comm	_AK4104_CONTROL1_DIF0,4,2       ; @AK4104_CONTROL1_DIF0
	.comm	_AK4104_CONTROL1_DIF1,4,2       ; @AK4104_CONTROL1_DIF1
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ; @SND_SOC_DAIFMT_FORMAT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid dai format\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ; @SND_SOC_DAIFMT_MASTER_MASK
	.comm	_SND_SOC_DAIFMT_CBS_CFS,4,2     ; @SND_SOC_DAIFMT_CBS_CFS
	.no_dead_strip	_ak4104_set_dai_fmt
.subsections_via_symbols
