	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_out_buf_add                    ## -- Begin function out_buf_add
	.p2align	4, 0x90
_out_buf_add:                           ## @out_buf_add
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setg	%dil
	callq	_assert
	movl	$32, %edi
	callq	_zmalloc
	movq	%rax, %rbx
	movq	_out_buf_target@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r15, 24(%rbx)
	movslq	(%r15), %rax
	leal	1(%rax), %ecx
	movl	%ecx, (%r15)
	movq	%rax, 8(%rbx)
	leaq	16(%rbx), %rdi
	movq	%r14, %rsi
	callq	_rwm_clone
	movq	_out_buf_next_last@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	$0, %ecx
	je	LBB0_2
## %bb.1:
	movq	_out_buf_next@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	movl	%ecx, (%rbx)
	movq	_out_buf_prev_last@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	movq	$0, (%rax)
	movl	12(%r15), %r12d
	xorl	%eax, %eax
	callq	_lrand48
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_tree_insert_udp_msg
	movl	%eax, 12(%r15)
	movq	8(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	callq	_vkprintf
	movl	(%r15), %esi
	leal	-2(%rsi), %eax
	cmpl	4(%r15), %eax
	jne	LBB0_5
## %bb.3:
	cmpl	$0, 8(%r15)
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_start_tx_timer
	movl	(%r15), %esi
LBB0_5:
	decl	%esi
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___out_buf_add                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_out_buf_target,8,3             ## @out_buf_target
	.comm	_out_buf_prev_last,8,3          ## @out_buf_prev_last
	.comm	_out_buf_prev,4,2               ## @out_buf_prev
	.comm	_out_buf_next_last,8,3          ## @out_buf_next_last
	.comm	_out_buf_next,4,2               ## @out_buf_next
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"S->sent: added number %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_out_buf_add                    ; -- Begin function out_buf_add
	.p2align	2
_out_buf_add:                           ; @out_buf_add
	.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
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
	mov	w0, #32
	bl	_zmalloc
	mov	x21, x0
Lloh0:
	adrp	x8, _out_buf_target@GOTPAGE
Lloh1:
	ldr	x8, [x8, _out_buf_target@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	str	x20, [x0, #24]
	ldrsw	x8, [x20]
	add	w9, w8, #1
	str	w9, [x20]
	str	x8, [x0, #8]
	add	x0, x0, #16
	mov	x1, x19
	bl	_rwm_clone
Lloh3:
	adrp	x8, _out_buf_next_last@GOTPAGE
Lloh4:
	ldr	x8, [x8, _out_buf_next_last@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh5:
	adrp	x10, _out_buf_next@GOTPAGE
Lloh6:
	ldr	x10, [x10, _out_buf_next@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	str	w9, [x21]
Lloh8:
	adrp	x9, _out_buf_prev_last@GOTPAGE
Lloh9:
	ldr	x9, [x9, _out_buf_prev_last@GOTPAGEOFF]
Lloh10:
	str	xzr, [x9]
	str	xzr, [x8]
	ldr	w22, [x20, #12]
	bl	_lrand48
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_tree_insert_udp_msg
	str	w0, [x20, #12]
	ldr	x2, [x21, #8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	bl	_vkprintf
	ldp	w8, w9, [x20]
	sub	w10, w8, #2
	cmp	w10, w9
	b.ne	LBB0_3
; %bb.1:
	ldr	w9, [x20, #8]
	cbnz	w9, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_start_tx_timer
	ldr	w8, [x20]
LBB0_3:
	sub	w1, w8, #1
	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	___out_buf_add
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_out_buf_target,8,3             ; @out_buf_target
	.comm	_out_buf_prev_last,8,3          ; @out_buf_prev_last
	.comm	_out_buf_prev,4,2               ; @out_buf_prev
	.comm	_out_buf_next_last,8,3          ; @out_buf_next_last
	.comm	_out_buf_next,4,2               ; @out_buf_next
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"S->sent: added number %d\n"

.subsections_via_symbols
