	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_handshake
_test_handshake:                        ## @test_handshake
	.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
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_TESTCASE_NAME_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %ecx
	callq	_BIO_snprintf
	movq	_conf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_SSL_TEST_CTX_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	je	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	movq	_SSL_TEST_METHOD_DTLS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	xorl	%eax, %eax
	callq	_DTLS_server_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_SSL_CTX_set_max_proto_version
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_31
## %bb.3:
	movq	16(%rbx), %rax
	movq	_SSL_TEST_SERVERNAME_CB_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_32
## %bb.4:
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_33
LBB0_5:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_44
LBB0_6:
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
LBB0_7:
	movq	(%rbx), %rax
	movq	_SSL_TEST_METHOD_TLS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.8:
	xorl	%eax, %eax
	callq	_TLS_server_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_SSL_CTX_set_max_proto_version
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_40
## %bb.9:
	movq	16(%rbx), %rax
	movq	_SSL_TEST_SERVERNAME_CB_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_TLS_server_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_51
## %bb.11:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_SSL_CTX_set_max_proto_version
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_48
LBB0_12:
	xorl	%eax, %eax
	callq	_TLS_client_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	movq	%rax, %r12
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_SSL_CTX_set_max_proto_version
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_40
## %bb.13:
	movq	8(%rbx), %rax
	movq	_SSL_TEST_HANDSHAKE_RESUME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.14:
	xorl	%eax, %eax
	callq	_TLS_server_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_SSL_CTX_set_max_proto_version
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_40
## %bb.15:
	xorl	%eax, %eax
	callq	_TLS_client_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	movq	%rax, %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_SSL_CTX_set_max_proto_version
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_40
## %bb.16:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_39
## %bb.17:
	movq	%r13, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_39
LBB0_18:
	movq	%r14, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_39
## %bb.19:
	movq	%r12, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_39
## %bb.20:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	_conf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_CONF_modules_load
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_gt
	testl	%eax, %eax
	je	LBB0_48
## %bb.21:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_SSL_CTX_config
	testl	%eax, %eax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_50
## %bb.22:
	leaq	L_.str.2(%rip), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_SSL_CTX_config
	testl	%eax, %eax
	je	LBB0_50
## %bb.23:
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	testq	%r12, %r12
	je	LBB0_25
## %bb.24:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_SSL_CTX_config
	testl	%eax, %eax
	je	LBB0_54
LBB0_25:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	testq	%r13, %r13
	je	LBB0_27
## %bb.26:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_SSL_CTX_config
	testl	%eax, %eax
	je	LBB0_56
LBB0_27:
	movq	-104(%rbp), %r15                ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_29
## %bb.28:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_SSL_CTX_config
	testl	%eax, %eax
	je	LBB0_58
LBB0_29:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	%r15, %r8
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %r9
	callq	_do_handshake
	testq	%rax, %rax
	je	LBB0_54
## %bb.30:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_check_test
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_55
LBB0_31:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_44
LBB0_32:
	xorl	%eax, %eax
	callq	_DTLS_server_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_49
LBB0_33:
	xorl	%eax, %eax
	callq	_DTLS_client_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	movq	%rax, %r12
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_SSL_CTX_set_max_proto_version
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_46
## %bb.34:
	movq	8(%rbx), %rax
	movq	_SSL_TEST_HANDSHAKE_RESUME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_47
## %bb.35:
	xorl	%eax, %eax
	callq	_DTLS_server_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_SSL_CTX_set_max_proto_version
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_53
## %bb.36:
	xorl	%eax, %eax
	callq	_DTLS_client_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	movq	%rax, %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_SSL_CTX_set_max_proto_version
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_40
## %bb.37:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_39
## %bb.38:
	movq	%r13, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	jne	LBB0_7
LBB0_39:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_41
LBB0_40:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
LBB0_41:
	movq	%r12, %rbx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_42:
	movq	%r13, %r15
LBB0_43:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_44:
	xorl	%edi, %edi
	callq	_CONF_modules_unload
	movq	%r14, %rdi
	callq	_SSL_CTX_free
	movq	%r12, %rdi
	callq	_SSL_CTX_free
	movq	%rbx, %rdi
	callq	_SSL_CTX_free
	movq	%r13, %rdi
	callq	_SSL_CTX_free
	movq	%r15, %rdi
	callq	_SSL_CTX_free
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_SSL_TEST_CTX_free
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_HANDSHAKE_RESULT_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_59
## %bb.45:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_46:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_44
LBB0_47:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_7
LBB0_48:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_52
LBB0_49:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_44
LBB0_50:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_42
LBB0_51:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
LBB0_52:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_42
LBB0_53:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_43
LBB0_54:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
LBB0_55:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_57
LBB0_56:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %r14                 ## 8-byte Reload
LBB0_57:
	movq	-104(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_44
LBB0_58:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_44
LBB0_59:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TESTCASE_NAME_LENGTH,4,2   ## @MAX_TESTCASE_NAME_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test-%d"

	.comm	_conf,4,2                       ## @conf
	.comm	_SSL_TEST_METHOD_DTLS,8,3       ## @SSL_TEST_METHOD_DTLS
	.comm	_SSL_TEST_SERVERNAME_CB_NONE,8,3 ## @SSL_TEST_SERVERNAME_CB_NONE
	.comm	_SSL_TEST_HANDSHAKE_RESUME,8,3  ## @SSL_TEST_HANDSHAKE_RESUME
	.comm	_SSL_TEST_METHOD_TLS,8,3        ## @SSL_TEST_METHOD_TLS
L_.str.1:                               ## @.str.1
	.asciz	"server"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"resume-server"

L_.str.5:                               ## @.str.5
	.asciz	"resume-client"

	.comm	_OPENSSL_INIT_LOAD_CONFIG,4,2   ## @OPENSSL_INIT_LOAD_CONFIG
	.no_dead_strip	_test_handshake
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_handshake
_test_handshake:                        ; @test_handshake
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x3, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAX_TESTCASE_NAME_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_TESTCASE_NAME_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x9, x1
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x25, x8, x9
	mov	sp, x25
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x25
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_BIO_snprintf
Lloh10:
	adrp	x26, _conf@GOTPAGE
Lloh11:
	ldr	x26, [x26, _conf@GOTPAGEOFF]
	ldr	w0, [x26]
	mov	x1, x25
	bl	_SSL_TEST_CTX_create
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _SSL_TEST_METHOD_DTLS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SSL_TEST_METHOD_DTLS@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	bl	_DTLS_server_method
	bl	_SSL_CTX_new
	mov	x20, x0
	mov	w1, #0
	bl	_SSL_CTX_set_max_proto_version
	bl	_TEST_true
	cbz	w0, LBB0_31
; %bb.3:
	ldr	x8, [x19, #16]
Lloh15:
	adrp	x9, _SSL_TEST_SERVERNAME_CB_NONE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SSL_TEST_SERVERNAME_CB_NONE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.4:
	mov	x21, #0
	b	LBB0_33
LBB0_5:
	mov	x21, #0
	mov	x22, #0
	mov	x23, #0
	mov	x24, #0
	mov	x25, #0
	mov	x20, #0
	b	LBB0_43
LBB0_6:
	mov	x21, #0
	mov	x22, #0
	mov	x23, #0
	mov	x24, #0
	mov	x20, #0
LBB0_7:
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _SSL_TEST_METHOD_TLS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SSL_TEST_METHOD_TLS@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.8:
	bl	_TLS_server_method
	bl	_SSL_CTX_new
	mov	x20, x0
	mov	w1, #0
	bl	_SSL_CTX_set_max_proto_version
	bl	_TEST_true
	cbz	w0, LBB0_42
; %bb.9:
	ldr	x8, [x19, #16]
Lloh21:
	adrp	x9, _SSL_TEST_SERVERNAME_CB_NONE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SSL_TEST_SERVERNAME_CB_NONE@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.10:
	bl	_TLS_server_method
	bl	_SSL_CTX_new
	mov	x21, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_42
; %bb.11:
	mov	x0, x21
	mov	w1, #0
	bl	_SSL_CTX_set_max_proto_version
	bl	_TEST_true
	cbz	w0, LBB0_42
LBB0_12:
	bl	_TLS_client_method
	bl	_SSL_CTX_new
	mov	x22, x0
	mov	w1, #0
	bl	_SSL_CTX_set_max_proto_version
	bl	_TEST_true
	cbz	w0, LBB0_42
; %bb.13:
	ldr	x8, [x19, #8]
Lloh24:
	adrp	x9, _SSL_TEST_HANDSHAKE_RESUME@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SSL_TEST_HANDSHAKE_RESUME@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.14:
	bl	_TLS_server_method
	bl	_SSL_CTX_new
	mov	x23, x0
	mov	w1, #0
	bl	_SSL_CTX_set_max_proto_version
	bl	_TEST_true
	cbz	w0, LBB0_42
; %bb.15:
	bl	_TLS_client_method
	bl	_SSL_CTX_new
	mov	x24, x0
	mov	w1, #0
	bl	_SSL_CTX_set_max_proto_version
	bl	_TEST_true
	cbz	w0, LBB0_42
; %bb.16:
	mov	x0, x23
	bl	_TEST_ptr
	cbz	w0, LBB0_42
; %bb.17:
	mov	x0, x24
	bl	_TEST_ptr
	cbz	w0, LBB0_42
LBB0_18:
	mov	x0, x20
	bl	_TEST_ptr
	cbz	w0, LBB0_42
; %bb.19:
	mov	x0, x22
	bl	_TEST_ptr
	cbz	w0, LBB0_42
; %bb.20:
	ldr	w0, [x26]
	mov	x1, x25
	mov	w2, #0
	bl	_CONF_modules_load
	mov	w1, #0
	bl	_TEST_int_gt
	cbz	w0, LBB0_42
; %bb.21:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_SSL_CTX_config
	cbz	w0, LBB0_42
; %bb.22:
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_SSL_CTX_config
	cbz	w0, LBB0_42
; %bb.23:
	cbz	x21, LBB0_25
; %bb.24:
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_SSL_CTX_config
	cbz	w0, LBB0_42
LBB0_25:
	cbz	x23, LBB0_27
; %bb.26:
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_SSL_CTX_config
	cbz	w0, LBB0_42
LBB0_27:
	cbz	x24, LBB0_29
; %bb.28:
Lloh35:
	adrp	x1, l_.str.5@PAGE
Lloh36:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x24
	bl	_SSL_CTX_config
	cbz	w0, LBB0_42
LBB0_29:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	mov	x5, x19
	bl	_do_handshake
	mov	x25, x0
	cbz	x0, LBB0_43
; %bb.30:
	mov	x0, x25
	mov	x1, x19
	bl	_check_test
	mov	x26, x0
	b	LBB0_44
LBB0_31:
	mov	x21, #0
	b	LBB0_39
LBB0_32:
	bl	_DTLS_server_method
	bl	_SSL_CTX_new
	mov	x21, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_39
LBB0_33:
	bl	_DTLS_client_method
	bl	_SSL_CTX_new
	mov	x22, x0
	mov	w1, #0
	bl	_SSL_CTX_set_max_proto_version
	bl	_TEST_true
	cbz	w0, LBB0_40
; %bb.34:
	ldr	x8, [x19, #8]
Lloh37:
	adrp	x9, _SSL_TEST_HANDSHAKE_RESUME@GOTPAGE
Lloh38:
	ldr	x9, [x9, _SSL_TEST_HANDSHAKE_RESUME@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_46
; %bb.35:
	bl	_DTLS_server_method
	bl	_SSL_CTX_new
	mov	x23, x0
	mov	w1, #0
	bl	_SSL_CTX_set_max_proto_version
	bl	_TEST_true
	cbz	w0, LBB0_41
; %bb.36:
	bl	_DTLS_client_method
	bl	_SSL_CTX_new
	mov	x24, x0
	mov	w1, #0
	bl	_SSL_CTX_set_max_proto_version
	bl	_TEST_true
	cbz	w0, LBB0_42
; %bb.37:
	mov	x0, x23
	bl	_TEST_ptr
	cbz	w0, LBB0_42
; %bb.38:
	mov	x0, x24
	bl	_TEST_ptr
	cbnz	w0, LBB0_7
	b	LBB0_42
LBB0_39:
	mov	x22, #0
LBB0_40:
	mov	x23, #0
LBB0_41:
	mov	x24, #0
LBB0_42:
	mov	x25, #0
LBB0_43:
	mov	w26, #0
LBB0_44:
	mov	w0, #0
	bl	_CONF_modules_unload
	mov	x0, x20
	bl	_SSL_CTX_free
	mov	x0, x21
	bl	_SSL_CTX_free
	mov	x0, x22
	bl	_SSL_CTX_free
	mov	x0, x23
	bl	_SSL_CTX_free
	mov	x0, x24
	bl	_SSL_CTX_free
	mov	x0, x19
	bl	_SSL_TEST_CTX_free
	mov	x0, x25
	bl	_HANDSHAKE_RESULT_free
	ldur	x8, [x29, #-72]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_47
; %bb.45:
	mov	x0, x26
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_46:
	mov	x23, #0
	mov	x24, #0
	b	LBB0_7
LBB0_47:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TESTCASE_NAME_LENGTH,4,2   ; @MAX_TESTCASE_NAME_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test-%d"

	.comm	_conf,4,2                       ; @conf
	.comm	_SSL_TEST_METHOD_DTLS,8,3       ; @SSL_TEST_METHOD_DTLS
	.comm	_SSL_TEST_SERVERNAME_CB_NONE,8,3 ; @SSL_TEST_SERVERNAME_CB_NONE
	.comm	_SSL_TEST_HANDSHAKE_RESUME,8,3  ; @SSL_TEST_HANDSHAKE_RESUME
	.comm	_SSL_TEST_METHOD_TLS,8,3        ; @SSL_TEST_METHOD_TLS
l_.str.1:                               ; @.str.1
	.asciz	"server"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"resume-server"

l_.str.5:                               ; @.str.5
	.asciz	"resume-client"

	.comm	_OPENSSL_INIT_LOAD_CONFIG,4,2   ; @OPENSSL_INIT_LOAD_CONFIG
	.no_dead_strip	_test_handshake
.subsections_via_symbols
