	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evbuffer_peek                  ## -- Begin function evbuffer_peek
	.p2align	4, 0x90
_evbuffer_peek:                         ## @evbuffer_peek
	.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	%r8d, %r13d
	movq	%rcx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.1:
	movq	%rdx, %r12
	cmpq	$0, 16(%rdx)
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_EVBUFFER_LOCK
	movq	8(%r12), %rdx
	movq	16(%r12), %rcx
	movq	8(%rcx), %rax
	subq	%rdx, %rax
	testl	%r13d, %r13d
	jle	LBB0_9
## %bb.4:
	addq	24(%rcx), %rdx
	addq	16(%rcx), %rdx
	movq	%rdx, 8(%rbx)
	movq	%rbx, %rdi
	movq	%rax, (%rbx)
	movq	(%rcx), %rcx
	movl	$1, %ebx
	jmp	LBB0_12
LBB0_5:
	movq	%r14, %rdi
	callq	_EVBUFFER_LOCK
	movq	8(%r14), %rcx
	xorl	%eax, %eax
	testq	%r15, %r15
	jns	LBB0_6
## %bb.7:
	testl	%r13d, %r13d
	jne	LBB0_6
## %bb.8:
	movq	%rbx, %rdi
	movq	(%r14), %r15
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_6:
	movq	%rbx, %rdi
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_9:
	movq	%rbx, %rdi
	movq	(%rcx), %rcx
	movl	$1, %ebx
	testq	%r15, %r15
	jns	LBB0_12
## %bb.10:
	testl	%r13d, %r13d
	jne	LBB0_12
## %bb.11:
	movq	(%r14), %r15
	subq	(%r12), %r15
LBB0_12:
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.13:
	movl	%ebx, %ebx
	movslq	%r13d, %rdx
	movq	%rbx, %rsi
	shlq	$4, %rsi
	addq	%rdi, %rsi
	addq	$8, %rsi
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	16(%rcx), %rdi
	addq	24(%rcx), %rdi
	movq	%rdi, (%rsi)
	movq	8(%rcx), %rdi
	movq	%rdi, -8(%rsi)
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	addq	%rdi, %rax
	movq	(%rcx), %rcx
	addq	$16, %rsi
	testq	%rcx, %rcx
	je	LBB0_21
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	testq	%r15, %r15
	js	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpq	%r15, %rax
	jge	LBB0_21
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	cmpq	%rdx, %rbx
	jl	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	testq	%r15, %r15
	js	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	8(%rcx), %rdi
	jmp	LBB0_20
LBB0_21:
	movq	%r14, %rdi
	callq	_EVBUFFER_UNLOCK
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_peek                  ; -- Begin function evbuffer_peek
	.p2align	2
_evbuffer_peek:                         ; @evbuffer_peek
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x4
	mov	x23, x3
	mov	x20, x1
	mov	x19, x0
	cbz	x2, LBB0_4
; %bb.1:
	mov	x24, x2
	ldr	x8, [x2, #16]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_EVBUFFER_LOCK
	ldp	x10, x9, [x24, #8]
	ldr	x8, [x9, #8]
	sub	x8, x8, x10
	cmp	w22, #1
	b.lt	LBB0_8
; %bb.3:
	ldp	x12, x11, [x9, #16]
	add	x10, x11, x10
	add	x10, x10, x12
	stp	x8, x10, [x23]
	ldr	x9, [x9]
	b	LBB0_11
LBB0_4:
	mov	x0, x19
	bl	_EVBUFFER_LOCK
	mov	w21, #0
	mov	x8, #0
	ldr	x9, [x19, #8]
	tbz	x20, #63, LBB0_12
; %bb.5:
	cbnz	w22, LBB0_12
; %bb.6:
	mov	x8, #0
	mov	w21, #0
	ldr	x20, [x19]
	b	LBB0_12
LBB0_7:
	mov	w21, #0
	b	LBB0_22
LBB0_8:
	ldr	x9, [x9]
	mov	w21, #1
	tbz	x20, #63, LBB0_12
; %bb.9:
	cbnz	w22, LBB0_12
; %bb.10:
	ldr	x10, [x19]
	ldr	x11, [x24]
	sub	x20, x10, x11
LBB0_11:
	mov	w21, #1
LBB0_12:
	cbz	x9, LBB0_21
; %bb.13:
	add	x11, x23, w21, uxtw #4
	mov	w21, w21
	sxtw	x10, w22
	add	x11, x11, #8
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldp	x14, x13, [x9, #16]
	ldr	x12, [x9, #8]
	add	x13, x14, x13
	stp	x12, x13, [x11, #-8]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x21, x21, #1
	add	x8, x12, x8
	ldr	x9, [x9]
	add	x11, x11, #16
	cbz	x9, LBB0_21
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	tbnz	x20, #63, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	x8, x20
	b.ge	LBB0_21
LBB0_18:                                ;   in Loop: Header=BB0_16 Depth=1
	cmp	x21, x10
	b.lt	LBB0_14
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	tbnz	x20, #63, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x12, [x9, #8]
	b	LBB0_15
LBB0_21:
	mov	x0, x19
	bl	_EVBUFFER_UNLOCK
LBB0_22:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
