	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arizona_start_mic
_arizona_start_mic:                     ## @arizona_start_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movl	(%rdi), %edi
	callq	_pm_runtime_get
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.1:
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	_regulator_allow_bypass
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_3:
	movl	4(%rbx), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_5:
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.6:
	movl	4(%r14), %edi
	movl	$128, %esi
	movl	$3, %edx
	callq	_regmap_write
	movl	4(%r14), %edi
	movl	$660, %esi                      ## imm = 0x294
	xorl	%edx, %edx
	callq	_regmap_write
	movl	4(%r14), %edi
	movl	$128, %esi
	xorl	%edx, %edx
	callq	_regmap_write
LBB0_7:
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.8:
	cmpq	$0, 8(%r14)
	je	LBB0_10
## %bb.9:
	movq	_ARIZONA_ACCDET_MODE_ADC@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_ARIZONA_ACCDET_MODE_MIC@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ecx
	movl	4(%r14), %edi
	movq	_ARIZONA_ACCESSORY_DETECT_MODE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARIZONA_ACCDET_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_update_bits
	movq	%rbx, %rdi
	callq	_arizona_extcon_pulse_micbias
	movl	4(%r14), %edi
	movq	_ARIZONA_MIC_DETECT_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARIZONA_MICD_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-20(%rbp), %r8
	movl	%ecx, %edx
	callq	_regmap_update_bits_check
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	cmpl	$0, -20(%rbp)
	jne	LBB0_15
## %bb.14:
	movl	4(%rbx), %edi
	callq	_regulator_disable
	movl	(%rbx), %edi
	callq	_pm_runtime_put_autosuspend
	jmp	LBB0_15
LBB0_12:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to regulate MICVDD: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to enable MICVDD: %d\n"

	.comm	_ARIZONA_ACCDET_MODE_ADC,4,2    ## @ARIZONA_ACCDET_MODE_ADC
	.comm	_ARIZONA_ACCDET_MODE_MIC,4,2    ## @ARIZONA_ACCDET_MODE_MIC
	.comm	_ARIZONA_ACCESSORY_DETECT_MODE_1,4,2 ## @ARIZONA_ACCESSORY_DETECT_MODE_1
	.comm	_ARIZONA_ACCDET_MODE_MASK,4,2   ## @ARIZONA_ACCDET_MODE_MASK
	.comm	_ARIZONA_MIC_DETECT_1,4,2       ## @ARIZONA_MIC_DETECT_1
	.comm	_ARIZONA_MICD_ENA,4,2           ## @ARIZONA_MICD_ENA
L_.str.2:                               ## @.str.2
	.asciz	"Failed to enable micd: %d\n"

	.no_dead_strip	_arizona_start_mic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arizona_start_mic
_arizona_start_mic:                     ; @arizona_start_mic
	.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
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	w0, [x0]
	bl	_pm_runtime_get
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
	mov	w1, #0
	bl	_regulator_allow_bypass
	cbz	w0, LBB0_3
; %bb.2:
	mov	x2, x0
	ldr	w0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_3:
	ldr	w0, [x19, #4]
	bl	_regulator_enable
	cbz	w0, LBB0_5
; %bb.4:
	mov	x2, x0
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_5:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x20, #4]
	mov	w1, #128
	mov	w2, #3
	bl	_regmap_write
	ldr	w0, [x20, #4]
	mov	w1, #660
	mov	w2, #0
	bl	_regmap_write
	ldr	w0, [x20, #4]
	mov	w1, #128
	mov	w2, #0
	bl	_regmap_write
LBB0_7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.8:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_10
; %bb.9:
Lloh4:
	adrp	x8, _ARIZONA_ACCDET_MODE_ADC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ARIZONA_ACCDET_MODE_ADC@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh6:
	adrp	x8, _ARIZONA_ACCDET_MODE_MIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARIZONA_ACCDET_MODE_MIC@GOTPAGEOFF]
LBB0_11:
	ldr	w3, [x8]
	ldr	w0, [x20, #4]
Lloh8:
	adrp	x8, _ARIZONA_ACCESSORY_DETECT_MODE_1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARIZONA_ACCESSORY_DETECT_MODE_1@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _ARIZONA_ACCDET_MODE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARIZONA_ACCDET_MODE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_regmap_update_bits
	mov	x0, x19
	bl	_arizona_extcon_pulse_micbias
	ldr	w0, [x20, #4]
Lloh14:
	adrp	x8, _ARIZONA_MIC_DETECT_1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ARIZONA_MIC_DETECT_1@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _ARIZONA_MICD_ENA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ARIZONA_MICD_ENA@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	add	x4, sp, #12
	mov	x3, x2
	bl	_regmap_update_bits_check
	tbnz	w0, #31, LBB0_14
; %bb.12:
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_15
; %bb.13:
	ldr	w0, [x19, #4]
	bl	_regulator_disable
	ldr	w0, [x19]
	bl	_pm_runtime_put_autosuspend
	b	LBB0_15
LBB0_14:
	mov	x2, x0
	ldr	w0, [x20]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to regulate MICVDD: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to enable MICVDD: %d\n"

	.comm	_ARIZONA_ACCDET_MODE_ADC,4,2    ; @ARIZONA_ACCDET_MODE_ADC
	.comm	_ARIZONA_ACCDET_MODE_MIC,4,2    ; @ARIZONA_ACCDET_MODE_MIC
	.comm	_ARIZONA_ACCESSORY_DETECT_MODE_1,4,2 ; @ARIZONA_ACCESSORY_DETECT_MODE_1
	.comm	_ARIZONA_ACCDET_MODE_MASK,4,2   ; @ARIZONA_ACCDET_MODE_MASK
	.comm	_ARIZONA_MIC_DETECT_1,4,2       ; @ARIZONA_MIC_DETECT_1
	.comm	_ARIZONA_MICD_ENA,4,2           ; @ARIZONA_MICD_ENA
l_.str.2:                               ; @.str.2
	.asciz	"Failed to enable micd: %d\n"

	.no_dead_strip	_arizona_start_mic
.subsections_via_symbols
