	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stream_buf_added
_stream_buf_added:                      ## @stream_buf_added
	.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
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_D_STREAM_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dmsg
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.1:
	addl	%ebx, 24(%r12)
LBB0_2:
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	js	LBB0_3
## %bb.7:
	je	LBB0_8
LBB0_11:
	movl	24(%r12), %edx
	cmpl	%ecx, %edx
	jl	LBB0_10
## %bb.12:
	leaq	24(%r12), %r15
	leaq	28(%r12), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_buf_init
	movl	%eax, %edi
	callq	_ASSERT
	movl	(%r12), %edx
	cmpl	%edx, 24(%r12)
	jle	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_buf_copy_excess
	movl	%eax, %edi
	callq	_ASSERT
LBB0_14:
	movl	(%r13), %r12d
	movq	%r15, %rdi
	callq	_BLEN
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_BLEN
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dmsg
	movl	$1, %r14d
	jmp	LBB0_15
LBB0_3:
	cmpl	$4, 24(%r12)
	jl	LBB0_9
## %bb.4:
	leaq	24(%r12), %rdi
	leaq	-44(%rbp), %rsi
	movl	$4, %edx
	callq	_buf_read
	movl	%eax, %edi
	callq	_ASSERT
	movl	-44(%rbp), %edi
	callq	_ntohps
	movl	%eax, %ecx
	movl	%eax, (%r12)
	movl	20(%r12), %eax
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.5:
	cmpl	%eax, %ecx
	jle	LBB0_11
LBB0_6:
	movq	_M_WARN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%ecx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_msg
	movq	%r12, %rdi
	callq	_stream_buf_reset
	movl	$1, 16(%r12)
	jmp	LBB0_15
LBB0_8:
	xorl	%ecx, %ecx
LBB0_9:
	movl	24(%r12), %edx
LBB0_10:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dmsg
	movq	%r12, %rdi
	callq	_stream_buf_set_next
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_STREAM_DEBUG,4,2             ## @D_STREAM_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STREAM: ADD length_added=%d"

	.comm	_M_WARN,4,2                     ## @M_WARN
L_.str.1:                               ## @.str.1
	.asciz	"WARNING: Bad encapsulated packet length from peer (%d), which must be > 0 and <= %d -- please ensure that --tun-mtu or --link-mtu is equal on both peers -- this condition could also indicate a possible active attack on the TCP link -- [Attempting restart...]"

L_.str.2:                               ## @.str.2
	.asciz	"STREAM: ADD returned TRUE, buf_len=%d, residual_len=%d"

L_.str.3:                               ## @.str.3
	.asciz	"STREAM: ADD returned FALSE (have=%d need=%d)"

	.comm	_D_STREAM_ERRORS,4,2            ## @D_STREAM_ERRORS
	.comm	_PS_DISABLED,8,3                ## @PS_DISABLED
	.comm	_PS_ENABLED,8,3                 ## @PS_ENABLED
	.comm	_PS_FOREIGN,8,3                 ## @PS_FOREIGN
	.no_dead_strip	_stream_buf_added
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stream_buf_added
_stream_buf_added:                      ; @stream_buf_added
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x22, _D_STREAM_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _D_STREAM_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dmsg
	cmp	w20, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x19, #24]
	add	w8, w8, w20
	str	w8, [x19, #24]
LBB0_2:
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_4
; %bb.3:
	cbnz	w8, LBB0_8
	b	LBB0_12
LBB0_4:
	mov	x0, x19
	ldr	w9, [x0, #24]!
	cmp	w9, #4
	b.lt	LBB0_12
; %bb.5:
	add	x1, sp, #28
	mov	w2, #4
	bl	_buf_read
	bl	_ASSERT
	ldr	w0, [sp, #28]
	bl	_ntohps
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x19]
	ldr	w9, [x19, #20]
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.6:
	cmp	w0, w9
	b.gt	LBB0_15
; %bb.7:
	mov	x8, x0
LBB0_8:
	mov	x20, x19
	ldr	w2, [x20, #24]!
	cmp	w2, w8
	b.lt	LBB0_13
; %bb.9:
	add	x21, x19, #28
	mov	x0, x21
	mov	w1, #0
	bl	_buf_init
	bl	_ASSERT
	ldr	w8, [x19, #24]
	ldr	w2, [x19]
	cmp	w8, w2
	b.le	LBB0_11
; %bb.10:
	mov	x0, x21
	mov	x1, x20
	bl	_buf_copy_excess
	bl	_ASSERT
LBB0_11:
	ldr	w19, [x22]
	mov	x0, x20
	bl	_BLEN
	mov	x20, x0
	mov	x0, x21
	bl	_BLEN
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dmsg
	mov	w0, #1
	b	LBB0_14
LBB0_12:
	ldr	w2, [x19, #24]
LBB0_13:
	ldr	w0, [x22]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dmsg
	mov	x0, x19
	bl	_stream_buf_set_next
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
Lloh8:
	adrp	x8, _M_WARN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_WARN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	x0, x9, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_msg
	mov	x0, x19
	bl	_stream_buf_reset
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #16]
	b	LBB0_14
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_D_STREAM_DEBUG,4,2             ; @D_STREAM_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STREAM: ADD length_added=%d"

	.comm	_M_WARN,4,2                     ; @M_WARN
l_.str.1:                               ; @.str.1
	.asciz	"WARNING: Bad encapsulated packet length from peer (%d), which must be > 0 and <= %d -- please ensure that --tun-mtu or --link-mtu is equal on both peers -- this condition could also indicate a possible active attack on the TCP link -- [Attempting restart...]"

l_.str.2:                               ; @.str.2
	.asciz	"STREAM: ADD returned TRUE, buf_len=%d, residual_len=%d"

l_.str.3:                               ; @.str.3
	.asciz	"STREAM: ADD returned FALSE (have=%d need=%d)"

	.comm	_D_STREAM_ERRORS,4,2            ; @D_STREAM_ERRORS
	.comm	_PS_DISABLED,8,3                ; @PS_DISABLED
	.comm	_PS_ENABLED,8,3                 ; @PS_ENABLED
	.comm	_PS_FOREIGN,8,3                 ; @PS_FOREIGN
	.no_dead_strip	_stream_buf_added
.subsections_via_symbols
