	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_evbuffer_add1
_test_evbuffer_add1:                    ## @test_evbuffer_add1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_evbuffer_new
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	$1, %edx
	callq	_evbuffer_add
	movq	%rbx, %rdi
	callq	_evbuffer_validate
	movq	%rbx, %rdi
	movl	$2048, %esi                     ## imm = 0x800
	callq	_evbuffer_expand
	movq	%rbx, %rdi
	callq	_evbuffer_validate
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_evbuffer_add
	movq	%rbx, %rdi
	callq	_evbuffer_validate
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_evbuffer_add_printf
	movq	%rbx, %rdi
	callq	_evbuffer_validate
	movq	%rbx, %rdi
	callq	_evbuffer_get_length
	xorl	%edi, %edi
	cmpl	$3, %eax
	sete	%dil
	callq	_tt_assert
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_evbuffer_pullup
	movq	%rax, %r14
	xorl	%edi, %edi
	cmpb	$49, (%rax)
	sete	%dil
	callq	_tt_assert
	xorl	%edi, %edi
	cmpb	$50, 1(%r14)
	sete	%dil
	callq	_tt_assert
	xorl	%edi, %edi
	cmpb	$51, 2(%r14)
	sete	%dil
	callq	_tt_assert
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_evbuffer_free                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1"

L_.str.1:                               ## @.str.1
	.asciz	"2"

L_.str.2:                               ## @.str.2
	.asciz	"3"

	.no_dead_strip	_test_evbuffer_add1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_evbuffer_add1
_test_evbuffer_add1:                    ; @test_evbuffer_add1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_evbuffer_new
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	bl	_evbuffer_add
	mov	x0, x19
	bl	_evbuffer_validate
	mov	x0, x19
	mov	w1, #2048
	bl	_evbuffer_expand
	mov	x0, x19
	bl	_evbuffer_validate
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_evbuffer_add
	mov	x0, x19
	bl	_evbuffer_validate
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_evbuffer_add_printf
	mov	x0, x19
	bl	_evbuffer_validate
	mov	x0, x19
	bl	_evbuffer_get_length
	cmp	w0, #3
	cset	w0, eq
	bl	_tt_assert
	mov	x0, x19
	mov	w1, #-1
	bl	_evbuffer_pullup
	mov	x20, x0
	ldrb	w8, [x0]
	cmp	w8, #49
	cset	w0, eq
	bl	_tt_assert
	ldrb	w8, [x20, #1]
	cmp	w8, #50
	cset	w0, eq
	bl	_tt_assert
	ldrb	w8, [x20, #2]
	cmp	w8, #51
	cset	w0, eq
	bl	_tt_assert
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_evbuffer_free
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1"

l_.str.1:                               ; @.str.1
	.asciz	"2"

l_.str.2:                               ; @.str.2
	.asciz	"3"

	.no_dead_strip	_test_evbuffer_add1
.subsections_via_symbols
