	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_enforce_retry
_test_enforce_retry:                    ## @test_enforce_retry
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	xorps	%xmm0, %xmm0
	movups	%xmm0, -112(%rbp)
	leaq	L_.str(%rip), %rax
	movq	%rax, -120(%rbp)
	leaq	L_.str.1(%rip), %rdi
	movl	$12, %esi
	callq	_ptls_iovec_init
	movl	%eax, -112(%rbp)
	movl	$1, -128(%rbp)
	movl	%r15d, -124(%rbp)
	leaq	L_.str.2(%rip), %rbx
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ptls_buffer_init
	leaq	-80(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ptls_buffer_init
	leaq	-96(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ptls_buffer_init
	movq	_ctx@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_ptls_new
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ptls_handshake
	movq	_PTLS_ERROR_IN_PROGRESS@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpl	(%r13), %eax
	sete	%dil
	callq	_ok
	xorl	%edi, %edi
	cmpq	$0, -64(%rbp)
	setne	%dil
	callq	_ok
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_ptls_new
	movq	%rax, %r12
	movq	-64(%rbp), %rax
	movq	-56(%rbp), %rdx
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rcx
	leaq	-128(%rbp), %r8
	movq	%r12, %rdi
	leaq	-80(%rbp), %rsi
	callq	_ptls_handshake
	movq	$0, -64(%rbp)
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	movq	_PTLS_ERROR_STATELESS_RETRY@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_ok
	movq	%r12, %rdi
	callq	_ptls_free
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_ptls_new
	movq	%rax, %r12
	jmp	LBB0_3
LBB0_2:
	xorl	%edi, %edi
	cmpl	(%r13), %eax
	sete	%dil
	callq	_ok
LBB0_3:
	movq	%r13, %rbx
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, -48(%rbp)
	leaq	-64(%rbp), %rsi
	leaq	-48(%rbp), %r13
	movq	%r14, %rdi
	movq	%rsi, %r15
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_ptls_handshake
	xorl	%edi, %edi
	cmpl	(%rbx), %eax
	sete	%dil
	callq	_ok
	movq	-80(%rbp), %rax
	xorl	%edi, %edi
	cmpq	-48(%rbp), %rax
	sete	%dil
	callq	_ok
	movq	$0, -80(%rbp)
	movq	-64(%rbp), %rax
	movq	-56(%rbp), %rdx
	movq	%rax, -48(%rbp)
	leaq	-80(%rbp), %rsi
	leaq	-128(%rbp), %r8
	movq	%r12, %rdi
	movq	%r13, %rcx
	callq	_ptls_handshake
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ok
	movq	-64(%rbp), %rax
	xorl	%edi, %edi
	cmpq	-48(%rbp), %rax
	sete	%dil
	callq	_ok
	movq	$0, -64(%rbp)
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, -48(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rbx
	movq	%r15, %rsi
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_ptls_handshake
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ok
	movq	-80(%rbp), %rax
	xorl	%edi, %edi
	cmpq	-48(%rbp), %rax
	sete	%dil
	callq	_ok
	movq	$0, -80(%rbp)
	leaq	L_.str.3(%rip), %r15
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	$11, %ecx
	callq	_ptls_send
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ok
	movq	-64(%rbp), %rax
	movq	-56(%rbp), %rdx
	movq	%rax, -48(%rbp)
	leaq	-96(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rcx
	callq	_ptls_receive
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ok
	movq	-64(%rbp), %rax
	xorl	%edi, %edi
	cmpq	-48(%rbp), %rax
	sete	%dil
	callq	_ok
	movq	$0, -64(%rbp)
	xorl	%edi, %edi
	cmpq	$11, -96(%rbp)
	sete	%dil
	callq	_ok
	movq	-88(%rbp), %rdi
	movq	%r15, %rsi
	movl	$11, %edx
	callq	_memcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ok
	movq	$0, -96(%rbp)
	movq	%r14, %rdi
	callq	_ptls_free
	movq	%r12, %rdi
	callq	_ptls_free
	leaq	-64(%rbp), %rdi
	callq	_ptls_buffer_dispose
	leaq	-80(%rbp), %rdi
	callq	_ptls_buffer_dispose
	movq	%rbx, %rdi
	callq	_ptls_buffer_dispose
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0123456789abcdef0123456789abcdef0123456789abcdef"

L_.str.1:                               ## @.str.1
	.asciz	"1.2.3.4:1234"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_ctx,4,2                        ## @ctx
	.comm	_PTLS_ERROR_IN_PROGRESS,4,2     ## @PTLS_ERROR_IN_PROGRESS
	.comm	_PTLS_ERROR_STATELESS_RETRY,4,2 ## @PTLS_ERROR_STATELESS_RETRY
L_.str.3:                               ## @.str.3
	.asciz	"hello world"

	.no_dead_strip	_test_enforce_retry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_enforce_retry
_test_enforce_retry:                    ; @test_enforce_retry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x21, x0
	stp	xzr, xzr, [sp, #80]
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #72]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #12
	bl	_ptls_iovec_init
	str	w0, [sp, #80]
	mov	w8, #1
	stp	w8, w21, [sp, #64]
Lloh4:
	adrp	x19, l_.str.2@PAGE
Lloh5:
	add	x19, x19, l_.str.2@PAGEOFF
	add	x0, sp, #48
	mov	x1, x19
	mov	w2, #0
	bl	_ptls_buffer_init
	add	x0, sp, #32
	mov	x1, x19
	mov	w2, #0
	bl	_ptls_buffer_init
	add	x0, sp, #16
	mov	x1, x19
	mov	w2, #0
	bl	_ptls_buffer_init
Lloh6:
	adrp	x23, _ctx@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ctx@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	w1, #0
	bl	_ptls_new
	mov	x19, x0
	add	x1, sp, #48
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_ptls_handshake
Lloh8:
	adrp	x22, _PTLS_ERROR_IN_PROGRESS@GOTPAGE
Lloh9:
	ldr	x22, [x22, _PTLS_ERROR_IN_PROGRESS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #48]
	cmp	x8, #0
	cset	w0, ne
	bl	_ok
	ldr	w0, [x23]
	mov	w1, #1
	bl	_ptls_new
	mov	x20, x0
	ldp	x8, x2, [sp, #48]
	str	x8, [sp, #8]
	add	x1, sp, #32
	add	x3, sp, #8
	add	x4, sp, #64
	bl	_ptls_handshake
	str	xzr, [sp, #48]
	cbz	w21, LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _PTLS_ERROR_STATELESS_RETRY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PTLS_ERROR_STATELESS_RETRY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
	bl	_ok
	mov	x0, x20
	bl	_ptls_free
	ldr	w0, [x23]
	mov	w1, #1
	bl	_ptls_new
	mov	x20, x0
	b	LBB0_3
LBB0_2:
	ldr	w8, [x22]
	cmp	w0, w8
	cset	w0, eq
	bl	_ok
LBB0_3:
	ldp	x8, x2, [sp, #32]
	str	x8, [sp, #8]
	add	x1, sp, #48
	add	x3, sp, #8
	mov	x0, x19
	mov	x4, #0
	bl	_ptls_handshake
	ldr	w8, [x22]
	cmp	w0, w8
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #32]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	cset	w0, eq
	bl	_ok
	str	xzr, [sp, #32]
	ldp	x8, x2, [sp, #48]
	str	x8, [sp, #8]
	add	x1, sp, #32
	add	x3, sp, #8
	add	x4, sp, #64
	mov	x0, x20
	bl	_ptls_handshake
	cmp	w0, #0
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #48]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	cset	w0, eq
	bl	_ok
	str	xzr, [sp, #48]
	ldp	x8, x2, [sp, #32]
	str	x8, [sp, #8]
	add	x1, sp, #48
	add	x3, sp, #8
	mov	x0, x19
	mov	x4, #0
	bl	_ptls_handshake
	cmp	w0, #0
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #32]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	cset	w0, eq
	bl	_ok
	str	xzr, [sp, #32]
Lloh13:
	adrp	x21, l_.str.3@PAGE
Lloh14:
	add	x21, x21, l_.str.3@PAGEOFF
	add	x1, sp, #48
	mov	x0, x19
	mov	x2, x21
	mov	w3, #11
	bl	_ptls_send
	cmp	w0, #0
	cset	w0, eq
	bl	_ok
	ldp	x8, x2, [sp, #48]
	str	x8, [sp, #8]
	add	x1, sp, #16
	add	x3, sp, #8
	mov	x0, x20
	bl	_ptls_receive
	cmp	w0, #0
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #48]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	cset	w0, eq
	bl	_ok
	str	xzr, [sp, #48]
	ldr	x8, [sp, #16]
	cmp	x8, #11
	cset	w0, eq
	bl	_ok
	ldr	x0, [sp, #24]
	mov	x1, x21
	mov	w2, #11
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_ok
	str	xzr, [sp, #16]
	mov	x0, x19
	bl	_ptls_free
	mov	x0, x20
	bl	_ptls_free
	add	x0, sp, #48
	bl	_ptls_buffer_dispose
	add	x0, sp, #32
	bl	_ptls_buffer_dispose
	add	x0, sp, #16
	bl	_ptls_buffer_dispose
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0123456789abcdef0123456789abcdef0123456789abcdef"

l_.str.1:                               ; @.str.1
	.asciz	"1.2.3.4:1234"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_ctx,4,2                        ; @ctx
	.comm	_PTLS_ERROR_IN_PROGRESS,4,2     ; @PTLS_ERROR_IN_PROGRESS
	.comm	_PTLS_ERROR_STATELESS_RETRY,4,2 ; @PTLS_ERROR_STATELESS_RETRY
l_.str.3:                               ; @.str.3
	.asciz	"hello world"

	.no_dead_strip	_test_enforce_retry
.subsections_via_symbols
