	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evbuffer_add_buffer            ## -- Begin function evbuffer_add_buffer
	.p2align	4, 0x90
_evbuffer_add_buffer:                   ## @evbuffer_add_buffer
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.7:
	movl	8(%rbx), %esi
	movq	(%rbx), %rdx
	movq	%r14, %rdi
	callq	_evbuffer_add
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_evbuffer_drain
	jmp	LBB0_9
LBB0_1:
	movq	(%rbx), %r15
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_SWAP
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_SWAP
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_SWAP
	movq	(%rbx), %rdx
	cmpq	%r15, %rdx
	je	LBB0_4
## %bb.2:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	12(%rbx), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*%rax
LBB0_4:
	testq	%r15, %r15
	je	LBB0_9
## %bb.5:
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movl	12(%r14), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	*%rax
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$32, %rsp
	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_buffer            ; -- Begin function evbuffer_add_buffer
	.p2align	2
_evbuffer_add_buffer:                   ; @evbuffer_add_buffer
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w1, [x20, #8]
	ldr	x2, [x20]
	mov	x0, x19
	bl	_evbuffer_add
	cbnz	w0, LBB0_10
; %bb.2:
	ldr	x1, [x20]
	mov	x0, x20
	bl	_evbuffer_drain
	b	LBB0_9
LBB0_3:
	ldr	x21, [x20]
	add	x0, sp, #8
	mov	x1, x19
	bl	_SWAP
	mov	x0, x19
	mov	x1, x20
	bl	_SWAP
	add	x1, sp, #8
	mov	x0, x20
	bl	_SWAP
	ldr	x2, [x20]
	cmp	x2, x21
	b.eq	LBB0_6
; %bb.4:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w3, [x20, #12]
	mov	x0, x20
	mov	x1, x21
	blr	x8
LBB0_6:
	cbz	x21, LBB0_9
; %bb.7:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w3, [x19, #12]
	mov	x0, x19
	mov	x1, #0
	mov	x2, x21
	blr	x8
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
