	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evbuffer_drain                 ## -- Begin function evbuffer_drain
	.p2align	4, 0x90
_evbuffer_drain:                        ## @evbuffer_drain
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rax
	movq	(%rdi), %rsi
	movq	%rsi, %rdx
	subq	%rax, %rdx
	jbe	LBB0_1
## %bb.2:
	addq	%rax, 8(%rdi)
	addq	%rax, 40(%rdi)
	movq	%rdx, (%rdi)
	cmpq	%rsi, %rdx
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	$0, (%rdi)
	movq	16(%rdi), %rax
	movq	%rax, 8(%rdi)
	movq	$0, 40(%rdi)
	xorl	%edx, %edx
	cmpq	%rsi, %rdx
	je	LBB0_5
LBB0_4:
	movq	32(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	24(%rdi), %ecx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_5:
	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_drain                 ; -- Begin function evbuffer_drain
	.p2align	2
_evbuffer_drain:                        ; @evbuffer_drain
	.cfi_startproc
; %bb.0:
	mov	x8, x1
	ldr	x1, [x0]
	subs	x2, x1, x8
	b.ls	LBB0_2
; %bb.1:
	ldr	x9, [x0, #8]
	add	x9, x9, x8
	ldr	x10, [x0, #40]
	add	x8, x10, x8
	str	x8, [x0, #40]
	stp	x2, x9, [x0]
	cmp	x2, x1
	b.ne	LBB0_3
	b	LBB0_5
LBB0_2:
	mov	x2, #0
	ldr	x8, [x0, #16]
	stp	xzr, x8, [x0]
	str	xzr, [x0, #40]
	cmp	x2, x1
	b.eq	LBB0_5
LBB0_3:
	ldr	x4, [x0, #32]
	cbz	x4, LBB0_5
; %bb.4:
	ldr	w3, [x0, #24]
	br	x4
LBB0_5:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
