	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evbuffer_add                   ## -- Begin function evbuffer_add
	.p2align	4, 0x90
_evbuffer_add:                          ## @evbuffer_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	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movslq	40(%rdi), %rax
	movq	(%rdi), %r14
	addq	%rdx, %rax
	addq	%r14, %rax
	movq	%r14, %rdi
	cmpq	%rax, 8(%rbx)
	jae	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_evbuffer_expand
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	movq	(%rbx), %rdi
LBB0_4:
	addq	16(%rbx), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	movq	(%rbx), %rdx
	addq	%r15, %rdx
	movq	%rdx, (%rbx)
	xorl	%r12d, %r12d
	testq	%r15, %r15
	je	LBB0_7
## %bb.5:
	movq	32(%rbx), %r8
	testq	%r8, %r8
	je	LBB0_7
## %bb.6:
	movl	24(%rbx), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*%r8
	jmp	LBB0_7
LBB0_2:
	movl	$-1, %r12d
LBB0_7:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evbuffer_add                   ; -- Begin function evbuffer_add
	.p2align	2
_evbuffer_add:                          ; @evbuffer_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	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldrsw	x8, [x0, #40]
	ldp	x20, x9, [x0]
	add	x8, x8, x2
	add	x10, x8, x20
	mov	x8, x20
	cmp	x9, x10
	b.hs	LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	bl	_evbuffer_expand
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.2:
	ldr	x8, [x19]
LBB0_3:
	ldr	x9, [x19, #16]
	add	x0, x8, x9
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x19]
	add	x2, x8, x21
	str	x2, [x19]
	cbz	x21, LBB0_6
; %bb.4:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w3, [x19, #24]
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_6:
	mov	w0, #0
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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
