	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda998x_set_config
_tda998x_set_config:                    ## @tda998x_set_config
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	120(%rsi), %edi
	callq	_VIP_CNTRL_0_SWAP_A
	movl	%eax, %ebx
	xorl	%r15d, %r15d
	cmpq	$0, 112(%r12)
	movl	$0, %r13d
	je	LBB0_2
## %bb.1:
	movq	_VIP_CNTRL_0_MIRR_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_2:
	movl	104(%r12), %edi
	callq	_VIP_CNTRL_0_SWAP_B
	orl	%eax, %ebx
	orl	%r13d, %ebx
	cmpq	$0, 96(%r12)
	movl	$0, %eax
	je	LBB0_4
## %bb.3:
	movq	_VIP_CNTRL_0_MIRR_B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%eax, %ebx
	movl	%ebx, (%r14)
	movl	88(%r12), %edi
	callq	_VIP_CNTRL_1_SWAP_C
	movl	%eax, %ebx
	cmpq	$0, 80(%r12)
	movl	$0, %r13d
	je	LBB0_6
## %bb.5:
	movq	_VIP_CNTRL_1_MIRR_C@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_6:
	movl	72(%r12), %edi
	callq	_VIP_CNTRL_1_SWAP_D
	orl	%eax, %ebx
	orl	%r13d, %ebx
	cmpq	$0, 64(%r12)
	movl	$0, %eax
	je	LBB0_8
## %bb.7:
	movq	_VIP_CNTRL_1_MIRR_D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	orl	%eax, %ebx
	movl	%ebx, 4(%r14)
	movl	56(%r12), %edi
	callq	_VIP_CNTRL_2_SWAP_E
	movl	%eax, %ebx
	cmpq	$0, 48(%r12)
	movl	$0, %r13d
	je	LBB0_10
## %bb.9:
	movq	_VIP_CNTRL_2_MIRR_E@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_10:
	movl	40(%r12), %edi
	callq	_VIP_CNTRL_2_SWAP_F
	orl	%eax, %ebx
	orl	%r13d, %ebx
	cmpq	$0, 32(%r12)
	je	LBB0_12
## %bb.11:
	movq	_VIP_CNTRL_2_MIRR_F@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_12:
	orl	%r15d, %ebx
	movl	%ebx, 8(%r14)
	movq	(%r12), %r15
	movq	_AFMT_UNUSED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_13
## %bb.16:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_AFMT_SPDIF@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	cmpq	%rcx, %r15
	sete	%al
	movq	_AUDIO_ROUTE_I2S@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movq	_tda998x_audio_route@GOTPCREL(%rip), %rcx
	shlq	$2, %rax
	addq	(%rcx), %rax
	leaq	16(%r14), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 40(%r14)
	movl	24(%r12), %eax
	movl	%eax, 32(%r14)
	movl	20(%r12), %eax
	movl	%eax, 28(%r14)
	movl	24(%r14), %ebx
	movl	16(%r12), %r13d
	movl	$4, %edi
	movl	$4, %esi
	callq	_min
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_memcpy
	movl	12(%r12), %eax
	movl	%eax, 20(%r14)
	movq	_I2S_FORMAT_PHILIPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movl	$64, %edx
	cmpq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_15
## %bb.14:
	movl	8(%r12), %edx
	addl	%edx, %edx
LBB0_15:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tda998x_derive_cts_n           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VIP_CNTRL_0_MIRR_A,4,2         ## @VIP_CNTRL_0_MIRR_A
	.comm	_VIP_CNTRL_0_MIRR_B,4,2         ## @VIP_CNTRL_0_MIRR_B
	.comm	_VIP_CNTRL_1_MIRR_C,4,2         ## @VIP_CNTRL_1_MIRR_C
	.comm	_VIP_CNTRL_1_MIRR_D,4,2         ## @VIP_CNTRL_1_MIRR_D
	.comm	_VIP_CNTRL_2_MIRR_E,4,2         ## @VIP_CNTRL_2_MIRR_E
	.comm	_VIP_CNTRL_2_MIRR_F,4,2         ## @VIP_CNTRL_2_MIRR_F
	.comm	_AFMT_UNUSED,8,3                ## @AFMT_UNUSED
	.comm	_AFMT_SPDIF,8,3                 ## @AFMT_SPDIF
	.comm	_AUDIO_ROUTE_I2S,4,2            ## @AUDIO_ROUTE_I2S
	.comm	_tda998x_audio_route,8,3        ## @tda998x_audio_route
	.comm	_I2S_FORMAT_PHILIPS,4,2         ## @I2S_FORMAT_PHILIPS
	.no_dead_strip	_tda998x_set_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda998x_set_config
_tda998x_set_config:                    ; @tda998x_set_config
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #120]
	bl	_VIP_CNTRL_0_SWAP_A
Lloh0:
	adrp	x8, _VIP_CNTRL_0_MIRR_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIP_CNTRL_0_MIRR_A@GOTPAGEOFF]
	ldr	x9, [x20, #112]
Lloh2:
	ldr	w8, [x8]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
	orr	w21, w8, w0
	ldr	w0, [x20, #104]
	bl	_VIP_CNTRL_0_SWAP_B
	orr	w8, w21, w0
	ldr	x9, [x20, #96]
Lloh3:
	adrp	x10, _VIP_CNTRL_0_MIRR_B@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VIP_CNTRL_0_MIRR_B@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	w0, [x20, #88]
	bl	_VIP_CNTRL_1_SWAP_C
Lloh6:
	adrp	x8, _VIP_CNTRL_1_MIRR_C@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VIP_CNTRL_1_MIRR_C@GOTPAGEOFF]
	ldr	x9, [x20, #80]
Lloh8:
	ldr	w8, [x8]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
	orr	w21, w8, w0
	ldr	w0, [x20, #72]
	bl	_VIP_CNTRL_1_SWAP_D
	orr	w8, w21, w0
	ldr	x9, [x20, #64]
Lloh9:
	adrp	x10, _VIP_CNTRL_1_MIRR_D@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VIP_CNTRL_1_MIRR_D@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
	str	w8, [x19, #4]
	ldr	w0, [x20, #56]
	bl	_VIP_CNTRL_2_SWAP_E
Lloh12:
	adrp	x8, _VIP_CNTRL_2_MIRR_E@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VIP_CNTRL_2_MIRR_E@GOTPAGEOFF]
	ldr	x9, [x20, #48]
Lloh14:
	ldr	w8, [x8]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
	orr	w21, w8, w0
	ldr	w0, [x20, #40]
	bl	_VIP_CNTRL_2_SWAP_F
	orr	w8, w21, w0
	ldr	x9, [x20, #32]
Lloh15:
	adrp	x10, _VIP_CNTRL_2_MIRR_F@GOTPAGE
Lloh16:
	ldr	x10, [x10, _VIP_CNTRL_2_MIRR_F@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
	str	w8, [x19, #8]
	ldr	x23, [x20]
Lloh18:
	adrp	x8, _AFMT_UNUSED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AFMT_UNUSED@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x23, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	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
LBB0_2:
Lloh21:
	adrp	x8, _AFMT_SPDIF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AFMT_SPDIF@GOTPAGEOFF]
Lloh23:
	ldr	x24, [x8]
Lloh24:
	adrp	x8, _AUDIO_ROUTE_I2S@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AUDIO_ROUTE_I2S@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	x23, x24
	cinc	w8, w8, eq
Lloh27:
	adrp	x9, _tda998x_audio_route@GOTPAGE
Lloh28:
	ldr	x9, [x9, _tda998x_audio_route@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x8, x9, w8, uxtw #2
	str	x8, [x19, #40]
	ldur	d0, [x20, #20]
	stur	d0, [x19, #28]
	ldr	w21, [x19, #24]
	ldr	w22, [x20, #16]
	mov	w0, #4
	mov	w1, #4
	bl	_min
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_memcpy
Lloh30:
	adrp	x8, _I2S_FORMAT_PHILIPS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _I2S_FORMAT_PHILIPS@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	mov	x1, x19
	str	w8, [x1, #16]!
	ldr	w8, [x20, #12]
	str	w8, [x1, #4]
	cmp	x23, x24
	b.ne	LBB0_4
; %bb.3:
	mov	w2, #64
	b	LBB0_5
LBB0_4:
	ldr	w8, [x20, #8]
	lsl	w2, w8, #1
LBB0_5:
	mov	x0, x19
	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
	b	_tda998x_derive_cts_n
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_VIP_CNTRL_0_MIRR_A,4,2         ; @VIP_CNTRL_0_MIRR_A
	.comm	_VIP_CNTRL_0_MIRR_B,4,2         ; @VIP_CNTRL_0_MIRR_B
	.comm	_VIP_CNTRL_1_MIRR_C,4,2         ; @VIP_CNTRL_1_MIRR_C
	.comm	_VIP_CNTRL_1_MIRR_D,4,2         ; @VIP_CNTRL_1_MIRR_D
	.comm	_VIP_CNTRL_2_MIRR_E,4,2         ; @VIP_CNTRL_2_MIRR_E
	.comm	_VIP_CNTRL_2_MIRR_F,4,2         ; @VIP_CNTRL_2_MIRR_F
	.comm	_AFMT_UNUSED,8,3                ; @AFMT_UNUSED
	.comm	_AFMT_SPDIF,8,3                 ; @AFMT_SPDIF
	.comm	_AUDIO_ROUTE_I2S,4,2            ; @AUDIO_ROUTE_I2S
	.comm	_tda998x_audio_route,8,3        ; @tda998x_audio_route
	.comm	_I2S_FORMAT_PHILIPS,4,2         ; @I2S_FORMAT_PHILIPS
	.no_dead_strip	_tda998x_set_config
.subsections_via_symbols
