	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_crypt_v2_init_server_key   ## -- Begin function tls_crypt_v2_init_server_key
	.p2align	4, 0x90
_tls_crypt_v2_init_server_key:          ## @tls_crypt_v2_init_server_key
	.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	%rcx, %r12
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	-64(%rbp), %r13
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_buf_set_write
	movq	_tls_crypt_v2_srv_pem_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_read_pem_key_file
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_M_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_msg
LBB0_2:
	xorl	%eax, %eax
	callq	_tls_crypt_kt
	movq	%rax, -56(%rbp)
	movq	%rax, %rcx
	shrq	$32, %rcx
	je	LBB0_4
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	movq	_M_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_msg
LBB0_5:
	leaq	L_.str.2(%rip), %r8
	leaq	-48(%rbp), %rbx
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %ecx
	callq	_init_key_ctx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_secure_memzero
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tls_crypt_v2_srv_pem_name,4,2  ## @tls_crypt_v2_srv_pem_name
	.comm	_M_FATAL,4,2                    ## @M_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: invalid tls-crypt-v2 server key format"

L_.str.1:                               ## @.str.1
	.asciz	"ERROR: --tls-crypt-v2 not supported"

L_.str.2:                               ## @.str.2
	.asciz	"tls-crypt-v2 server key"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_crypt_v2_init_server_key   ; -- Begin function tls_crypt_v2_init_server_key
	.p2align	2
_tls_crypt_v2_init_server_key:          ; @tls_crypt_v2_init_server_key
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #16
	add	x1, sp, #24
	mov	w2, #4
	bl	_buf_set_write
Lloh0:
	adrp	x8, _tls_crypt_v2_srv_pem_name@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tls_crypt_v2_srv_pem_name@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #16
	mov	x2, x22
	mov	x3, x21
	bl	_read_pem_key_file
	cbnz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _M_FATAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_FATAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_msg
LBB0_2:
	bl	_tls_crypt_kt
	str	x0, [sp, #8]
	lsr	x8, x0, #32
	cbz	x8, LBB0_4
; %bb.3:
	cbnz	w0, LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _M_FATAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_FATAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_msg
LBB0_5:
Lloh13:
	adrp	x4, l_.str.2@PAGE
Lloh14:
	add	x4, x4, l_.str.2@PAGEOFF
	add	x1, sp, #24
	add	x2, sp, #8
	mov	x0, x20
	mov	x3, x19
	bl	_init_key_ctx
	add	x0, sp, #24
	mov	w1, #4
	bl	_secure_memzero
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_tls_crypt_v2_srv_pem_name,4,2  ; @tls_crypt_v2_srv_pem_name
	.comm	_M_FATAL,4,2                    ; @M_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: invalid tls-crypt-v2 server key format"

l_.str.1:                               ; @.str.1
	.asciz	"ERROR: --tls-crypt-v2 not supported"

l_.str.2:                               ; @.str.2
	.asciz	"tls-crypt-v2 server key"

.subsections_via_symbols
