	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmif_destroy
_atmif_destroy:                         ## @atmif_destroy
	.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	_ATMIF_NOTIFY_DESTROY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_atmif_send_notification
	movq	%r14, %rdi
	callq	_atmif_sys_destroy
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_mibif_unnotify
LBB0_2:
	movq	%r14, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	movq	_link@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	%rbx, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
LBB0_5:
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_atmif_list@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_TAILQ_REMOVE
	movq	%r14, %rdi
	callq	_free
	movq	_this_tick@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_last_change@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATMIF_NOTIFY_DESTROY,4,2       ## @ATMIF_NOTIFY_DESTROY
	.comm	_link,4,2                       ## @link
	.comm	_atmif_list,4,2                 ## @atmif_list
	.comm	_this_tick,4,2                  ## @this_tick
	.comm	_last_change,4,2                ## @last_change
	.no_dead_strip	_atmif_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmif_destroy
_atmif_destroy:                         ; @atmif_destroy
	.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
Lloh0:
	adrp	x8, _ATMIF_NOTIFY_DESTROY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATMIF_NOTIFY_DESTROY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_atmif_send_notification
	mov	x0, x19
	bl	_atmif_sys_destroy
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_mibif_unnotify
LBB0_2:
	mov	x0, x19
	bl	_TAILQ_FIRST
Lloh3:
	adrp	x21, _link@GOTPAGE
Lloh4:
	ldr	x21, [x21, _link@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_TAILQ_REMOVE
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_TAILQ_FIRST
	mov	x20, x0
	cbnz	x0, LBB0_4
LBB0_5:
	ldr	w2, [x21]
Lloh5:
	adrp	x0, _atmif_list@GOTPAGE
Lloh6:
	ldr	x0, [x0, _atmif_list@GOTPAGEOFF]
	mov	x1, x19
	bl	_TAILQ_REMOVE
	mov	x0, x19
	bl	_free
Lloh7:
	adrp	x8, _this_tick@GOTPAGE
Lloh8:
	ldr	x8, [x8, _this_tick@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _last_change@GOTPAGE
Lloh11:
	ldr	x9, [x9, _last_change@GOTPAGEOFF]
Lloh12:
	str	w8, [x9]
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ATMIF_NOTIFY_DESTROY,4,2       ; @ATMIF_NOTIFY_DESTROY
	.comm	_link,4,2                       ; @link
	.comm	_atmif_list,4,2                 ; @atmif_list
	.comm	_this_tick,4,2                  ; @this_tick
	.comm	_last_change,4,2                ; @last_change
	.no_dead_strip	_atmif_destroy
.subsections_via_symbols
