	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evbuffer_ptr_memcmp
_evbuffer_ptr_memcmp:                   ## @evbuffer_ptr_memcmp
	.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
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_ASSERT_EVBUFFER_LOCKED
	movq	(%r15), %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	js	LBB0_9
## %bb.1:
	movq	_EV_SIZE_MAX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	subq	%r12, %rdx
	cmpq	%rcx, %rdx
	jb	LBB0_9
## %bb.2:
	addq	%r12, %rcx
	cmpq	(%rbx), %rcx
	ja	LBB0_9
## %bb.3:
	xorl	%eax, %eax
	testq	%r12, %r12
	je	LBB0_9
## %bb.4:
	movq	16(%r15), %r13
	testq	%r13, %r13
	je	LBB0_9
## %bb.5:
	movq	8(%r15), %rax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rax,%r12), %rcx
	movq	(%r13), %rdx
	movq	%rdx, %rbx
	subq	%rax, %rbx
	cmpq	%rdx, %rcx
	cmovbeq	%r12, %rbx
	addq	24(%r13), %rax
	addq	16(%r13), %rax
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcmp
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	subq	%rbx, %r12
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	%rbx, %r14
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	LBB0_6
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_SIZE_MAX,8,3                ## @EV_SIZE_MAX
	.no_dead_strip	_evbuffer_ptr_memcmp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evbuffer_ptr_memcmp
_evbuffer_ptr_memcmp:                   ; @evbuffer_ptr_memcmp
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_ASSERT_EVBUFFER_LOCKED
	ldr	x8, [x21]
	tbnz	x8, #63, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _EV_SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EV_SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sub	x9, x9, x19
	cmp	x9, x8
	b.lo	LBB0_3
; %bb.2:
	ldr	x9, [x22]
	add	x8, x8, x19
	cmp	x8, x9
	b.ls	LBB0_5
LBB0_3:
	mov	w0, #-1
LBB0_4:
	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
LBB0_5:
	mov	w0, #0
	cbz	x19, LBB0_4
; %bb.6:
	ldr	x22, [x21, #16]
	cbz	x22, LBB0_4
; %bb.7:
	ldr	x8, [x21, #8]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	sub	x10, x9, x8
	add	x11, x8, x19
	cmp	x11, x9
	csel	x21, x10, x19, hi
	ldp	x10, x9, [x22, #16]
	add	x8, x9, x8
	add	x0, x8, x10
	mov	x1, x20
	mov	x2, x21
	bl	_memcmp
	cbnz	w0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, #0
	add	x20, x20, x21
	sub	x19, x19, x21
	ldr	x22, [x22, #8]
	cmp	x19, #0
	ccmp	x22, #0, #4, ne
	b.ne	LBB0_8
; %bb.10:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_SIZE_MAX,8,3                ; @EV_SIZE_MAX
	.no_dead_strip	_evbuffer_ptr_memcmp
.subsections_via_symbols
