	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arizona_micdet
_arizona_micdet:                        ## @arizona_micdet
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	16(%rsi), %rax
	movl	(%rax), %r14d
	movq	%rsi, %rdi
	callq	_cancel_delayed_work_sync
	leaq	12(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	8(%rbx), %r12d
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	_system_power_efficient_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_msecs_to_jiffies
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_queue_delayed_work
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_arizona_micd_detect
LBB0_4:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_system_power_efficient_wq,4,2  ## @system_power_efficient_wq
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_arizona_micdet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arizona_micdet
_arizona_micdet:                        ; @arizona_micdet
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldr	x8, [x1, #16]
	ldr	w20, [x8]
	mov	x0, x1
	bl	_cancel_delayed_work_sync
	add	x0, x19, #12
	bl	_cancel_delayed_work_sync
	add	x21, x19, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	w22, [x19, #8]
	mov	x0, x21
	bl	_mutex_unlock
	cmp	w22, #0
	ccmp	w20, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_arizona_micd_detect
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _system_power_efficient_wq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _system_power_efficient_wq@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_queue_delayed_work
LBB0_3:
Lloh3:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_system_power_efficient_wq,4,2  ; @system_power_efficient_wq
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_arizona_micdet
.subsections_via_symbols
