	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8993_set_tdm_slot
_wm8993_set_tdm_slot:                   ## @wm8993_set_tdm_slot
	.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	%ecx, %eax
	movq	(%rdi), %rbx
	movq	(%rbx), %r9
	xorl	%r14d, %r14d
	movl	$0, %ecx
	movl	$0, %r15d
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_WM8993_AIFADC_TDM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_WM8993_AIFDAC_TDM@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r15d
	cmpl	$3, %edx
	je	LBB0_4
## %bb.2:
	cmpl	$12, %edx
	jne	LBB0_9
## %bb.3:
	movq	_WM8993_AIFADC_TDM_CHAN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
LBB0_4:
	cmpl	$3, %esi
	je	LBB0_7
## %bb.5:
	cmpl	$12, %esi
	jne	LBB0_9
## %bb.6:
	movq	_WM8993_AIFDAC_TDM_CHAN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %r15d
LBB0_7:
	movl	%r8d, 4(%r9)
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%edx, (%r9)
	movq	_WM8993_AUDIO_INTERFACE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8993_AIFADC_TDM@GOTPCREL(%rip), %rax
	movq	_WM8993_AIFADC_TDM_CHAN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_soc_update_bits
	movq	_WM8993_AUDIO_INTERFACE_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8993_AIFDAC_TDM@GOTPCREL(%rip), %rax
	movq	_WM8993_AIFDAC_TDM_CHAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	callq	_snd_soc_update_bits
	jmp	LBB0_8
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8993_AIFADC_TDM,4,2          ## @WM8993_AIFADC_TDM
	.comm	_WM8993_AIFDAC_TDM,4,2          ## @WM8993_AIFDAC_TDM
	.comm	_WM8993_AIFADC_TDM_CHAN,4,2     ## @WM8993_AIFADC_TDM_CHAN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WM8993_AIFDAC_TDM_CHAN,4,2     ## @WM8993_AIFDAC_TDM_CHAN
	.comm	_WM8993_AUDIO_INTERFACE_1,4,2   ## @WM8993_AUDIO_INTERFACE_1
	.comm	_WM8993_AUDIO_INTERFACE_2,4,2   ## @WM8993_AUDIO_INTERFACE_2
	.no_dead_strip	_wm8993_set_tdm_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8993_set_tdm_slot
_wm8993_set_tdm_slot:                   ; @wm8993_set_tdm_slot
	.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	x8, x3
	ldr	x19, [x0]
	ldr	x10, [x19]
Lloh0:
	adrp	x9, _WM8993_AIFADC_TDM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WM8993_AIFADC_TDM@GOTPAGEOFF]
Lloh2:
	adrp	x21, _WM8993_AIFDAC_TDM@GOTPAGE
Lloh3:
	ldr	x21, [x21, _WM8993_AIFDAC_TDM@GOTPAGEOFF]
	cbz	w3, LBB0_7
; %bb.1:
	ldr	w3, [x9]
	ldr	w20, [x21]
	cmp	w2, #3
	b.eq	LBB0_4
; %bb.2:
	cmp	w2, #12
	b.ne	LBB0_9
; %bb.3:
Lloh4:
	adrp	x11, _WM8993_AIFADC_TDM_CHAN@GOTPAGE
Lloh5:
	ldr	x11, [x11, _WM8993_AIFADC_TDM_CHAN@GOTPAGEOFF]
Lloh6:
	ldr	w11, [x11]
	orr	w3, w11, w3
LBB0_4:
	cmp	w1, #3
	b.eq	LBB0_8
; %bb.5:
	cmp	w1, #12
	b.ne	LBB0_9
; %bb.6:
Lloh7:
	adrp	x11, _WM8993_AIFDAC_TDM_CHAN@GOTPAGE
Lloh8:
	ldr	x11, [x11, _WM8993_AIFDAC_TDM_CHAN@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	orr	w20, w11, w20
	b	LBB0_8
LBB0_7:
	mov	w20, #0
LBB0_8:
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	stp	w8, w4, [x10]
Lloh10:
	adrp	x8, _WM8993_AUDIO_INTERFACE_1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WM8993_AUDIO_INTERFACE_1@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w8, [x9]
Lloh13:
	adrp	x9, _WM8993_AIFADC_TDM_CHAN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WM8993_AIFADC_TDM_CHAN@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_snd_soc_update_bits
Lloh16:
	adrp	x8, _WM8993_AUDIO_INTERFACE_2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WM8993_AUDIO_INTERFACE_2@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w8, [x21]
Lloh19:
	adrp	x9, _WM8993_AIFDAC_TDM_CHAN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _WM8993_AIFDAC_TDM_CHAN@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	x3, x20
	bl	_snd_soc_update_bits
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8993_AIFADC_TDM,4,2          ; @WM8993_AIFADC_TDM
	.comm	_WM8993_AIFDAC_TDM,4,2          ; @WM8993_AIFDAC_TDM
	.comm	_WM8993_AIFADC_TDM_CHAN,4,2     ; @WM8993_AIFADC_TDM_CHAN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WM8993_AIFDAC_TDM_CHAN,4,2     ; @WM8993_AIFDAC_TDM_CHAN
	.comm	_WM8993_AUDIO_INTERFACE_1,4,2   ; @WM8993_AUDIO_INTERFACE_1
	.comm	_WM8993_AUDIO_INTERFACE_2,4,2   ; @WM8993_AUDIO_INTERFACE_2
	.no_dead_strip	_wm8993_set_tdm_slot
.subsections_via_symbols
