	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dove_audio1_ctrl_set
_dove_audio1_ctrl_set:                  ## @dove_audio1_ctrl_set
	.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	%rdx, %r14
	movq	_mpp4_base@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_readl
	movq	_AU1_GPIO_SEL@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	$3, %edi
	callq	_BIT
	movl	$0, %edi
	testq	%r14, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edi
LBB0_2:
	orl	%ebx, %edi
	movl	(%r15), %esi
	callq	_writel
	movq	_gconfmap@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_SSP_CTRL_STATUS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_SSP_ON_AU1@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movl	$2, %edi
	callq	_BIT
	movl	$0, %ecx
	testq	%r14, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r13), %ecx
LBB0_4:
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_regmap_update_bits
	movq	_gconfmap@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_MPP_GENERAL_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_AU1_SPDIFO_GPIO_EN@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movl	$1, %edi
	callq	_BIT
	movl	$0, %ecx
	testq	%r14, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r13), %ecx
LBB0_6:
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_regmap_update_bits
	movq	_gconfmap@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_GLOBAL_CONFIG_2@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_TWSI_OPTION3_GPIO@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	xorl	%edi, %edi
	callq	_BIT
	movl	$0, %ecx
	testq	%r14, %rax
	je	LBB0_8
## %bb.7:
	movl	(%r13), %ecx
LBB0_8:
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_regmap_update_bits
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mpp4_base,4,2                  ## @mpp4_base
	.comm	_AU1_GPIO_SEL,4,2               ## @AU1_GPIO_SEL
	.comm	_gconfmap,4,2                   ## @gconfmap
	.comm	_SSP_CTRL_STATUS_1,4,2          ## @SSP_CTRL_STATUS_1
	.comm	_SSP_ON_AU1,4,2                 ## @SSP_ON_AU1
	.comm	_MPP_GENERAL_CONFIG,4,2         ## @MPP_GENERAL_CONFIG
	.comm	_AU1_SPDIFO_GPIO_EN,4,2         ## @AU1_SPDIFO_GPIO_EN
	.comm	_GLOBAL_CONFIG_2,4,2            ## @GLOBAL_CONFIG_2
	.comm	_TWSI_OPTION3_GPIO,4,2          ## @TWSI_OPTION3_GPIO
	.no_dead_strip	_dove_audio1_ctrl_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dove_audio1_ctrl_set
_dove_audio1_ctrl_set:                  ; @dove_audio1_ctrl_set
	.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	x19, x2
Lloh0:
	adrp	x20, _mpp4_base@GOTPAGE
Lloh1:
	ldr	x20, [x20, _mpp4_base@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_readl
Lloh2:
	adrp	x21, _AU1_GPIO_SEL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _AU1_GPIO_SEL@GOTPAGEOFF]
	ldr	w8, [x21]
	bic	w22, w0, w8
	mov	w0, #3
	bl	_BIT
	ldr	w8, [x21]
	tst	x0, x19
	csel	w8, wzr, w8, eq
	orr	w0, w8, w22
	ldr	w1, [x20]
	bl	_writel
Lloh4:
	adrp	x23, _gconfmap@GOTPAGE
Lloh5:
	ldr	x23, [x23, _gconfmap@GOTPAGEOFF]
	ldr	w20, [x23]
Lloh6:
	adrp	x8, _SSP_CTRL_STATUS_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSP_CTRL_STATUS_1@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
Lloh9:
	adrp	x24, _SSP_ON_AU1@GOTPAGE
Lloh10:
	ldr	x24, [x24, _SSP_ON_AU1@GOTPAGEOFF]
	ldr	w22, [x24]
	mov	w0, #2
	bl	_BIT
	ldr	w8, [x24]
	tst	x0, x19
	csel	w3, wzr, w8, eq
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_regmap_update_bits
	ldr	w20, [x23]
Lloh11:
	adrp	x8, _MPP_GENERAL_CONFIG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MPP_GENERAL_CONFIG@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
Lloh14:
	adrp	x24, _AU1_SPDIFO_GPIO_EN@GOTPAGE
Lloh15:
	ldr	x24, [x24, _AU1_SPDIFO_GPIO_EN@GOTPAGEOFF]
	ldr	w22, [x24]
	mov	w0, #1
	bl	_BIT
	ldr	w8, [x24]
	tst	x0, x19
	csel	w3, wzr, w8, eq
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_regmap_update_bits
	ldr	w20, [x23]
Lloh16:
	adrp	x8, _GLOBAL_CONFIG_2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GLOBAL_CONFIG_2@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
Lloh19:
	adrp	x23, _TWSI_OPTION3_GPIO@GOTPAGE
Lloh20:
	ldr	x23, [x23, _TWSI_OPTION3_GPIO@GOTPAGEOFF]
	ldr	w22, [x23]
	mov	w0, #0
	bl	_BIT
	ldr	w8, [x23]
	tst	x0, x19
	csel	w3, wzr, w8, eq
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_regmap_update_bits
	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
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mpp4_base,4,2                  ; @mpp4_base
	.comm	_AU1_GPIO_SEL,4,2               ; @AU1_GPIO_SEL
	.comm	_gconfmap,4,2                   ; @gconfmap
	.comm	_SSP_CTRL_STATUS_1,4,2          ; @SSP_CTRL_STATUS_1
	.comm	_SSP_ON_AU1,4,2                 ; @SSP_ON_AU1
	.comm	_MPP_GENERAL_CONFIG,4,2         ; @MPP_GENERAL_CONFIG
	.comm	_AU1_SPDIFO_GPIO_EN,4,2         ; @AU1_SPDIFO_GPIO_EN
	.comm	_GLOBAL_CONFIG_2,4,2            ; @GLOBAL_CONFIG_2
	.comm	_TWSI_OPTION3_GPIO,4,2          ; @TWSI_OPTION3_GPIO
	.no_dead_strip	_dove_audio1_ctrl_set
.subsections_via_symbols
