	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_tls13
_test_tls13:                            ## @test_tls13
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -72(%rbp)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_TLS_server_method
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_TLS_client_method
	movq	_ciphers@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movslq	%ebx, %rdx
	leaq	(%rdx,%rdx,2), %r13
	cmpq	$0, (%rcx,%r13,8)
	movq	_cert2@GOTPCREL(%rip), %rcx
	cmoveq	_cert1@GOTPCREL(%rip), %rcx
	movq	_TLS1_VERSION@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	(%rcx), %r10d
	movq	_privkey2@GOTPCREL(%rip), %rcx
	cmoveq	_privkey1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	-56(%rbp), %r8
	leaq	-64(%rbp), %r9
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	pushq	%rbx
	pushq	%r10
	callq	_create_ssl_ctx_pair
	addq	$16, %rsp
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movq	-64(%rbp), %rdi
	movq	(%r12), %rax
	movl	16(%rax,%r13,8), %esi
	callq	_SSL_CTX_set_cipher_list
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	movq	-56(%rbp), %rdi
	movq	(%r12), %rax
	movl	16(%rax,%r13,8), %esi
	callq	_SSL_CTX_set_cipher_list
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movq	-56(%rbp), %rdi
	movq	-64(%rbp), %rsi
	xorl	%r14d, %r14d
	leaq	-72(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_create_ssl_objects
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movq	(%r12), %rax
	movq	8(%rax,%r13,8), %rbx
	movq	-72(%rbp), %rdi
	movq	-48(%rbp), %rsi
	movq	_SSL_ERROR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_create_ssl_connection
	movl	%eax, %edi
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.6:
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movq	-48(%rbp), %rdi
	callq	_SSL_version
	movq	(%r12), %rcx
	movq	8(%rcx,%r13,8), %rsi
	movl	%eax, %edi
	callq	_TEST_int_eq
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_10
LBB0_5:
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_10
LBB0_9:
	movl	$1, %r14d
LBB0_10:
	movq	-72(%rbp), %rdi
	callq	_SSL_free
	movq	-48(%rbp), %rdi
	callq	_SSL_free
	movq	-56(%rbp), %rdi
	callq	_SSL_CTX_free
	movq	-64(%rbp), %rdi
	callq	_SSL_CTX_free
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS1_VERSION,4,2               ## @TLS1_VERSION
	.comm	_ciphers,8,3                    ## @ciphers
	.comm	_cert1,4,2                      ## @cert1
	.comm	_cert2,4,2                      ## @cert2
	.comm	_privkey1,4,2                   ## @privkey1
	.comm	_privkey2,4,2                   ## @privkey2
	.comm	_SSL_ERROR_NONE,4,2             ## @SSL_ERROR_NONE
	.no_dead_strip	_test_tls13
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_tls13
_test_tls13:                            ; @test_tls13
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
	stp	xzr, xzr, [sp]
	bl	_TLS_server_method
	mov	x20, x0
	bl	_TLS_client_method
	mov	x1, x0
Lloh0:
	adrp	x8, _TLS1_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLS1_VERSION@GOTPAGEOFF]
Lloh2:
	adrp	x21, _ciphers@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ciphers@GOTPAGEOFF]
	ldr	x9, [x21]
	mov	w10, #24
	smull	x10, w19, w10
	ldr	x9, [x9, x10]
Lloh4:
	adrp	x10, _cert1@GOTPAGE
Lloh5:
	ldr	x10, [x10, _cert1@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _cert2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _cert2@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w6, [x8]
Lloh9:
	adrp	x8, _privkey1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _privkey1@GOTPAGEOFF]
Lloh11:
	adrp	x9, _privkey2@GOTPAGE
Lloh12:
	ldr	x9, [x9, _privkey2@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w7, [x8]
	add	x4, sp, #16
	add	x5, sp, #24
	mov	x0, x20
	mov	w3, #0
	bl	_create_ssl_ctx_pair
	bl	_TEST_true
	cbz	w0, LBB0_7
; %bb.1:
	sxtw	x19, w19
	ldr	x0, [sp, #24]
	ldr	x8, [x21]
	mov	w9, #24
	madd	x8, x19, x9, x8
	ldr	w1, [x8, #16]
	bl	_SSL_CTX_set_cipher_list
	bl	_TEST_true
	cbz	w0, LBB0_7
; %bb.2:
	ldr	x0, [sp, #16]
	ldr	x8, [x21]
	mov	w9, #24
	madd	x8, x19, x9, x8
	ldr	w1, [x8, #16]
	bl	_SSL_CTX_set_cipher_list
	bl	_TEST_true
	cbz	w0, LBB0_7
; %bb.3:
	ldp	x0, x1, [sp, #16]
	mov	x2, sp
	add	x3, sp, #8
	mov	x4, #0
	mov	x5, #0
	bl	_create_ssl_objects
	bl	_TEST_true
	cbz	w0, LBB0_7
; %bb.4:
	ldr	x8, [x21]
	mov	w9, #24
	madd	x8, x19, x9, x8
	ldr	x20, [x8, #8]
	ldp	x0, x1, [sp]
Lloh13:
	adrp	x8, _SSL_ERROR_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SSL_ERROR_NONE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_create_ssl_connection
	cbz	x20, LBB0_9
; %bb.5:
	bl	_TEST_true
	cbz	w0, LBB0_7
; %bb.6:
	ldr	x0, [sp, #8]
	bl	_SSL_version
	ldr	x8, [x21]
	mov	w9, #24
	madd	x8, x19, x9, x8
	ldr	x1, [x8, #8]
	bl	_TEST_int_eq
	cbnz	w0, LBB0_10
LBB0_7:
	mov	w19, #0
LBB0_8:
	ldr	x0, [sp]
	bl	_SSL_free
	ldr	x0, [sp, #8]
	bl	_SSL_free
	ldr	x0, [sp, #16]
	bl	_SSL_CTX_free
	ldr	x0, [sp, #24]
	bl	_SSL_CTX_free
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_9:
	bl	_TEST_false
	cbz	w0, LBB0_7
LBB0_10:
	mov	w19, #1
	b	LBB0_8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS1_VERSION,4,2               ; @TLS1_VERSION
	.comm	_ciphers,8,3                    ; @ciphers
	.comm	_cert1,4,2                      ; @cert1
	.comm	_cert2,4,2                      ; @cert2
	.comm	_privkey1,4,2                   ; @privkey1
	.comm	_privkey2,4,2                   ; @privkey2
	.comm	_SSL_ERROR_NONE,4,2             ; @SSL_ERROR_NONE
	.no_dead_strip	_test_tls13
.subsections_via_symbols
