	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PRESERVE_PINNED
_PRESERVE_PINNED:                       ## @PRESERVE_PINNED
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_ASSERT_EVBUFFER_LOCKED
	movq	%r12, %rdi
	callq	_HAS_PINNED_R
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r12), %rbx
	movq	(%rbx), %rdi
	callq	_CHAIN_PINNED_R
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	(%rbx), %rbx
	addq	$24, %rbx
LBB0_4:
	movq	(%rbx), %rdi
	callq	_CHAIN_PINNED_R
	movl	%eax, %edi
	callq	_EVUTIL_ASSERT
	movq	(%rbx), %r13
	movq	%r13, (%r15)
	movq	8(%r12), %rax
	movq	%rax, (%r14)
	cmpq	$0, (%r13)
	movq	(%r12), %rax
	je	LBB0_8
## %bb.5:
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_EVUTIL_ASSERT
	movq	(%r13), %rdi
	callq	_evbuffer_chain_new
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	16(%rax), %rdi
	movq	(%r13), %rdx
	movq	8(%r13), %rsi
	addq	16(%r13), %rsi
	callq	_memcpy
	movq	(%r13), %rax
	movq	%rax, (%r14)
	movq	(%r12), %rax
	movq	%r14, (%rax)
	movq	%r14, 8(%r12)
	movq	(%r13), %rax
	addq	%rax, 8(%r13)
	movq	$0, (%r13)
	jmp	LBB0_9
LBB0_1:
	movq	$0, (%r14)
	movq	$0, (%r15)
	jmp	LBB0_9
LBB0_8:
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	$0, (%rbx)
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$-1, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_PRESERVE_PINNED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PRESERVE_PINNED
_PRESERVE_PINNED:                       ; @PRESERVE_PINNED
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_ASSERT_EVBUFFER_LOCKED
	mov	x0, x19
	bl	_HAS_PINNED_R
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x23, [x19]
	ldr	x0, [x23]
	bl	_CHAIN_PINNED_R
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x23]
	add	x23, x8, #24
LBB0_3:
	ldr	x0, [x23]
	bl	_CHAIN_PINNED_R
	bl	_EVUTIL_ASSERT
	ldr	x22, [x23]
	str	x22, [x21]
	ldr	x8, [x19, #8]
	str	x8, [x20]
	ldr	x9, [x22]
	ldr	x8, [x19]
	cbz	x9, LBB0_7
; %bb.4:
	cmp	x23, x8
	cset	w0, eq
	bl	_EVUTIL_ASSERT
	ldr	x0, [x22]
	bl	_evbuffer_chain_new
	cbz	x0, LBB0_8
; %bb.5:
	mov	x20, x0
	ldr	x0, [x0, #16]
	ldp	x9, x8, [x22, #8]
	ldr	x2, [x22]
	add	x1, x9, x8
	bl	_memcpy
	mov	w0, #0
	ldp	x8, x9, [x22]
	str	x8, [x20]
	ldr	x8, [x19]
	str	x20, [x8]
	str	x20, [x19, #8]
	ldr	x8, [x22]
	add	x8, x9, x8
	stp	xzr, x8, [x22]
	b	LBB0_9
LBB0_6:
	str	xzr, [x20]
	str	xzr, [x21]
	b	LBB0_9
LBB0_7:
	mov	w0, #0
	ldr	x8, [x8]
	str	x8, [x19, #8]
	str	xzr, [x23]
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	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
	.no_dead_strip	_PRESERVE_PINNED
.subsections_via_symbols
