	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_target_delete_by_pid       ## -- Begin function udp_target_delete_by_pid
	.p2align	4, 0x90
_udp_target_delete_by_pid:              ## @udp_target_delete_by_pid
	.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, %rbx
	movq	_udp_target_set_tree@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_tree_lookup_value_udp_target_set
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	(%rax), %r14
	movl	(%r14), %eax
	cmpq	$3, %rax
	ja	LBB0_17
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movl	32(%r14), %eax
	cmpl	4(%rbx), %eax
	jne	LBB0_16
## %bb.4:
	movl	28(%r14), %eax
	cmpl	(%rbx), %eax
	jne	LBB0_16
## %bb.5:
	movl	$0, (%r14)
	jmp	LBB0_16
LBB0_17:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
LBB0_6:
	movq	16(%r14), %rdi
	movl	4(%rdi), %eax
	cmpl	4(%rbx), %eax
	jne	LBB0_16
## %bb.7:
	movl	(%rdi), %eax
	cmpl	(%rbx), %eax
	jne	LBB0_16
## %bb.8:
	callq	_udp_target_free
	movl	$0, (%r14)
	jmp	LBB0_16
LBB0_9:
	movq	8(%r14), %rax
	movl	4(%rax), %ecx
	movb	$1, %r15b
	cmpl	4(%rbx), %ecx
	jne	LBB0_11
## %bb.10:
	movl	(%rax), %eax
	cmpl	(%rbx), %eax
	setne	%r15b
LBB0_11:
	movl	24(%r14), %edi
	movq	%rbx, %rsi
	callq	_tree_lookup_value_udp_target_by_fpid
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movq	(%rax), %rbx
	xorl	%edi, %edi
	cmpl	$2, 4(%r14)
	setge	%dil
	callq	_assert
	movl	24(%r14), %edi
	movq	%rbx, %rsi
	callq	_tree_delete_udp_target_by_fpid
	movl	%eax, 24(%r14)
	decl	4(%r14)
	movq	%rbx, %rdi
	callq	_udp_target_free
	movl	24(%r14), %edi
	callq	_tree_get_min_udp_target_by_fpid
	movq	(%rax), %rbx
	cmpl	$1, 4(%r14)
	jne	LBB0_14
## %bb.13:
	movl	24(%r14), %edi
	callq	_tree_clear_udp_target_by_fpid
	movl	$2, (%r14)
	movq	%rbx, 16(%r14)
	jmp	LBB0_16
LBB0_14:
	testb	%r15b, %r15b
	jne	LBB0_16
## %bb.15:
	movq	%rbx, 8(%r14)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_9
	.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_by_pid       ; -- Begin function udp_target_delete_by_pid
	.p2align	2
_udp_target_delete_by_pid:              ; @udp_target_delete_by_pid
	.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, _udp_target_set_tree@GOTPAGE
Lloh1:
	ldr	x8, [x8, _udp_target_set_tree@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_tree_lookup_value_udp_target_set
	cbz	x0, LBB0_18
; %bb.1:
	ldr	x20, [x0]
	ldr	w8, [x20]
	cmp	w8, #3
	b.hi	LBB0_6
; %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, #32]
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.4:
	ldr	w8, [x20, #28]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.5:
	str	wzr, [x20]
	b	LBB0_18
LBB0_6:
	mov	w0, #0
	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	_assert
LBB0_7:
	ldr	x0, [x20, #16]
	ldr	w8, [x0, #4]
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.8:
	ldr	w8, [x0]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.9:
	bl	_udp_target_free
	str	wzr, [x20]
	b	LBB0_18
LBB0_10:
	ldr	x8, [x20, #8]
	ldr	w9, [x8, #4]
	ldr	w10, [x19, #4]
	cmp	w9, w10
	b.ne	LBB0_12
; %bb.11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	cmp	w8, w9
	cset	w21, ne
	b	LBB0_13
LBB0_12:
	mov	w21, #1
LBB0_13:
	ldr	w0, [x20, #24]
	mov	x1, x19
	bl	_tree_lookup_value_udp_target_by_fpid
	cbz	x0, LBB0_18
; %bb.14:
	ldr	x19, [x0]
	ldr	w8, [x20, #4]
	cmp	w8, #1
	cset	w0, gt
	bl	_assert
	ldr	w0, [x20, #24]
	mov	x1, x19
	bl	_tree_delete_udp_target_by_fpid
	str	w0, [x20, #24]
	ldr	w8, [x20, #4]
	sub	w8, w8, #1
	str	w8, [x20, #4]
	mov	x0, x19
	bl	_udp_target_free
	ldr	w0, [x20, #24]
	bl	_tree_get_min_udp_target_by_fpid
	ldr	x19, [x0]
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.ne	LBB0_16
; %bb.15:
	ldr	w0, [x20, #24]
	bl	_tree_clear_udp_target_by_fpid
	mov	w8, #2
	str	w8, [x20]
	str	x19, [x20, #16]
	b	LBB0_18
LBB0_16:
	tbnz	w21, #0, LBB0_18
; %bb.17:
	str	x19, [x20, #8]
LBB0_18:
	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 AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_18-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
                                        ; -- End function
	.comm	_udp_target_set_tree,4,2        ; @udp_target_set_tree
.subsections_via_symbols
