	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_servername_cb
_ssl_servername_cb:                     ## @ssl_servername_cb
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rdi, %r13
	movq	_TLSEXT_NAMETYPE_host_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSL_get_servername
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.2:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_8
## %bb.3:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	incq	%r15
	leaq	L_.str.2(%rip), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_BIO_printf
	movzbl	(%r15), %eax
	incq	%r15
	testb	%al, %al
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %ebx
	movq	8(%r12), %r13
	movl	%ebx, %edi
	callq	_isascii
	movq	%r14, %rsi
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	callq	_isprint
	movq	%r14, %rsi
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_8:
	movq	8(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.10:
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	movq	%r12, %r15
	jmp	LBB0_18
LBB0_12:
	cmpq	$0, 16(%r12)
	jne	LBB0_15
LBB0_14:
	movq	_SSL_TLSEXT_ERR_NOACK@GOTPCREL(%rip), %r15
	jmp	LBB0_18
LBB0_15:
	movq	_SSL_TLSEXT_ERR_OK@GOTPCREL(%rip), %r15
	jmp	LBB0_18
LBB0_16:
	movq	_ctx2@GOTPCREL(%rip), %r14
	movq	_SSL_TLSEXT_ERR_OK@GOTPCREL(%rip), %r15
	cmpq	$0, (%r14)
	je	LBB0_18
## %bb.17:
	movq	8(%r12), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_SSL_set_SSL_CTX
LBB0_18:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLSEXT_NAMETYPE_host_name,4,2  ## @TLSEXT_NAMETYPE_host_name
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hostname in TLS extension: \""

L_.str.1:                               ## @.str.1
	.asciz	"%c"

L_.str.2:                               ## @.str.2
	.asciz	"\\x%02x"

L_.str.3:                               ## @.str.3
	.asciz	"\"\n"

	.comm	_SSL_TLSEXT_ERR_NOACK,4,2       ## @SSL_TLSEXT_ERR_NOACK
	.comm	_ctx2,8,3                       ## @ctx2
L_.str.4:                               ## @.str.4
	.asciz	"Switching server context.\n"

	.comm	_SSL_TLSEXT_ERR_OK,4,2          ## @SSL_TLSEXT_ERR_OK
	.no_dead_strip	_ssl_servername_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_servername_cb
_ssl_servername_cb:                     ; @ssl_servername_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _TLSEXT_NAMETYPE_host_name@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLSEXT_NAMETYPE_host_name@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_SSL_get_servername
	cbz	x0, LBB0_14
; %bb.1:
	mov	x21, x0
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_BIO_printf
	ldrb	w8, [x21]
	cbz	w8, LBB0_8
; %bb.3:
	add	x24, x21, #1
Lloh5:
	adrp	x25, l_.str.2@PAGE
Lloh6:
	add	x25, x25, l_.str.2@PAGEOFF
Lloh7:
	adrp	x26, l_.str.1@PAGE
Lloh8:
	add	x26, x26, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_isprint
	cmp	x0, #0
	csel	x1, x25, x26, eq
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x23, [sp]
	mov	x0, x22
	bl	_BIO_printf
	ldrb	w8, [x24], #1
	cbz	w8, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	and	w23, w8, #0xff
	ldr	x22, [x19, #8]
	mov	x0, x23
	bl	_isascii
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x25
	b	LBB0_5
LBB0_8:
	ldr	x0, [x19, #8]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_BIO_printf
LBB0_9:
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_15
; %bb.10:
	mov	x0, x21
	bl	_strcasecmp
	cbnz	x0, LBB0_16
; %bb.11:
Lloh11:
	adrp	x21, _ctx2@GOTPAGE
Lloh12:
	ldr	x21, [x21, _ctx2@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	x0, [x19, #8]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_BIO_printf
	ldr	x1, [x21]
	mov	x0, x20
	bl	_SSL_set_SSL_CTX
LBB0_13:
Lloh15:
	adrp	x19, _SSL_TLSEXT_ERR_OK@GOTPAGE
Lloh16:
	ldr	x19, [x19, _SSL_TLSEXT_ERR_OK@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
	ldr	x8, [x19, #16]
Lloh17:
	adrp	x9, _SSL_TLSEXT_ERR_OK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SSL_TLSEXT_ERR_OK@GOTPAGEOFF]
Lloh19:
	adrp	x10, _SSL_TLSEXT_ERR_NOACK@GOTPAGE
Lloh20:
	ldr	x10, [x10, _SSL_TLSEXT_ERR_NOACK@GOTPAGEOFF]
	cmp	x8, #0
	csel	x19, x10, x9, eq
	b	LBB0_16
LBB0_15:
Lloh21:
	adrp	x19, _SSL_TLSEXT_ERR_NOACK@GOTPAGE
Lloh22:
	ldr	x19, [x19, _SSL_TLSEXT_ERR_NOACK@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_TLSEXT_NAMETYPE_host_name,4,2  ; @TLSEXT_NAMETYPE_host_name
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hostname in TLS extension: \""

l_.str.1:                               ; @.str.1
	.asciz	"%c"

l_.str.2:                               ; @.str.2
	.asciz	"\\x%02x"

l_.str.3:                               ; @.str.3
	.asciz	"\"\n"

	.comm	_SSL_TLSEXT_ERR_NOACK,4,2       ; @SSL_TLSEXT_ERR_NOACK
	.comm	_ctx2,8,3                       ; @ctx2
l_.str.4:                               ; @.str.4
	.asciz	"Switching server context.\n"

	.comm	_SSL_TLSEXT_ERR_OK,4,2          ; @SSL_TLSEXT_ERR_OK
	.no_dead_strip	_ssl_servername_cb
.subsections_via_symbols
