	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt8973a_muic_set_path
_rt8973a_muic_set_path:                 ## @rt8973a_muic_set_path
	.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
	xorl	%r14d, %r14d
	cmpq	$0, 8(%rdi)
	jne	LBB0_5
## %bb.1:
	movl	%esi, %ecx
	movq	%rdi, %rbx
	testl	%edx, %edx
	movl	$129, %eax
	cmovel	%eax, %ecx
	leal	-128(%rcx), %eax
	cmpl	$2, %eax
	ja	LBB0_4
## %bb.2:
	movl	4(%rbx), %edi
	movq	_RT8973A_REG_MANUAL_SW1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RT8973A_REG_MANUAL_SW1_DP_MASK@GOTPCREL(%rip), %rax
	movq	_RT8973A_REG_MANUAL_SW1_DM_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_regmap_update_bits
	testl	%eax, %eax
	jns	LBB0_5
## %bb.3:
	movl	%eax, %r15d
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r15d, %r14d
	jmp	LBB0_5
LBB0_4:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%ecx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RT8973A_REG_MANUAL_SW1,4,2     ## @RT8973A_REG_MANUAL_SW1
	.comm	_RT8973A_REG_MANUAL_SW1_DP_MASK,4,2 ## @RT8973A_REG_MANUAL_SW1_DP_MASK
	.comm	_RT8973A_REG_MANUAL_SW1_DM_MASK,4,2 ## @RT8973A_REG_MANUAL_SW1_DM_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot update DM_CON/DP_CON switch\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unknown DM_CON/DP_CON switch type (%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rt8973a_muic_set_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt8973a_muic_set_path
_rt8973a_muic_set_path:                 ; @rt8973a_muic_set_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w20, #0
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	mov	w8, #129
	cmp	w2, #0
	csel	w3, w8, w1, eq
	sub	w8, w3, #128
	cmp	w8, #2
	b.hi	LBB0_5
; %bb.3:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _RT8973A_REG_MANUAL_SW1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RT8973A_REG_MANUAL_SW1@GOTPAGEOFF]
Lloh2:
	adrp	x9, _RT8973A_REG_MANUAL_SW1_DP_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RT8973A_REG_MANUAL_SW1_DP_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _RT8973A_REG_MANUAL_SW1_DM_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RT8973A_REG_MANUAL_SW1_DM_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_regmap_update_bits
	tbz	w0, #31, LBB0_1
; %bb.4:
	mov	x20, x0
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_5:
	ldr	w0, [x19]
	str	x3, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RT8973A_REG_MANUAL_SW1,4,2     ; @RT8973A_REG_MANUAL_SW1
	.comm	_RT8973A_REG_MANUAL_SW1_DP_MASK,4,2 ; @RT8973A_REG_MANUAL_SW1_DP_MASK
	.comm	_RT8973A_REG_MANUAL_SW1_DM_MASK,4,2 ; @RT8973A_REG_MANUAL_SW1_DM_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot update DM_CON/DP_CON switch\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unknown DM_CON/DP_CON switch type (%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rt8973a_muic_set_path
.subsections_via_symbols
