	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_received                   ## -- Begin function add_received
	.p2align	4, 0x90
_add_received:                          ## @add_received
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %eax
	incl	%eax
	cmpl	%esi, %eax
	jne	LBB0_6
## %bb.1:
	movl	%r14d, (%r15)
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_9
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	_tree_get_min_int
	movl	(%rax), %ebx
	xorl	%edi, %edi
	cmpl	(%r15), %ebx
	setg	%dil
	callq	_assert
	movl	(%r15), %eax
	incl	%eax
	movq	8(%r15), %rdi
	cmpl	%eax, %ebx
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %esi
	callq	_tree_delete_int
	movq	%rax, 8(%r15)
	incl	(%r15)
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_5
LBB0_6:
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_start_rx_timer
	movq	8(%r15), %rbx
LBB0_8:
	xorl	%eax, %eax
	callq	_lrand48
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_tree_insert_int
	movq	%rax, 8(%r15)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testq	%rdi, %rdi
	jne	LBB0_9
LBB0_5:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stop_rx_timer                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_received                   ; -- Begin function add_received
	.p2align	2
_add_received:                          ; @add_received
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	add	w8, w8, #1
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.1:
	str	w20, [x19]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_tree_get_min_int
	ldr	w20, [x0]
	ldr	w8, [x19]
	cmp	w20, w8
	cset	w0, gt
	bl	_assert
	ldr	w8, [x19]
	add	w8, w8, #1
	ldr	x0, [x19, #8]
	cmp	w20, w8
	b.ne	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, x20
	bl	_tree_delete_int
	str	x0, [x19, #8]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	cbnz	x0, LBB0_2
	b	LBB0_9
LBB0_4:
	ldr	x21, [x19, #8]
	cbnz	x21, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_start_rx_timer
	ldr	x21, [x19, #8]
LBB0_6:
	bl	_lrand48
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_tree_insert_int
	str	x0, [x19, #8]
LBB0_7:
	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
LBB0_8:
	cbnz	x0, LBB0_7
LBB0_9:
	mov	x0, x19
	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	_stop_rx_timer
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
