	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dst_dev_event
_dst_dev_event:                         ## @dst_dev_event
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	andq	$-2, %rax
	cmpq	$128, %rax
	jne	LBB0_11
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	_dst_gc_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_dst_busy_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	xorl	%ebx, %ebx
	cmpq	$129, %r14
	setne	%bl
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_dst_ifdown
	movq	(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_5
LBB0_2:
	xorl	%r12d, %r12d
LBB0_5:
	movq	_dst_garbage@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movq	8(%r13), %rbx
	movq	$0, 8(%r13)
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	testq	%r12, %r12
	jne	LBB0_7
## %bb.6:
	movq	_dst_busy_list@GOTPCREL(%rip), %r12
LBB0_7:
	movq	%rbx, (%r12)
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.8:
	xorl	%r12d, %r12d
	cmpq	$129, %r14
	setne	%r12b
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_dst_ifdown
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_9
LBB0_10:
	movq	_dst_gc_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_11:
	movq	_NOTIFY_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dst_gc_mutex,4,2               ## @dst_gc_mutex
	.comm	_dst_busy_list,8,3              ## @dst_busy_list
	.comm	_dst_garbage,16,3               ## @dst_garbage
	.comm	_NOTIFY_DONE,4,2                ## @NOTIFY_DONE
	.no_dead_strip	_dst_dev_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dst_dev_event
_dst_dev_event:                         ; @dst_dev_event
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	and	x8, x1, #0xfffffffffffffffe
	cmp	x8, #128
	b.ne	LBB0_9
; %bb.1:
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x0, _dst_gc_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _dst_gc_mutex@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x24, _dst_busy_list@GOTPAGE
Lloh3:
	ldr	x24, [x24, _dst_busy_list@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_4
; %bb.2:
	cmp	x20, #129
	cset	w21, ne
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x8
	mov	x0, x8
	mov	x1, x19
	mov	x2, x21
	bl	_dst_ifdown
	ldr	x8, [x22]
	cbnz	x8, LBB0_3
	b	LBB0_5
LBB0_4:
	mov	x22, #0
LBB0_5:
Lloh4:
	adrp	x23, _dst_garbage@GOTPAGE
Lloh5:
	ldr	x23, [x23, _dst_garbage@GOTPAGEOFF]
	mov	x0, x23
	bl	_spin_lock_bh
	ldr	x21, [x23, #8]
	str	xzr, [x23, #8]
	mov	x0, x23
	bl	_spin_unlock_bh
	cmp	x22, #0
	csel	x8, x24, x22, eq
	str	x21, [x8]
	cbz	x21, LBB0_8
; %bb.6:
	cmp	x20, #129
	cset	w20, ne
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_dst_ifdown
	ldr	x21, [x21]
	cbnz	x21, LBB0_7
LBB0_8:
Lloh6:
	adrp	x0, _dst_gc_mutex@GOTPAGE
Lloh7:
	ldr	x0, [x0, _dst_gc_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_9:
Lloh8:
	adrp	x8, _NOTIFY_DONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NOTIFY_DONE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_dst_gc_mutex,4,2               ; @dst_gc_mutex
	.comm	_dst_busy_list,8,3              ; @dst_busy_list
	.comm	_dst_garbage,16,3               ; @dst_garbage
	.comm	_NOTIFY_DONE,4,2                ; @NOTIFY_DONE
	.no_dead_strip	_dst_dev_event
.subsections_via_symbols
