	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evbuffer_ptr_set               ## -- Begin function evbuffer_ptr_set
	.p2align	4, 0x90
_evbuffer_ptr_set:                      ## @evbuffer_ptr_set
	.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	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_EVBUFFER_LOCK
	cmpl	$129, %r12d
	je	LBB0_3
## %bb.1:
	cmpl	$128, %r12d
	jne	LBB0_5
## %bb.2:
	movq	(%r14), %rbx
	movq	%r13, (%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_3:
	movq	(%r15), %rax
	movq	_EV_SIZE_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	subq	%r13, %rcx
	movl	$-1, %r12d
	cmpq	%rax, %rcx
	jb	LBB0_14
## %bb.4:
	movq	8(%r15), %r12
	movq	16(%r15), %rbx
	addq	%r13, %rax
	movq	%rax, (%r15)
	jmp	LBB0_6
LBB0_5:
	xorl	%ebx, %ebx
	movq	%r13, %r12
LBB0_6:
	movq	_EV_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%r13, %rax
	xorl	%edi, %edi
	cmpq	%r12, %rax
	setae	%dil
	callq	_EVUTIL_ASSERT
	testq	%rbx, %rbx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rax
	addq	%r12, %rax
	movq	%rax, %r13
	subq	(%rbx), %r13
	jb	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rbx
	movl	$0, %r12d
	testq	%rbx, %rbx
	jne	LBB0_7
LBB0_9:
	testq	%r13, %r13
	je	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	callq	_PTR_NOT_FOUND
	movl	$-1, %r12d
	jmp	LBB0_14
LBB0_11:
	movq	%rbx, 16(%r15)
	movq	%rax, 8(%r15)
	jmp	LBB0_13
LBB0_12:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15)
LBB0_13:
	xorl	%r12d, %r12d
LBB0_14:
	movq	%r14, %rdi
	callq	_EVBUFFER_UNLOCK
	movl	%r12d, %eax
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evbuffer_ptr_set               ; -- Begin function evbuffer_ptr_set
	.p2align	2
_evbuffer_ptr_set:                      ; @evbuffer_ptr_set
	.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, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_EVBUFFER_LOCK
Lloh0:
	adrp	x8, _EV_SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_SIZE_MAX@GOTPAGEOFF]
	cmp	w22, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w22, #128
	b.ne	LBB0_5
; %bb.2:
	mov	x23, #0
	ldr	x22, [x19]
	str	x21, [x20]
	b	LBB0_6
LBB0_3:
	ldr	x9, [x20]
	ldr	x10, [x8]
	sub	x10, x10, x21
	cmp	x10, x9
	b.lo	LBB0_11
; %bb.4:
	add	x9, x9, x21
	str	x9, [x20]
	ldp	x23, x22, [x20, #8]
	b	LBB0_6
LBB0_5:
	mov	x22, #0
	mov	x23, x21
LBB0_6:
	ldr	x8, [x8]
	sub	x8, x8, x21
	cmp	x8, x23
	cset	w0, hs
	bl	_EVUTIL_ASSERT
	cbz	x22, LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	add	x8, x21, x23
	subs	x21, x8, x9
	b.lo	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, #0
	ldr	x22, [x22, #8]
	cbnz	x22, LBB0_7
LBB0_9:
	cbz	x21, LBB0_13
; %bb.10:
	mov	x0, x20
	bl	_PTR_NOT_FOUND
LBB0_11:
	mov	w21, #-1
	b	LBB0_14
LBB0_12:
	mov	w21, #0
	stp	x8, x22, [x20, #8]
	b	LBB0_14
LBB0_13:
	stp	xzr, xzr, [x20, #8]
LBB0_14:
	mov	x0, x19
	bl	_EVBUFFER_UNLOCK
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_SIZE_MAX,8,3                ; @EV_SIZE_MAX
.subsections_via_symbols
