	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s6000_i2s_set_dai_fmt
_s6000_i2s_set_dai_fmt:                 ## @s6000_i2s_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
	movq	_SND_SOC_DAIFMT_MASTER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	addl	$-130, %eax
	cmpl	$4, %eax
	jae	LBB0_1
## %bb.2:
	movq	(%rdi), %r14
	cltq
	leaq	l_switch.table.s6000_i2s_set_dai_fmt(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.s6000_i2s_set_dai_fmt.1(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movl	(%rax), %r15d
	orl	(%rcx), %r15d
	movq	_SND_SOC_DAIFMT_INV_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	cmpl	$128, %esi
	je	LBB0_3
## %bb.4:
	cmpl	$129, %esi
	jne	LBB0_1
## %bb.5:
	movq	_S6_I2S_RIGHT_FIRST@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	movq	_S6_I2S_LEFT_FIRST@GOTPCREL(%rip), %rax
LBB0_6:
	orl	(%rax), %r15d
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_S6_I2S_INTERFACE_CFG
	movq	_S6_I2S_FIRST@GOTPCREL(%rip), %rcx
	movq	_S6_I2S_WS_DIR@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	orl	(%rcx), %edx
	movq	_S6_I2S_SCK_DIR@GOTPCREL(%rip), %r12
	orl	(%r12), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r15d, %ecx
	callq	_s6_i2s_mod_reg
	movl	$1, %edi
	callq	_S6_I2S_INTERFACE_CFG
	movl	(%r13), %edx
	movq	_S6_I2S_FIRST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	orl	(%r12), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r15d, %ecx
	callq	_s6_i2s_mod_reg
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ## @SND_SOC_DAIFMT_MASTER_MASK
	.comm	_S6_I2S_SCK_IN,4,2              ## @S6_I2S_SCK_IN
	.comm	_S6_I2S_WS_IN,4,2               ## @S6_I2S_WS_IN
	.comm	_S6_I2S_SCK_OUT,4,2             ## @S6_I2S_SCK_OUT
	.comm	_S6_I2S_WS_OUT,4,2              ## @S6_I2S_WS_OUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SND_SOC_DAIFMT_INV_MASK,4,2    ## @SND_SOC_DAIFMT_INV_MASK
	.comm	_S6_I2S_LEFT_FIRST,4,2          ## @S6_I2S_LEFT_FIRST
	.comm	_S6_I2S_RIGHT_FIRST,4,2         ## @S6_I2S_RIGHT_FIRST
	.comm	_S6_I2S_FIRST,4,2               ## @S6_I2S_FIRST
	.comm	_S6_I2S_WS_DIR,4,2              ## @S6_I2S_WS_DIR
	.comm	_S6_I2S_SCK_DIR,4,2             ## @S6_I2S_SCK_DIR
	.no_dead_strip	_s6000_i2s_set_dai_fmt
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.s6000_i2s_set_dai_fmt
l_switch.table.s6000_i2s_set_dai_fmt:
	.quad	_S6_I2S_SCK_OUT
	.quad	_S6_I2S_SCK_OUT
	.quad	_S6_I2S_SCK_IN
	.quad	_S6_I2S_SCK_IN

	.p2align	3                               ## @switch.table.s6000_i2s_set_dai_fmt.1
l_switch.table.s6000_i2s_set_dai_fmt.1:
	.quad	_S6_I2S_WS_OUT
	.quad	_S6_I2S_WS_IN
	.quad	_S6_I2S_WS_OUT
	.quad	_S6_I2S_WS_IN

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s6000_i2s_set_dai_fmt
_s6000_i2s_set_dai_fmt:                 ; @s6000_i2s_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
Lloh0:
	adrp	x8, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w1
	sub	w8, w8, #130
	cmp	w8, #4
	b.hs	LBB0_4
; %bb.1:
	sbfiz	x8, x8, #3, #32
Lloh3:
	adrp	x9, l_switch.table.s6000_i2s_set_dai_fmt@PAGE
Lloh4:
	add	x9, x9, l_switch.table.s6000_i2s_set_dai_fmt@PAGEOFF
	ldr	x9, [x9, x8]
	ldr	x19, [x0]
Lloh5:
	adrp	x10, l_switch.table.s6000_i2s_set_dai_fmt.1@PAGE
Lloh6:
	add	x10, x10, l_switch.table.s6000_i2s_set_dai_fmt.1@PAGEOFF
	ldr	x10, [x10, x8]
	ldr	w8, [x9]
	ldr	w9, [x10]
Lloh7:
	adrp	x10, _SND_SOC_DAIFMT_INV_MASK@GOTPAGE
Lloh8:
	ldr	x10, [x10, _SND_SOC_DAIFMT_INV_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	and	w10, w10, w1
	cmp	w10, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w10, #129
	b.ne	LBB0_4
; %bb.3:
Lloh10:
	adrp	x10, _S6_I2S_RIGHT_FIRST@GOTPAGE
Lloh11:
	ldr	x10, [x10, _S6_I2S_RIGHT_FIRST@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
Lloh15:
	adrp	x10, _S6_I2S_LEFT_FIRST@GOTPAGE
Lloh16:
	ldr	x10, [x10, _S6_I2S_LEFT_FIRST@GOTPAGEOFF]
LBB0_6:
	orr	w8, w9, w8
	ldr	w9, [x10]
	orr	w20, w9, w8
	mov	w0, #0
	bl	_S6_I2S_INTERFACE_CFG
	mov	x1, x0
Lloh17:
	adrp	x21, _S6_I2S_FIRST@GOTPAGE
Lloh18:
	ldr	x21, [x21, _S6_I2S_FIRST@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh19:
	adrp	x22, _S6_I2S_WS_DIR@GOTPAGE
Lloh20:
	ldr	x22, [x22, _S6_I2S_WS_DIR@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh21:
	adrp	x23, _S6_I2S_SCK_DIR@GOTPAGE
Lloh22:
	ldr	x23, [x23, _S6_I2S_SCK_DIR@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w2, w8, w9
	mov	x0, x19
	mov	x3, x20
	bl	_s6_i2s_mod_reg
	mov	w0, #1
	bl	_S6_I2S_INTERFACE_CFG
	mov	x1, x0
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w2, w8, w9
	mov	x0, x19
	mov	x3, x20
	bl	_s6_i2s_mod_reg
	mov	w0, #0
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ; @SND_SOC_DAIFMT_MASTER_MASK
	.comm	_S6_I2S_SCK_IN,4,2              ; @S6_I2S_SCK_IN
	.comm	_S6_I2S_WS_IN,4,2               ; @S6_I2S_WS_IN
	.comm	_S6_I2S_SCK_OUT,4,2             ; @S6_I2S_SCK_OUT
	.comm	_S6_I2S_WS_OUT,4,2              ; @S6_I2S_WS_OUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SND_SOC_DAIFMT_INV_MASK,4,2    ; @SND_SOC_DAIFMT_INV_MASK
	.comm	_S6_I2S_LEFT_FIRST,4,2          ; @S6_I2S_LEFT_FIRST
	.comm	_S6_I2S_RIGHT_FIRST,4,2         ; @S6_I2S_RIGHT_FIRST
	.comm	_S6_I2S_FIRST,4,2               ; @S6_I2S_FIRST
	.comm	_S6_I2S_WS_DIR,4,2              ; @S6_I2S_WS_DIR
	.comm	_S6_I2S_SCK_DIR,4,2             ; @S6_I2S_SCK_DIR
	.no_dead_strip	_s6000_i2s_set_dai_fmt
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.s6000_i2s_set_dai_fmt
l_switch.table.s6000_i2s_set_dai_fmt:
	.quad	_S6_I2S_SCK_OUT
	.quad	_S6_I2S_SCK_OUT
	.quad	_S6_I2S_SCK_IN
	.quad	_S6_I2S_SCK_IN

	.p2align	3                               ; @switch.table.s6000_i2s_set_dai_fmt.1
l_switch.table.s6000_i2s_set_dai_fmt.1:
	.quad	_S6_I2S_WS_OUT
	.quad	_S6_I2S_WS_IN
	.quad	_S6_I2S_WS_OUT
	.quad	_S6_I2S_WS_IN

.subsections_via_symbols
