	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arizona_stop_mic
_arizona_stop_mic:                      ## @arizona_stop_mic
	.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	%rdi, %r13
	movq	16(%rdi), %rbx
	callq	_arizona_extcon_get_micbias
	movq	%rax, %r15
	movq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_snd_soc_dapm_to_component
	movq	%rax, %r12
	movl	$0, -44(%rbp)
	movl	4(%rbx), %edi
	movq	_ARIZONA_MIC_DETECT_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARIZONA_MICD_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %r8
	xorl	%ecx, %ecx
	callq	_regmap_update_bits_check
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_2:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_snd_soc_component_disable_pin
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_dev_warn
LBB0_4:
	movq	%r14, %rdi
	callq	_snd_soc_dapm_sync
	cmpq	$0, 8(%r13)
	je	LBB0_6
## %bb.5:
	movl	4(%rbx), %edi
	movl	$128, %esi
	movl	$3, %edx
	callq	_regmap_write
	movl	4(%rbx), %edi
	movl	$660, %esi                      ## imm = 0x294
	movl	$2, %edx
	callq	_regmap_write
	movl	4(%rbx), %edi
	movl	$128, %esi
	xorl	%edx, %edx
	callq	_regmap_write
LBB0_6:
	movl	4(%r13), %edi
	movl	$1, %esi
	callq	_regulator_allow_bypass
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_8:
	cmpl	$0, -44(%rbp)
	je	LBB0_10
## %bb.9:
	movl	4(%r13), %edi
	callq	_regulator_disable
	movl	(%r13), %edi
	callq	_pm_runtime_mark_last_busy
	movl	(%r13), %edi
	callq	_pm_runtime_put_autosuspend
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARIZONA_MIC_DETECT_1,4,2       ## @ARIZONA_MIC_DETECT_1
	.comm	_ARIZONA_MICD_ENA,4,2           ## @ARIZONA_MICD_ENA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to disable micd: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to disable %s: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to bypass MICVDD: %d\n"

	.no_dead_strip	_arizona_stop_mic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arizona_stop_mic
_arizona_stop_mic:                      ; @arizona_stop_mic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	x23, [x0, #16]
	bl	_arizona_extcon_get_micbias
	mov	x21, x0
	ldr	x20, [x23, #8]
	mov	x0, x20
	bl	_snd_soc_dapm_to_component
	mov	x22, x0
	str	wzr, [sp, #12]
	ldr	w0, [x23, #4]
Lloh0:
	adrp	x8, _ARIZONA_MIC_DETECT_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARIZONA_MIC_DETECT_1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ARIZONA_MICD_ENA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARIZONA_MICD_ENA@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x4, sp, #12
	mov	w3, #0
	bl	_regmap_update_bits_check
	tbz	w0, #31, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w0, [x23]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_2:
	mov	x0, x22
	mov	x1, x21
	bl	_snd_soc_component_disable_pin
	cbz	w0, LBB0_4
; %bb.3:
	mov	x3, x0
	ldr	w0, [x23]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_warn
LBB0_4:
	mov	x0, x20
	bl	_snd_soc_dapm_sync
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x23, #4]
	mov	w1, #128
	mov	w2, #3
	bl	_regmap_write
	ldr	w0, [x23, #4]
	mov	w1, #660
	mov	w2, #2
	bl	_regmap_write
	ldr	w0, [x23, #4]
	mov	w1, #128
	mov	w2, #0
	bl	_regmap_write
LBB0_6:
	ldr	w0, [x19, #4]
	mov	w1, #1
	bl	_regulator_allow_bypass
	cbz	w0, LBB0_8
; %bb.7:
	mov	x2, x0
	ldr	w0, [x23]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
LBB0_8:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_10
; %bb.9:
	ldr	w0, [x19, #4]
	bl	_regulator_disable
	ldr	w0, [x19]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19]
	bl	_pm_runtime_put_autosuspend
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ARIZONA_MIC_DETECT_1,4,2       ; @ARIZONA_MIC_DETECT_1
	.comm	_ARIZONA_MICD_ENA,4,2           ; @ARIZONA_MICD_ENA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to disable micd: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to disable %s: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to bypass MICVDD: %d\n"

	.no_dead_strip	_arizona_stop_mic
.subsections_via_symbols
