	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arizona_extcon_remove
_arizona_extcon_remove:                 ## @arizona_extcon_remove
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_platform_get_drvdata
	movq	%rax, %r14
	movq	32(%rax), %rbx
	movl	(%rbx), %edi
	movq	_ARIZONA_MIC_DETECT_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARIZONA_MICD_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %r8
	xorl	%ecx, %ecx
	callq	_regmap_update_bits_check
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpl	$0, -36(%rbp)
	je	LBB0_4
## %bb.3:
	movl	24(%r14), %edi
	callq	_regulator_disable
	movl	20(%r14), %edi
	callq	_pm_runtime_put
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_4:
	movl	16(%r14), %edi
	callq	_gpiod_put
	movq	%r15, %rdi
	callq	_pm_runtime_disable
	movl	(%rbx), %edi
	movq	_ARIZONA_MICD_CLAMP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARIZONA_MICD_CLAMP_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	cmpq	$0, 8(%r14)
	movq	_ARIZONA_IRQ_MICD_CLAMP_RISE@GOTPCREL(%rip), %rax
	cmoveq	_ARIZONA_IRQ_JD_RISE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ARIZONA_IRQ_MICD_CLAMP_FALL@GOTPCREL(%rip), %rax
	cmoveq	_ARIZONA_IRQ_JD_FALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_arizona_set_irq_wake
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_arizona_set_irq_wake
	movq	_ARIZONA_IRQ_HPDET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_arizona_free_irq
	movq	_ARIZONA_IRQ_MICDET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_arizona_free_irq
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	callq	_arizona_free_irq
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_arizona_free_irq
	movq	%r14, %rdi
	callq	_cancel_delayed_work_sync
	movl	(%rbx), %edi
	movq	_ARIZONA_JACK_DETECT_ANALOGUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARIZONA_JD1_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movq	%rbx, %rdi
	callq	_arizona_clk32k_disable
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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 on remove: %d\n"

	.comm	_ARIZONA_MICD_CLAMP_CONTROL,4,2 ## @ARIZONA_MICD_CLAMP_CONTROL
	.comm	_ARIZONA_MICD_CLAMP_MODE_MASK,4,2 ## @ARIZONA_MICD_CLAMP_MODE_MASK
	.comm	_ARIZONA_IRQ_MICD_CLAMP_RISE,4,2 ## @ARIZONA_IRQ_MICD_CLAMP_RISE
	.comm	_ARIZONA_IRQ_MICD_CLAMP_FALL,4,2 ## @ARIZONA_IRQ_MICD_CLAMP_FALL
	.comm	_ARIZONA_IRQ_JD_RISE,4,2        ## @ARIZONA_IRQ_JD_RISE
	.comm	_ARIZONA_IRQ_JD_FALL,4,2        ## @ARIZONA_IRQ_JD_FALL
	.comm	_ARIZONA_IRQ_HPDET,4,2          ## @ARIZONA_IRQ_HPDET
	.comm	_ARIZONA_IRQ_MICDET,4,2         ## @ARIZONA_IRQ_MICDET
	.comm	_ARIZONA_JACK_DETECT_ANALOGUE,4,2 ## @ARIZONA_JACK_DETECT_ANALOGUE
	.comm	_ARIZONA_JD1_ENA,4,2            ## @ARIZONA_JD1_ENA
	.no_dead_strip	_arizona_extcon_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arizona_extcon_remove
_arizona_extcon_remove:                 ; @arizona_extcon_remove
	.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	x21, x0
	bl	_platform_get_drvdata
	mov	x20, x0
	ldr	x19, [x0, #32]
	ldr	w0, [x19]
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
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	w0, [x20, #24]
	bl	_regulator_disable
	ldr	w0, [x20, #20]
	bl	_pm_runtime_put
	b	LBB0_4
LBB0_3:
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
LBB0_4:
	ldr	w0, [x20, #16]
	bl	_gpiod_put
	mov	x0, x21
	bl	_pm_runtime_disable
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _ARIZONA_MICD_CLAMP_CONTROL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARIZONA_MICD_CLAMP_CONTROL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _ARIZONA_MICD_CLAMP_MODE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARIZONA_MICD_CLAMP_MODE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
Lloh14:
	adrp	x8, _ARIZONA_IRQ_JD_RISE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ARIZONA_IRQ_JD_RISE@GOTPAGEOFF]
	ldr	x9, [x20, #8]
Lloh16:
	adrp	x10, _ARIZONA_IRQ_MICD_CLAMP_RISE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _ARIZONA_IRQ_MICD_CLAMP_RISE@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x8, x10, eq
	ldr	w21, [x8]
Lloh18:
	adrp	x8, _ARIZONA_IRQ_JD_FALL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ARIZONA_IRQ_JD_FALL@GOTPAGEOFF]
Lloh20:
	adrp	x9, _ARIZONA_IRQ_MICD_CLAMP_FALL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ARIZONA_IRQ_MICD_CLAMP_FALL@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w22, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_arizona_set_irq_wake
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_arizona_set_irq_wake
Lloh22:
	adrp	x8, _ARIZONA_IRQ_HPDET@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ARIZONA_IRQ_HPDET@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_arizona_free_irq
Lloh25:
	adrp	x8, _ARIZONA_IRQ_MICDET@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ARIZONA_IRQ_MICDET@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_arizona_free_irq
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_arizona_free_irq
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_arizona_free_irq
	mov	x0, x20
	bl	_cancel_delayed_work_sync
	ldr	w0, [x19]
Lloh28:
	adrp	x8, _ARIZONA_JACK_DETECT_ANALOGUE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ARIZONA_JACK_DETECT_ANALOGUE@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _ARIZONA_JD1_ENA@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ARIZONA_JD1_ENA@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
	mov	x0, x19
	bl	_arizona_clk32k_disable
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.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 on remove: %d\n"

	.comm	_ARIZONA_MICD_CLAMP_CONTROL,4,2 ; @ARIZONA_MICD_CLAMP_CONTROL
	.comm	_ARIZONA_MICD_CLAMP_MODE_MASK,4,2 ; @ARIZONA_MICD_CLAMP_MODE_MASK
	.comm	_ARIZONA_IRQ_MICD_CLAMP_RISE,4,2 ; @ARIZONA_IRQ_MICD_CLAMP_RISE
	.comm	_ARIZONA_IRQ_MICD_CLAMP_FALL,4,2 ; @ARIZONA_IRQ_MICD_CLAMP_FALL
	.comm	_ARIZONA_IRQ_JD_RISE,4,2        ; @ARIZONA_IRQ_JD_RISE
	.comm	_ARIZONA_IRQ_JD_FALL,4,2        ; @ARIZONA_IRQ_JD_FALL
	.comm	_ARIZONA_IRQ_HPDET,4,2          ; @ARIZONA_IRQ_HPDET
	.comm	_ARIZONA_IRQ_MICDET,4,2         ; @ARIZONA_IRQ_MICDET
	.comm	_ARIZONA_JACK_DETECT_ANALOGUE,4,2 ; @ARIZONA_JACK_DETECT_ANALOGUE
	.comm	_ARIZONA_JD1_ENA,4,2            ; @ARIZONA_JD1_ENA
	.no_dead_strip	_arizona_extcon_remove
.subsections_via_symbols
