	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_evbuffer_remove_buffer_with_empty
_test_evbuffer_remove_buffer_with_empty: ## @test_evbuffer_remove_buffer_with_empty
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_evbuffer_new
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_evbuffer_new
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_evbuffer_validate
	movq	%rbx, %rdi
	callq	_evbuffer_validate
	movq	_no_cleanup@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	-34(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$2, %edx
	xorl	%r8d, %r8d
	callq	_evbuffer_add_reference
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$2, %edx
	xorl	%r8d, %r8d
	callq	_evbuffer_add_reference
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_evbuffer_add
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_evbuffer_add_reference
	movq	%r14, %rdi
	callq	_evbuffer_validate
	movq	%rbx, %rdi
	callq	_evbuffer_validate
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$3, %edx
	callq	_evbuffer_remove_buffer
	movq	%r14, %rdi
	callq	_evbuffer_validate
	movq	%rbx, %rdi
	callq	_evbuffer_validate
	movq	%r14, %rdi
	callq	_evbuffer_free
	movq	%rbx, %rdi
	callq	_evbuffer_free
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_no_cleanup,4,2                 ## @no_cleanup
	.no_dead_strip	_test_evbuffer_remove_buffer_with_empty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_evbuffer_remove_buffer_with_empty
_test_evbuffer_remove_buffer_with_empty: ; @test_evbuffer_remove_buffer_with_empty
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	bl	_evbuffer_new
	mov	x19, x0
	bl	_evbuffer_new
	mov	x20, x0
	mov	x0, x19
	bl	_evbuffer_validate
	mov	x0, x20
	bl	_evbuffer_validate
Lloh0:
	adrp	x21, _no_cleanup@GOTPAGE
Lloh1:
	ldr	x21, [x21, _no_cleanup@GOTPAGEOFF]
	ldr	w3, [x21]
	add	x1, sp, #14
	mov	x0, x19
	mov	w2, #2
	mov	x4, #0
	bl	_evbuffer_add_reference
	ldr	w3, [x21]
	add	x1, sp, #14
	mov	x0, x19
	mov	w2, #2
	mov	x4, #0
	bl	_evbuffer_add_reference
	add	x1, sp, #14
	mov	x0, x20
	mov	w2, #2
	bl	_evbuffer_add
	ldr	w3, [x21]
	add	x1, sp, #14
	mov	x0, x20
	mov	w2, #0
	mov	x4, #0
	bl	_evbuffer_add_reference
	mov	x0, x19
	bl	_evbuffer_validate
	mov	x0, x20
	bl	_evbuffer_validate
	mov	x0, x19
	mov	x1, x20
	mov	w2, #3
	bl	_evbuffer_remove_buffer
	mov	x0, x19
	bl	_evbuffer_validate
	mov	x0, x20
	bl	_evbuffer_validate
	mov	x0, x19
	bl	_evbuffer_free
	mov	x0, x20
	bl	_evbuffer_free
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_no_cleanup,4,2                 ; @no_cleanup
	.no_dead_strip	_test_evbuffer_remove_buffer_with_empty
.subsections_via_symbols
