	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uda1380_set_dai_fmt_capture
_uda1380_set_dai_fmt_capture:           ## @uda1380_set_dai_fmt_capture
	.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	_UDA1380_IFACE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_uda1380_read_reg_cache
	movq	_R01_SIM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_R01_SFORO_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%edx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_SND_SOC_DAIFMT_FORMAT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_7
## %bb.3:
	movq	_R01_SFORO_I2S@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_R01_SFORO_MSB@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_R01_SFORO_LSB16@GOTPCREL(%rip), %rax
LBB0_6:
	orl	(%rax), %ecx
LBB0_7:
	movq	_SND_SOC_DAIFMT_MASTER_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_SND_SOC_DAIFMT_CBM_CFM@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpl	(%rax), %ebx
	cmovnel	%esi, %edx
	orl	%ecx, %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_uda1380_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UDA1380_IFACE,4,2              ## @UDA1380_IFACE
	.comm	_R01_SIM,4,2                    ## @R01_SIM
	.comm	_R01_SFORO_MASK,4,2             ## @R01_SFORO_MASK
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ## @SND_SOC_DAIFMT_FORMAT_MASK
	.comm	_R01_SFORO_I2S,4,2              ## @R01_SFORO_I2S
	.comm	_R01_SFORO_LSB16,4,2            ## @R01_SFORO_LSB16
	.comm	_R01_SFORO_MSB,4,2              ## @R01_SFORO_MSB
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ## @SND_SOC_DAIFMT_MASTER_MASK
	.comm	_SND_SOC_DAIFMT_CBM_CFM,4,2     ## @SND_SOC_DAIFMT_CBM_CFM
	.no_dead_strip	_uda1380_set_dai_fmt_capture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uda1380_set_dai_fmt_capture
_uda1380_set_dai_fmt_capture:           ; @uda1380_set_dai_fmt_capture
	.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, _UDA1380_IFACE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UDA1380_IFACE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_uda1380_read_reg_cache
Lloh2:
	adrp	x8, _R01_SIM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R01_SIM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _R01_SFORO_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _R01_SFORO_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w9, w9, w8
	bic	w9, 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_4
; %bb.1:
	cmp	w10, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w10, #130
	b.ne	LBB0_7
; %bb.3:
Lloh11:
	adrp	x10, _R01_SFORO_I2S@GOTPAGE
Lloh12:
	ldr	x10, [x10, _R01_SFORO_I2S@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh13:
	adrp	x10, _R01_SFORO_MSB@GOTPAGE
Lloh14:
	ldr	x10, [x10, _R01_SFORO_MSB@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x10, _R01_SFORO_LSB16@GOTPAGE
Lloh16:
	ldr	x10, [x10, _R01_SFORO_LSB16@GOTPAGEOFF]
LBB0_6:
	ldr	w10, [x10]
	orr	w9, w10, w9
LBB0_7:
Lloh17:
	adrp	x10, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
Lloh20:
	adrp	x11, _SND_SOC_DAIFMT_CBM_CFM@GOTPAGE
Lloh21:
	ldr	x11, [x11, _SND_SOC_DAIFMT_CBM_CFM@GOTPAGEOFF]
	and	w10, w10, w20
Lloh22:
	ldr	w11, [x11]
	cmp	w10, w11
	csel	w8, w8, wzr, eq
	orr	w2, w8, w9
	ldr	w1, [x21]
	mov	x0, x19
	bl	_uda1380_write
	mov	w0, #0
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_UDA1380_IFACE,4,2              ; @UDA1380_IFACE
	.comm	_R01_SIM,4,2                    ; @R01_SIM
	.comm	_R01_SFORO_MASK,4,2             ; @R01_SFORO_MASK
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ; @SND_SOC_DAIFMT_FORMAT_MASK
	.comm	_R01_SFORO_I2S,4,2              ; @R01_SFORO_I2S
	.comm	_R01_SFORO_LSB16,4,2            ; @R01_SFORO_LSB16
	.comm	_R01_SFORO_MSB,4,2              ; @R01_SFORO_MSB
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ; @SND_SOC_DAIFMT_MASTER_MASK
	.comm	_SND_SOC_DAIFMT_CBM_CFM,4,2     ; @SND_SOC_DAIFMT_CBM_CFM
	.no_dead_strip	_uda1380_set_dai_fmt_capture
.subsections_via_symbols
