	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function client_setup_sni_before_state
_client_setup_sni_before_state:         ## @client_setup_sni_before_state
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -48(%rbp)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_TLS_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_SSL_new
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	movq	_host@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_SSL_set_tlsext_host_name
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BIO_s_mem
	movl	%eax, %edi
	callq	_BIO_new
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_BIO_s_mem
	movl	%eax, %edi
	callq	_BIO_new
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_SSL_set_bio
	movq	%r13, %rdi
	callq	_SSL_connect
	xorl	%r14d, %r14d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_le
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_get_sni_from_client_hello
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rdi
	movq	_host@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TEST_str_eq
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%r14b
	jmp	LBB0_9
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_5:
	movq	%rbx, %rdi
	callq	_BIO_free
	movq	%r12, %rdi
	callq	_BIO_free
LBB0_9:
	movq	-48(%rbp), %rdi
	callq	_OPENSSL_free
	movq	%r13, %rdi
	callq	_SSL_free
	movq	%r15, %rdi
	callq	_SSL_CTX_free
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_host,4,2                       ## @host
	.no_dead_strip	_client_setup_sni_before_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function client_setup_sni_before_state
_client_setup_sni_before_state:         ; @client_setup_sni_before_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	str	xzr, [sp, #8]
	bl	_TLS_method
	bl	_SSL_CTX_new
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_SSL_new
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_9
; %bb.2:
Lloh0:
	adrp	x23, _host@GOTPAGE
Lloh1:
	ldr	x23, [x23, _host@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_SSL_set_tlsext_host_name
	bl	_BIO_s_mem
	bl	_BIO_new
	mov	x22, x0
	bl	_BIO_s_mem
	bl	_BIO_new
	mov	x21, x0
	mov	x0, x22
	bl	_TEST_ptr
	cbz	w0, LBB0_8
; %bb.3:
	mov	x0, x21
	bl	_TEST_ptr
	cbz	w0, LBB0_8
; %bb.4:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_SSL_set_bio
	mov	x0, x20
	bl	_SSL_connect
	mov	w1, #0
	bl	_TEST_int_le
	cbz	w0, LBB0_9
; %bb.5:
	add	x1, sp, #8
	mov	x0, x21
	bl	_get_sni_from_client_hello
	bl	_TEST_true
	cbz	w0, LBB0_9
; %bb.6:
	ldr	x0, [sp, #8]
	ldr	w1, [x23]
	bl	_TEST_str_eq
	cmp	w0, #0
	cset	w21, ne
	b	LBB0_10
LBB0_7:
	mov	x20, #0
	b	LBB0_9
LBB0_8:
	mov	x0, x22
	bl	_BIO_free
	mov	x0, x21
	bl	_BIO_free
LBB0_9:
	mov	w21, #0
LBB0_10:
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
	mov	x0, x20
	bl	_SSL_free
	mov	x0, x19
	bl	_SSL_CTX_free
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_host,4,2                       ; @host
	.no_dead_strip	_client_setup_sni_before_state
.subsections_via_symbols
