	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_target_restart_send        ## -- Begin function udp_target_restart_send
	.p2align	4, 0x90
_udp_target_restart_send:               ## @udp_target_restart_send
	.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	%rdi, %rbx
	movq	_UDP_WAIT@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	notl	%eax
	andl	(%rdi), %eax
	movl	%eax, (%rdi)
	movq	24(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	testl	%eax, (%r15)
	jne	LBB0_11
## %bb.2:
	movq	_udp_drop_probability@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	callq	_queue_get_first_tmp_msg
	movq	(%rax), %r13
	movq	8(%rax), %r14
	movq	24(%rbx), %rdi
	callq	_queue_del_first_tmp_msg
	movq	%rax, 24(%rbx)
	cmpq	$0, (%r12)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_drand48
	cmpq	(%r12), %rax
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_rwm_free
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rbx), %edi
	movq	%r14, %rsi
	callq	_udp_queue_message
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_udp_packets_sent@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	(%r14), %eax
	movq	_udp_data_sent@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	movq	_udp_data_body_sent@GOTPCREL(%rip), %rax
	addl	%r13d, (%rax)
	addq	8(%rbx), %r13
	movq	%r13, 8(%rbx)
	movq	_STOP_WINDOW_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %eax
	orl	%eax, (%rbx)
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UDP_WAIT,4,2                   ## @UDP_WAIT
	.comm	_udp_drop_probability,8,3       ## @udp_drop_probability
	.comm	_udp_packets_sent,4,2           ## @udp_packets_sent
	.comm	_udp_data_sent,4,2              ## @udp_data_sent
	.comm	_udp_data_body_sent,4,2         ## @udp_data_body_sent
	.comm	_STOP_WINDOW_SIZE,8,3           ## @STOP_WINDOW_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_target_restart_send        ; -- Begin function udp_target_restart_send
	.p2align	2
_udp_target_restart_send:               ; @udp_target_restart_send
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x21, _UDP_WAIT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UDP_WAIT@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [x0]
	bic	w8, w9, w8
	str	w8, [x0]
	ldr	x0, [x0, #24]
	cbz	x0, LBB0_11
; %bb.1:
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.2:
Lloh2:
	adrp	x22, _udp_drop_probability@GOTPAGE
Lloh3:
	ldr	x22, [x22, _udp_drop_probability@GOTPAGEOFF]
Lloh4:
	adrp	x23, _udp_packets_sent@GOTPAGE
Lloh5:
	ldr	x23, [x23, _udp_packets_sent@GOTPAGEOFF]
Lloh6:
	adrp	x24, _udp_data_sent@GOTPAGE
Lloh7:
	ldr	x24, [x24, _udp_data_sent@GOTPAGEOFF]
Lloh8:
	adrp	x25, _udp_data_body_sent@GOTPAGE
Lloh9:
	ldr	x25, [x25, _udp_data_body_sent@GOTPAGEOFF]
Lloh10:
	adrp	x26, _STOP_WINDOW_SIZE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _STOP_WINDOW_SIZE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_queue_get_first_tmp_msg
	ldp	x27, x20, [x0]
	ldr	x0, [x19, #24]
	bl	_queue_del_first_tmp_msg
	str	x0, [x19, #24]
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_drand48
	ldr	x8, [x22]
	cmp	x0, x8
	b.ge	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_rwm_free
	mov	x0, x20
	bl	_free
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_udp_queue_message
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	ldr	w8, [x20]
	ldr	w9, [x24]
	add	w8, w9, w8
	str	w8, [x24]
	ldr	w8, [x25]
	add	w8, w8, w27
	str	w8, [x25]
	ldr	x8, [x19, #8]
	ldr	x9, [x26]
	add	x8, x8, x27
	cmp	x8, x9
	str	x8, [x19, #8]
	b.lt	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_UDP_WAIT,4,2                   ; @UDP_WAIT
	.comm	_udp_drop_probability,8,3       ; @udp_drop_probability
	.comm	_udp_packets_sent,4,2           ; @udp_packets_sent
	.comm	_udp_data_sent,4,2              ; @udp_data_sent
	.comm	_udp_data_body_sent,4,2         ; @udp_data_body_sent
	.comm	_STOP_WINDOW_SIZE,8,3           ; @STOP_WINDOW_SIZE
.subsections_via_symbols
