	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mic_set_path
_mic_set_path:                          ## @mic_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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	movq	_DSD_CFG_MUX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_MIC0_I80_MUX@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_MIC0_RGB_MUX@GOTPCREL(%rip), %rax
	movq	_MIC0_I80_MUX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MIC0_ON_MUX@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	-28(%rbp), %edx
	jmp	LBB0_7
LBB0_4:
	movq	_MIC0_RGB_MUX@GOTPCREL(%rip), %rax
LBB0_5:
	movl	-28(%rbp), %edx
	orl	(%rax), %edx
	movq	_MIC0_ON_MUX@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_7:
	movl	%edx, -28(%rbp)
	movl	4(%rbx), %edi
	movl	(%r15), %esi
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DRM_DEV_ERROR
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSD_CFG_MUX,4,2                ## @DSD_CFG_MUX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mic: Failed to read system register\n"

	.comm	_MIC0_I80_MUX,4,2               ## @MIC0_I80_MUX
	.comm	_MIC0_RGB_MUX,4,2               ## @MIC0_RGB_MUX
	.comm	_MIC0_ON_MUX,4,2                ## @MIC0_ON_MUX
	.no_dead_strip	_mic_set_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mic_set_path
_mic_set_path:                          ; @mic_set_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x21, _DSD_CFG_MUX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DSD_CFG_MUX@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_8
; %bb.1:
	cbz	w20, LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _MIC0_I80_MUX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MIC0_I80_MUX@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x8, _MIC0_RGB_MUX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MIC0_RGB_MUX@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _MIC0_I80_MUX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MIC0_I80_MUX@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _MIC0_ON_MUX@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MIC0_ON_MUX@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x8, _MIC0_RGB_MUX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MIC0_RGB_MUX@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _MIC0_ON_MUX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MIC0_ON_MUX@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w2, w9, w8
LBB0_7:
	str	w2, [sp, #12]
	ldr	w0, [x19, #4]
	ldr	w1, [x21]
	bl	_regmap_write
	cbz	w0, LBB0_9
LBB0_8:
	ldr	w0, [x19]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_ERROR
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DSD_CFG_MUX,4,2                ; @DSD_CFG_MUX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mic: Failed to read system register\n"

	.comm	_MIC0_I80_MUX,4,2               ; @MIC0_I80_MUX
	.comm	_MIC0_RGB_MUX,4,2               ; @MIC0_RGB_MUX
	.comm	_MIC0_ON_MUX,4,2                ; @MIC0_ON_MUX
	.no_dead_strip	_mic_set_path
.subsections_via_symbols
