	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_target_ack                 ## -- Begin function udp_target_ack
	.p2align	4, 0x90
_udp_target_ack:                        ## @udp_target_ack
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, -20(%rbp)
	cmpl	%esi, (%rdi)
	jle	LBB0_9
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r14
	cmpl	%esi, 4(%rdi)
	jge	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	_stop_tx_timer
	movl	%ebx, 4(%r14)
	xorl	%edi, %edi
	cmpl	%ebx, (%r14)
	setg	%dil
	callq	_assert
	movl	(%r14), %eax
	decl	%eax
	cmpl	%ebx, %eax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_start_tx_timer
LBB0_4:
	movq	$0, 32(%r14)
LBB0_5:
	movq	_precise_now@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movl	20(%r14), %edi
	leaq	-20(%rbp), %rsi
	callq	_tree_lookup_value_udp_msg
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	(%rax), %rbx
	movl	20(%r14), %edi
	movq	%rbx, %rsi
	callq	_tree_delete_udp_msg
	movl	%eax, 20(%r14)
	movl	-20(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	callq	_vkprintf
	movq	___S@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movq	%rbx, %rdi
	callq	_udp_msg_confirm_free
	movq	8(%r14), %rax
	movq	_START_WINDOW_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_9
## %bb.7:
	movq	_UDP_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r14)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_udp_target_restart_send
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_precise_now,4,2                ## @precise_now
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"S->sent: delete message %d\n"

	.comm	___S,8,3                        ## @__S
	.comm	_START_WINDOW_SIZE,8,3          ## @START_WINDOW_SIZE
	.comm	_UDP_WAIT,4,2                   ## @UDP_WAIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_target_ack                 ; -- Begin function udp_target_ack
	.p2align	2
_udp_target_ack:                        ; @udp_target_ack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	w1, [sp, #12]
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #4]
	cmp	w8, w1
	b.ge	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_stop_tx_timer
	str	w20, [x19, #4]
	ldr	w8, [x19]
	cmp	w8, w20
	cset	w0, gt
	bl	_assert
	ldr	w8, [x19]
	sub	w8, w8, #1
	cmp	w8, w20
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_start_tx_timer
LBB0_4:
	str	xzr, [x19, #32]
LBB0_5:
Lloh0:
	adrp	x8, _precise_now@GOTPAGE
Lloh1:
	ldr	x8, [x8, _precise_now@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	w0, [x19, #20]
	add	x1, sp, #12
	bl	_tree_lookup_value_udp_msg
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x20, [x0]
	ldr	w0, [x19, #20]
	mov	x1, x20
	bl	_tree_delete_udp_msg
	str	w0, [x19, #20]
	ldr	w2, [sp, #12]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	bl	_vkprintf
Lloh5:
	adrp	x8, ___S@GOTPAGE
Lloh6:
	ldr	x8, [x8, ___S@GOTPAGEOFF]
Lloh7:
	str	x19, [x8]
	mov	x0, x20
	bl	_udp_msg_confirm_free
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _START_WINDOW_SIZE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _START_WINDOW_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_9
; %bb.7:
	ldr	w8, [x19, #16]
Lloh11:
	adrp	x9, _UDP_WAIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _UDP_WAIT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_udp_target_restart_send
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_precise_now,4,2                ; @precise_now
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"S->sent: delete message %d\n"

	.comm	___S,8,3                        ; @__S
	.comm	_START_WINDOW_SIZE,8,3          ; @START_WINDOW_SIZE
	.comm	_UDP_WAIT,4,2                   ; @UDP_WAIT
.subsections_via_symbols
