	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_memcache_addreplace
_test_memcache_addreplace:              ## @test_memcache_addreplace
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_p@GOTPCREL(%rip), %r14
	movq	(%r14), %r15
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_apr_memcache_create
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rbx
	xorl	%edx, %edx
	cmpq	(%rbx), %rax
	sete	%dl
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_ABTS_ASSERT
	movq	_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-96(%rbp), %rax
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	pushq	%rax
	pushq	$60
	callq	_apr_memcache_server_create
	addq	$16, %rsp
	xorl	%edx, %edx
	cmpq	(%rbx), %rax
	sete	%dl
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_ABTS_ASSERT
	movq	-48(%rbp), %rdi
	movq	-96(%rbp), %rsi
	callq	_apr_memcache_add_server
	xorl	%edx, %edx
	cmpq	(%rbx), %rax
	sete	%dl
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_ABTS_ASSERT
	movq	(%r14), %rdi
	callq	_apr_hash_make
	movq	%rax, %r13
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_create_test_hash
	movq	(%r14), %rdi
	movq	%r13, %rsi
	callq	_apr_hash_first
	testq	%rax, %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	leaq	-80(%rbp), %rsi
	xorl	%edx, %edx
	leaq	-56(%rbp), %rcx
	callq	_apr_hash_this
	movq	%rbx, %r15
	movq	-80(%rbp), %r13
	movq	-48(%rbp), %r14
	movq	%r12, %rbx
	movq	-56(%rbp), %r12
	movq	%r12, %rdi
	callq	_strlen
	leal	-1(%rax), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%rbx, %r12
	xorl	%r8d, %r8d
	movl	$27, %r9d
	callq	_apr_memcache_replace
	xorl	%edx, %edx
	cmpq	(%r15), %rax
	setne	%dl
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_ABTS_ASSERT
	movq	-48(%rbp), %r14
	movq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	movl	$27, %r9d
	callq	_apr_memcache_add
	xorl	%edx, %edx
	cmpq	(%r15), %rax
	sete	%dl
	movq	%r12, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_ABTS_ASSERT
	movq	-48(%rbp), %rdi
	movq	%r13, %rsi
	leaq	L_.str.5(%rip), %rbx
	movq	%rbx, %rdx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	movl	$27, %r9d
	callq	_apr_memcache_replace
	xorl	%edx, %edx
	cmpq	(%r15), %rax
	sete	%dl
	movq	%r12, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_ABTS_ASSERT
	movq	-48(%rbp), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	leaq	-88(%rbp), %rcx
	leaq	-100(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_apr_memcache_getp
	xorl	%edx, %edx
	cmpq	(%r15), %rax
	sete	%dl
	movq	%r12, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_ABTS_ASSERT
	movq	-88(%rbp), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movl	$3, %ecx
	callq	_ABTS_STR_NEQUAL
	movq	-48(%rbp), %r14
	movq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	movl	$27, %r9d
	callq	_apr_memcache_add
	xorl	%edx, %edx
	cmpq	(%r15), %rax
	setne	%dl
	movq	%r12, %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_ABTS_ASSERT
	movq	-48(%rbp), %rdi
	movq	%r13, %rsi
	movq	%r15, %rbx
	xorl	%edx, %edx
	callq	_apr_memcache_delete
	xorl	%edx, %edx
	cmpq	(%r15), %rax
	sete	%dl
	movq	%r12, %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_ABTS_ASSERT
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_apr_hash_next
	testq	%rax, %rax
	jne	LBB0_1
LBB0_3:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_p,8,3                          ## @p
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memcache create failed"

	.comm	_APR_SUCCESS,8,3                ## @APR_SUCCESS
	.comm	_HOST,4,2                       ## @HOST
	.comm	_PORT,4,2                       ## @PORT
L_.str.1:                               ## @.str.1
	.asciz	"server create failed"

L_.str.2:                               ## @.str.2
	.asciz	"server add failed"

L_.str.3:                               ## @.str.3
	.asciz	"replace should have failed"

L_.str.4:                               ## @.str.4
	.asciz	"add failed"

L_.str.5:                               ## @.str.5
	.asciz	"new"

L_.str.6:                               ## @.str.6
	.asciz	"replace failed"

L_.str.7:                               ## @.str.7
	.asciz	"get failed"

L_.str.8:                               ## @.str.8
	.asciz	"add should have failed"

L_.str.9:                               ## @.str.9
	.asciz	"delete failed"

	.no_dead_strip	_test_memcache_addreplace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_memcache_addreplace
_test_memcache_addreplace:              ; @test_memcache_addreplace
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x22, _p@GOTPAGE
Lloh1:
	ldr	x22, [x22, _p@GOTPAGEOFF]
	ldr	x20, [x22]
	add	x3, sp, #40
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_apr_memcache_create
Lloh2:
	adrp	x26, _APR_SUCCESS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _APR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	cset	w2, eq
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ABTS_ASSERT
Lloh6:
	adrp	x8, _HOST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HOST@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _PORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PORT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x7, sp, #32
	mov	x0, x20
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #60
	bl	_apr_memcache_server_create
	ldr	x8, [x26]
	cmp	x0, x8
	cset	w2, eq
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ABTS_ASSERT
	ldp	x1, x0, [sp, #32]
	bl	_apr_memcache_add_server
	ldr	x8, [x26]
	cmp	x0, x8
	cset	w2, eq
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ABTS_ASSERT
	ldr	x0, [x22]
	bl	_apr_hash_make
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_create_test_hash
	ldr	x0, [x22]
	mov	x1, x21
	bl	_apr_hash_first
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh16:
	adrp	x24, l_.str.5@PAGE
Lloh17:
	add	x24, x24, l_.str.5@PAGEOFF
Lloh18:
	adrp	x27, l_.str.8@PAGE
Lloh19:
	add	x27, x27, l_.str.8@PAGEOFF
Lloh20:
	adrp	x28, l_.str.9@PAGE
Lloh21:
	add	x28, x28, l_.str.9@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x3, sp
	mov	x0, x21
	mov	x2, #0
	bl	_apr_hash_this
	ldp	x25, x22, [sp]
	ldr	x23, [sp, #40]
	mov	x0, x25
	bl	_strlen
	sub	w3, w0, #1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	mov	w4, #0
	mov	w5, #27
	bl	_apr_memcache_replace
	ldr	x8, [x26]
	cmp	x0, x8
	cset	w2, ne
	mov	x0, x19
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_ABTS_ASSERT
	ldr	x23, [sp, #40]
	ldr	x25, [sp]
	mov	x0, x25
	bl	_strlen
	mov	x3, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	mov	w4, #0
	mov	w5, #27
	bl	_apr_memcache_add
	ldr	x8, [x26]
	cmp	x0, x8
	cset	w2, eq
	mov	x0, x19
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_ABTS_ASSERT
	ldr	x0, [sp, #40]
	mov	x1, x22
	mov	x2, x24
	mov	w3, #3
	mov	w4, #0
	mov	w5, #27
	bl	_apr_memcache_replace
	ldr	x8, [x26]
	cmp	x0, x8
	cset	w2, eq
	mov	x0, x19
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_ABTS_ASSERT
	ldr	x0, [sp, #40]
	add	x3, sp, #24
	add	x4, sp, #20
	mov	x1, x20
	mov	x2, x22
	mov	x5, #0
	bl	_apr_memcache_getp
	ldr	x8, [x26]
	cmp	x0, x8
	cset	w2, eq
	mov	x0, x19
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_ABTS_ASSERT
	ldr	x1, [sp, #24]
	mov	x0, x19
	mov	x2, x24
	mov	w3, #3
	bl	_ABTS_STR_NEQUAL
	ldr	x23, [sp, #40]
	ldr	x25, [sp]
	mov	x0, x25
	bl	_strlen
	mov	x3, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	mov	w4, #0
	mov	w5, #27
	bl	_apr_memcache_add
	ldr	x8, [x26]
	cmp	x0, x8
	cset	w2, ne
	mov	x0, x19
	mov	x1, x27
	bl	_ABTS_ASSERT
	ldr	x0, [sp, #40]
	mov	x1, x22
	mov	w2, #0
	bl	_apr_memcache_delete
	ldr	x8, [x26]
	cmp	x0, x8
	cset	w2, eq
	mov	x0, x19
	mov	x1, x28
	bl	_ABTS_ASSERT
	mov	x0, x21
	bl	_apr_hash_next
	mov	x21, x0
	cbnz	x0, LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_p,8,3                          ; @p
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memcache create failed"

	.comm	_APR_SUCCESS,8,3                ; @APR_SUCCESS
	.comm	_HOST,4,2                       ; @HOST
	.comm	_PORT,4,2                       ; @PORT
l_.str.1:                               ; @.str.1
	.asciz	"server create failed"

l_.str.2:                               ; @.str.2
	.asciz	"server add failed"

l_.str.3:                               ; @.str.3
	.asciz	"replace should have failed"

l_.str.4:                               ; @.str.4
	.asciz	"add failed"

l_.str.5:                               ; @.str.5
	.asciz	"new"

l_.str.6:                               ; @.str.6
	.asciz	"replace failed"

l_.str.7:                               ; @.str.7
	.asciz	"get failed"

l_.str.8:                               ; @.str.8
	.asciz	"add should have failed"

l_.str.9:                               ; @.str.9
	.asciz	"delete failed"

	.no_dead_strip	_test_memcache_addreplace
.subsections_via_symbols
