	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function test_evbuffer_find
LCPI0_0:
	.space	16,97
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_test_evbuffer_find:                    ## @test_evbuffer_find
	.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	%rbx
	subq	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorl	%eax, %eax
	callq	_evbuffer_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_tt_assert
	leaq	L_.str(%rip), %r14
	movq	%r14, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_evbuffer_add
	movq	%rbx, %rdi
	callq	_evbuffer_validate
	movq	%r14, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_evbuffer_drain
	movq	%rbx, %rdi
	callq	_evbuffer_validate
	leaq	L_.str.1(%rip), %r14
	movq	%r14, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_evbuffer_add
	movq	%rbx, %rdi
	callq	_evbuffer_validate
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_evbuffer_find
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_tt_want
	movq	%r14, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_evbuffer_drain
	movq	%rbx, %rdi
	callq	_evbuffer_validate
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97]
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -288(%rbp)
	movaps	%xmm0, -272(%rbp)
	movaps	%xmm0, -256(%rbp)
	movaps	%xmm0, -240(%rbp)
	movaps	%xmm0, -224(%rbp)
	movaps	%xmm0, -208(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -176(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	movb	$120, -33(%rbp)
	leaq	-288(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$256, %edx                      ## imm = 0x100
	callq	_evbuffer_add
	movq	%rbx, %rdi
	callq	_evbuffer_validate
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_evbuffer_find
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_tt_want
	leaq	L_.str.4(%rip), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$2, %edx
	callq	_evbuffer_find
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_tt_assert
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$2, %edx
	callq	_strncmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_tt_want
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_evbuffer_free
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1234567890\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"1234567890\r"

L_.str.2:                               ## @.str.2
	.asciz	"\r\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"ax"

	.comm	_EVBUFFER_INITIAL_LENGTH,4,2    ## @EVBUFFER_INITIAL_LENGTH
	.no_dead_strip	_test_evbuffer_find
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_evbuffer_find
_test_evbuffer_find:                    ; @test_evbuffer_find
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_evbuffer_new
	mov	x19, x0
	bl	_tt_assert
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_evbuffer_add
	mov	x0, x19
	bl	_evbuffer_validate
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	mov	x0, x19
	bl	_evbuffer_drain
	mov	x0, x19
	bl	_evbuffer_validate
Lloh5:
	adrp	x20, l_.str.1@PAGE
Lloh6:
	add	x20, x20, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_evbuffer_add
	mov	x0, x19
	bl	_evbuffer_validate
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #2
	bl	_evbuffer_find
	cmp	x0, #0
	cset	w0, eq
	bl	_tt_want
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	mov	x0, x19
	bl	_evbuffer_drain
	mov	x0, x19
	bl	_evbuffer_validate
	movi.16b	v0, #97
	stp	q0, q0, [sp]
	stp	q0, q0, [sp, #32]
	stp	q0, q0, [sp, #64]
	stp	q0, q0, [sp, #96]
	stp	q0, q0, [sp, #128]
	stp	q0, q0, [sp, #160]
	stp	q0, q0, [sp, #192]
	str	q0, [sp, #224]
	stur	q0, [sp, #239]
	mov	w8, #120
	strb	w8, [sp, #255]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #256
	bl	_evbuffer_add
	mov	x0, x19
	bl	_evbuffer_validate
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w2, #2
	bl	_evbuffer_find
	cmp	x0, #0
	cset	w0, eq
	bl	_tt_want
Lloh11:
	adrp	x20, l_.str.4@PAGE
Lloh12:
	add	x20, x20, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	w2, #2
	bl	_evbuffer_find
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_tt_assert
	mov	x0, x21
	mov	x1, x20
	mov	w2, #2
	bl	_strncmp
	cmp	x0, #0
	cset	w0, eq
	bl	_tt_want
	cbz	x19, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_evbuffer_free
LBB0_2:
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1234567890\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"1234567890\r"

l_.str.2:                               ; @.str.2
	.asciz	"\r\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"ax"

	.comm	_EVBUFFER_INITIAL_LENGTH,4,2    ; @EVBUFFER_INITIAL_LENGTH
	.no_dead_strip	_test_evbuffer_find
.subsections_via_symbols
