	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_target_delete_before       ## -- Begin function udp_target_delete_before
	.p2align	4, 0x90
_udp_target_delete_before:              ## @udp_target_delete_before
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rsi
	movq	_udp_target_set_tree@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tree_lookup_value_udp_target_set
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	(%rax), %rbx
	movl	(%rbx), %eax
	cmpq	$3, %rax
	ja	LBB0_11
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	cmpl	%r14d, 4(%rbx)
	jge	LBB0_15
	jmp	LBB0_4
LBB0_5:
	movq	32(%rbx), %rdi
	movl	(%rdi), %eax
	cmpl	%r14d, %eax
	jge	LBB0_15
## %bb.6:
	testl	%eax, %eax
	je	LBB0_15
## %bb.7:
	callq	_udp_target_free
	movl	$0, (%rbx)
	jmp	LBB0_15
LBB0_8:
	movq	24(%rbx), %rax
	movl	(%rax), %r15d
	movl	%r14d, -40(%rbp)
	movl	$0, -36(%rbp)
	movq	16(%rbx), %rdx
	leaq	-32(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rcx
	callq	_tree_split_udp_target_by_fpid
	movq	-48(%rbp), %rax
	movq	%rax, 16(%rbx)
	movq	-32(%rbp), %rdi
	callq	_tree_count_udp_target_by_fpid
	subl	%eax, 8(%rbx)
	movq	-32(%rbp), %rdi
	movq	_udp_target_free@GOTPCREL(%rip), %rsi
	callq	_tree_act_udp_target_by_fpid
	movq	-32(%rbp), %rdi
	callq	_tree_clear_udp_target_by_fpid
	movl	8(%rbx), %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movl	8(%rbx), %eax
	cmpl	$1, %eax
	je	LBB0_12
## %bb.9:
	testl	%eax, %eax
	jne	LBB0_13
LBB0_4:
	movl	$0, (%rbx)
	jmp	LBB0_15
LBB0_11:
	xorl	%edi, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
LBB0_12:
	movq	16(%rbx), %rdi
	movq	(%rdi), %r14
	callq	_tree_clear_udp_target_by_fpid
	movl	$2, (%rbx)
	movq	%r14, 32(%rbx)
	jmp	LBB0_15
LBB0_13:
	cmpl	%r14d, %r15d
	jge	LBB0_15
## %bb.14:
	movq	16(%rbx), %rdi
	callq	_tree_get_min_udp_target_by_fpid
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_udp_target_set_tree,4,2        ## @udp_target_set_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_target_delete_before       ; -- Begin function udp_target_delete_before
	.p2align	2
_udp_target_delete_before:              ; @udp_target_delete_before
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x1, x0
Lloh0:
	adrp	x8, _udp_target_set_tree@GOTPAGE
Lloh1:
	ldr	x8, [x8, _udp_target_set_tree@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_tree_lookup_value_udp_target_set
	cbz	x0, LBB0_13
; %bb.1:
	ldr	x20, [x0]
	ldr	w8, [x20]
	cmp	w8, #3
	b.hi	LBB0_9
; %bb.2:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w8, [x20, #4]
	cmp	w8, w19
	b.ge	LBB0_13
	b	LBB0_8
LBB0_4:
	ldr	x0, [x20, #32]
	ldr	w8, [x0]
	cmp	w8, w19
	ccmp	w8, #0, #4, lt
	b.eq	LBB0_13
; %bb.5:
	bl	_udp_target_free
	str	wzr, [x20]
	b	LBB0_13
LBB0_6:
	ldp	x2, x8, [x20, #16]
	ldr	w21, [x8]
	stp	w19, wzr, [sp, #8]
	add	x0, sp, #24
	add	x1, sp, #16
	add	x3, sp, #8
	bl	_tree_split_udp_target_by_fpid
	ldp	x8, x0, [sp, #16]
	str	x8, [x20, #16]
	bl	_tree_count_udp_target_by_fpid
	ldr	w8, [x20, #8]
	sub	w8, w8, w0
	str	w8, [x20, #8]
	ldr	x0, [sp, #24]
Lloh5:
	adrp	x1, _udp_target_free@GOTPAGE
Lloh6:
	ldr	x1, [x1, _udp_target_free@GOTPAGEOFF]
	bl	_tree_act_udp_target_by_fpid
	ldr	x0, [sp, #24]
	bl	_tree_clear_udp_target_by_fpid
	ldr	w8, [x20, #8]
	mvn	w8, w8
	lsr	w0, w8, #31
	bl	_assert
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.eq	LBB0_10
; %bb.7:
	cbnz	w8, LBB0_11
LBB0_8:
	str	wzr, [x20]
	b	LBB0_13
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_assert
LBB0_10:
	ldr	x0, [x20, #16]
	ldr	x19, [x0]
	bl	_tree_clear_udp_target_by_fpid
	mov	w8, #2
	str	w8, [x20]
	str	x19, [x20, #32]
	b	LBB0_13
LBB0_11:
	cmp	w21, w19
	b.ge	LBB0_13
; %bb.12:
	ldr	x0, [x20, #16]
	bl	_tree_get_min_udp_target_by_fpid
	ldr	x8, [x0]
	str	x8, [x20, #24]
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
                                        ; -- End function
	.comm	_udp_target_set_tree,4,2        ; @udp_target_set_tree
.subsections_via_symbols
