	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_target_update_hash         ## -- Begin function udp_target_update_hash
	.p2align	4, 0x90
_udp_target_update_hash:                ## @udp_target_update_hash
	.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
	leaq	8(%rdi), %rbx
	movq	_PID@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$12, %edx
	callq	_memcmp
	testl	%eax, %eax
	movq	%rbx, %rsi
	cmovsq	%r15, %rsi
	cmovnsq	%r15, %rbx
	leaq	_udp_target_update_hash.P(%rip), %rdi
	movl	$12, %edx
	callq	_memcpy
	leaq	_udp_target_update_hash.P+12(%rip), %rdi
	movq	%rbx, %rsi
	movl	$12, %edx
	callq	_memcpy
	movl	(%r14), %eax
	movl	%eax, _udp_target_update_hash.P+24(%rip)
	movl	4(%r14), %edx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_vkprintf
	movq	_udp_target_by_hash@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_tree_delete_udp_target_by_hash
	movl	%eax, (%rbx)
LBB0_2:
	leaq	_udp_target_update_hash.P(%rip), %rdi
	movl	$28, %esi
	callq	_crc64
	movl	%eax, 4(%r14)
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	movl	%eax, %edx
	callq	_vkprintf
	movq	_udp_target_by_hash@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	xorl	%eax, %eax
	callq	_lrand48
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_tree_insert_udp_target_by_hash
	movl	%eax, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_udp_target_update_hash.P,28,4 ## @udp_target_update_hash.P
	.comm	_PID,4,2                        ## @PID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"delete: hash = %lld\n"

	.comm	_udp_target_by_hash,4,2         ## @udp_target_by_hash
L_.str.1:                               ## @.str.1
	.asciz	"insert: hash = %lld\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_target_update_hash         ; -- Begin function udp_target_update_hash
	.p2align	2
_udp_target_update_hash:                ; @udp_target_update_hash
	.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
	add	x20, x0, #8
Lloh0:
	adrp	x21, _PID@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PID@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #12
	bl	_memcmp
	cmp	w0, #0
	csel	x1, x21, x20, lt
	csel	x20, x20, x21, lt
Lloh2:
	adrp	x21, _udp_target_update_hash.P@PAGE
Lloh3:
	add	x21, x21, _udp_target_update_hash.P@PAGEOFF
	mov	x0, x21
	mov	w2, #12
	bl	_memcpy
	add	x0, x21, #12
	mov	x1, x20
	mov	w2, #12
	bl	_memcpy
	ldr	w8, [x19]
	str	w8, [x21, #24]
	ldr	w2, [x19, #4]
Lloh4:
	adrp	x21, _udp_target_by_hash@GOTPAGE
Lloh5:
	ldr	x21, [x21, _udp_target_by_hash@GOTPAGEOFF]
	cbz	w2, LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_vkprintf
	ldr	w0, [x21]
	mov	x1, x19
	bl	_tree_delete_udp_target_by_hash
	str	w0, [x21]
LBB0_2:
Lloh8:
	adrp	x0, _udp_target_update_hash.P@PAGE
Lloh9:
	add	x0, x0, _udp_target_update_hash.P@PAGEOFF
	mov	w1, #28
	bl	_crc64
	mov	x2, x0
	str	w0, [x19, #4]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_vkprintf
	ldr	w20, [x21]
	bl	_lrand48
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_tree_insert_udp_target_by_hash
	str	w0, [x21]
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_udp_target_update_hash.P,28,2 ; @udp_target_update_hash.P
	.comm	_PID,4,2                        ; @PID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"delete: hash = %lld\n"

	.comm	_udp_target_by_hash,4,2         ; @udp_target_by_hash
l_.str.1:                               ; @.str.1
	.asciz	"insert: hash = %lld\n"

.subsections_via_symbols
