	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apmdtor
_apmdtor:                               ## @apmdtor
	.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
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	movq	_APM_EV_ACKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_acpi_AckSleepState
LBB0_3:
	movq	_acpi@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_ACPI_LOCK
	addq	$8, %rbx
	movq	_apm_clone_data@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_entries@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_STAILQ_REMOVE
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_seldrain
	movq	%rbx, %rdi
	callq	_knlist_destroy
	movl	(%r15), %edi
	callq	_ACPI_UNLOCK
	movq	_M_APMDEV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_APM_EV_ACKED,8,3               ## @APM_EV_ACKED
	.comm	_acpi,4,2                       ## @acpi
	.comm	_apm_clone_data,4,2             ## @apm_clone_data
	.comm	_entries,4,2                    ## @entries
	.comm	_M_APMDEV,4,2                   ## @M_APMDEV
	.no_dead_strip	_apmdtor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apmdtor
_apmdtor:                               ; @apmdtor
	.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, x0
	ldr	x20, [x0, #16]
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _APM_EV_ACKED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _APM_EV_ACKED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_acpi_AckSleepState
LBB0_3:
Lloh3:
	adrp	x21, _acpi@GOTPAGE
Lloh4:
	ldr	x21, [x21, _acpi@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_ACPI_LOCK
	add	x0, x20, #8
Lloh5:
	adrp	x8, _apm_clone_data@GOTPAGE
Lloh6:
	ldr	x8, [x8, _apm_clone_data@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _entries@GOTPAGE
Lloh9:
	ldr	x8, [x8, _entries@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x1, x19
	bl	_STAILQ_REMOVE
	add	x20, x19, #8
	mov	x0, x20
	bl	_seldrain
	mov	x0, x20
	bl	_knlist_destroy
	ldr	w0, [x21]
	bl	_ACPI_UNLOCK
Lloh11:
	adrp	x8, _M_APMDEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _M_APMDEV@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_APM_EV_ACKED,8,3               ; @APM_EV_ACKED
	.comm	_acpi,4,2                       ; @acpi
	.comm	_apm_clone_data,4,2             ; @apm_clone_data
	.comm	_entries,4,2                    ; @entries
	.comm	_M_APMDEV,4,2                   ; @M_APMDEV
	.no_dead_strip	_apmdtor
.subsections_via_symbols
