	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_no_ems
_test_no_ems:                           ## @test_no_ems
	.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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_TLS_server_method
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_TLS_client_method
	movq	_TLS1_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_TLS1_2_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_cert@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	movq	_privkey@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	leaq	-48(%rbp), %r8
	leaq	-56(%rbp), %r9
	movl	%r15d, %edi
	movl	%eax, %esi
	pushq	%rbx
	pushq	%r10
	callq	_create_ssl_ctx_pair
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rdi
	movq	_SSL_OP_NO_EXTENDED_MASTER_SECRET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSL_CTX_set_options
	movq	-48(%rbp), %rdi
	movq	-56(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_create_ssl_objects
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	-32(%rbp), %rdi
	movq	-40(%rbp), %rsi
	movq	_SSL_ERROR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_create_ssl_connection
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	-32(%rbp), %rdi
	callq	_SSL_get_extms_support
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_str.8(%rip), %rdi
	jmp	LBB0_10
LBB0_1:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_10
LBB0_3:
	leaq	L_str.5(%rip), %rdi
	jmp	LBB0_10
LBB0_5:
	leaq	L_str.6(%rip), %rdi
	jmp	LBB0_10
LBB0_8:
	movq	-40(%rbp), %rdi
	callq	_SSL_get_extms_support
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	leaq	L_str.7(%rip), %rdi
LBB0_10:
	callq	_puts
LBB0_11:
	movq	-32(%rbp), %rdi
	callq	_SSL_free
	movq	-40(%rbp), %rdi
	callq	_SSL_free
	movq	-48(%rbp), %rdi
	callq	_SSL_CTX_free
	movq	-56(%rbp), %rdi
	callq	_SSL_CTX_free
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	$1, %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS1_VERSION,4,2               ## @TLS1_VERSION
	.comm	_TLS1_2_VERSION,4,2             ## @TLS1_2_VERSION
	.comm	_cert,4,2                       ## @cert
	.comm	_privkey,4,2                    ## @privkey
	.comm	_SSL_OP_NO_EXTENDED_MASTER_SECRET,4,2 ## @SSL_OP_NO_EXTENDED_MASTER_SECRET
	.comm	_SSL_ERROR_NONE,4,2             ## @SSL_ERROR_NONE
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"Unable to create SSL_CTX pair"

L_str.5:                                ## @str.5
	.asciz	"Unable to create SSL objects"

L_str.6:                                ## @str.6
	.asciz	"Creating SSL connection failed"

L_str.7:                                ## @str.7
	.asciz	"Client reports Extended Master Secret support"

L_str.8:                                ## @str.8
	.asciz	"Server reports Extended Master Secret support"

	.no_dead_strip	_test_no_ems
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_no_ems
_test_no_ems:                           ; @test_no_ems
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	stp	xzr, xzr, [sp, #16]
	stp	xzr, xzr, [sp]
	bl	_TLS_server_method
	mov	x19, x0
	bl	_TLS_client_method
	mov	x1, x0
Lloh0:
	adrp	x8, _TLS1_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLS1_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _TLS1_2_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TLS1_2_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _cert@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cert@GOTPAGEOFF]
Lloh8:
	ldr	w6, [x8]
Lloh9:
	adrp	x8, _privkey@GOTPAGE
Lloh10:
	ldr	x8, [x8, _privkey@GOTPAGEOFF]
Lloh11:
	ldr	w7, [x8]
	add	x4, sp, #16
	add	x5, sp, #24
	mov	x0, x19
	bl	_create_ssl_ctx_pair
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x0, [sp, #16]
Lloh12:
	adrp	x8, _SSL_OP_NO_EXTENDED_MASTER_SECRET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSL_OP_NO_EXTENDED_MASTER_SECRET@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_SSL_CTX_set_options
	ldp	x0, x1, [sp, #16]
	mov	x2, sp
	add	x3, sp, #8
	mov	x4, #0
	mov	x5, #0
	bl	_create_ssl_objects
	cbz	w0, LBB0_6
; %bb.2:
	ldp	x0, x1, [sp]
Lloh15:
	adrp	x8, _SSL_ERROR_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSL_ERROR_NONE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_create_ssl_connection
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x0, [sp]
	bl	_SSL_get_extms_support
	cbz	x0, LBB0_8
; %bb.4:
Lloh18:
	adrp	x0, l_str.8@PAGE
Lloh19:
	add	x0, x0, l_str.8@PAGEOFF
	b	LBB0_10
LBB0_5:
Lloh20:
	adrp	x0, l_str@PAGE
Lloh21:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_10
LBB0_6:
Lloh22:
	adrp	x0, l_str.5@PAGE
Lloh23:
	add	x0, x0, l_str.5@PAGEOFF
	b	LBB0_10
LBB0_7:
Lloh24:
	adrp	x0, l_str.6@PAGE
Lloh25:
	add	x0, x0, l_str.6@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldr	x0, [sp, #8]
	bl	_SSL_get_extms_support
	cbz	x0, LBB0_12
; %bb.9:
Lloh26:
	adrp	x0, l_str.7@PAGE
Lloh27:
	add	x0, x0, l_str.7@PAGEOFF
LBB0_10:
	bl	_puts
	mov	w19, #0
LBB0_11:
	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, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_12:
	mov	w19, #1
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS1_VERSION,4,2               ; @TLS1_VERSION
	.comm	_TLS1_2_VERSION,4,2             ; @TLS1_2_VERSION
	.comm	_cert,4,2                       ; @cert
	.comm	_privkey,4,2                    ; @privkey
	.comm	_SSL_OP_NO_EXTENDED_MASTER_SECRET,4,2 ; @SSL_OP_NO_EXTENDED_MASTER_SECRET
	.comm	_SSL_ERROR_NONE,4,2             ; @SSL_ERROR_NONE
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"Unable to create SSL_CTX pair"

l_str.5:                                ; @str.5
	.asciz	"Unable to create SSL objects"

l_str.6:                                ; @str.6
	.asciz	"Creating SSL connection failed"

l_str.7:                                ; @str.7
	.asciz	"Client reports Extended Master Secret support"

l_str.8:                                ; @str.8
	.asciz	"Server reports Extended Master Secret support"

	.no_dead_strip	_test_no_ems
.subsections_via_symbols
