	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_key_ctx                   ## -- Begin function init_key_ctx
	.p2align	4, 0x90
_init_key_ctx:                          ## @init_key_ctx
	.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	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -48(%rbp)
	movq	(%r15), %rdi
	callq	_CLEAR
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.1:
	cmpl	$0, (%rbx)
	jle	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_cipher_ctx_new
	movl	%eax, 4(%r15)
	movl	4(%r12), %esi
	movl	(%rbx), %edx
	movq	16(%rbx), %rcx
	movl	%eax, %edi
	movl	%r13d, %r8d
	callq	_cipher_ctx_init
	movq	_D_HANDSHAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	16(%rbx), %rdi
	callq	_cipher_kt_name
	movl	%eax, %edi
	callq	_translate_cipher_name_to_openvpn
	movl	(%rbx), %r8d
	shll	$3, %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_msg
	movq	_D_SHOW_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	4(%r12), %edi
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rcx
	xorl	%edx, %edx
	callq	_format_hex
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dmsg
	movq	_D_CRYPTO_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	16(%rbx), %rdi
	callq	_cipher_kt_block_size
	movq	%r12, %r14
	movl	%eax, %r12d
	movq	16(%rbx), %rdi
	callq	_cipher_kt_iv_size
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edi
	movq	%r15, %rdx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%r12d, %ecx
	movq	%r14, %r12
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dmsg
	movq	16(%rbx), %rdi
	callq	_cipher_kt_insecure
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_M_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	16(%rbx), %rdi
	callq	_cipher_kt_block_size
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,8), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, %edi
	movq	%r14, %r12
	xorl	%eax, %eax
	callq	_msg
LBB0_4:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.5:
	cmpl	$0, 4(%rbx)
	jle	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_hmac_ctx_new
	movl	%eax, (%r15)
	movl	(%r12), %esi
	movl	4(%rbx), %edx
	movq	8(%rbx), %rcx
	movl	%eax, %edi
	callq	_hmac_ctx_init
	movq	_D_HANDSHAKE@GOTPCREL(%rip), %rax
	movq	%r12, %r14
	movl	(%rax), %r12d
	movq	8(%rbx), %rdi
	callq	_md_kt_size
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,8), %r13d
	movq	8(%rbx), %rdi
	callq	_md_kt_name
	leaq	L_.str.4(%rip), %rsi
	movl	%r12d, %edi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_msg
	movq	_D_SHOW_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r14), %edi
	movl	4(%rbx), %esi
	leaq	-48(%rbp), %rcx
	xorl	%edx, %edx
	callq	_format_hex
	leaq	L_.str.5(%rip), %rsi
	movl	%r12d, %edi
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dmsg
	movq	_D_CRYPTO_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	8(%rbx), %rdi
	callq	_md_kt_size
	movl	%eax, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_hmac_ctx_size
	leaq	L_.str.6(%rip), %rsi
	movl	%r12d, %edi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dmsg
LBB0_7:
	leaq	-48(%rbp), %rdi
	callq	_gc_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_HANDSHAKE,4,2                ## @D_HANDSHAKE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Cipher '%s' initialized with %d bit key"

	.comm	_D_SHOW_KEYS,4,2                ## @D_SHOW_KEYS
L_.str.1:                               ## @.str.1
	.asciz	"%s: CIPHER KEY: %s"

	.comm	_D_CRYPTO_DEBUG,4,2             ## @D_CRYPTO_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"%s: CIPHER block_size=%d iv_size=%d"

	.comm	_M_WARN,4,2                     ## @M_WARN
L_.str.3:                               ## @.str.3
	.asciz	"WARNING: INSECURE cipher with block size less than 128 bit (%d bit).  This allows attacks like SWEET32.  Mitigate by using a --cipher with a larger block size (e.g. AES-256-CBC)."

L_.str.4:                               ## @.str.4
	.asciz	"%s: Using %d bit message hash '%s' for HMAC authentication"

L_.str.5:                               ## @.str.5
	.asciz	"%s: HMAC KEY: %s"

L_.str.6:                               ## @.str.6
	.asciz	"%s: HMAC size=%d block_size=%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_key_ctx                   ; -- Begin function init_key_ctx
	.p2align	2
_init_key_ctx:                          ; @init_key_ctx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x4
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_gc_new
	str	w0, [sp, #24]
	ldr	x0, [x20]
	bl	_CLEAR
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	bl	_cipher_ctx_new
	str	w0, [x20, #4]
	ldr	w1, [x22, #4]
	ldr	w2, [x21]
	ldr	x3, [x21, #16]
	mov	x4, x23
	bl	_cipher_ctx_init
Lloh0:
	adrp	x8, _D_HANDSHAKE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_HANDSHAKE@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	x0, [x21, #16]
	bl	_cipher_kt_name
	bl	_translate_cipher_name_to_openvpn
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x21]
	lsl	w8, w8, #3
	stp	x0, x8, [sp, #8]
	str	x19, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_msg
Lloh5:
	adrp	x8, _D_SHOW_KEYS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _D_SHOW_KEYS@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	ldr	w0, [x22, #4]
	ldr	w1, [x21]
	add	x3, sp, #24
	mov	w2, #0
	bl	_format_hex
	mov	x3, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, x19
	bl	_dmsg
Lloh10:
	adrp	x8, _D_CRYPTO_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _D_CRYPTO_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w23, [x8]
	ldr	x0, [x21, #16]
	bl	_cipher_kt_block_size
	mov	x24, x0
	ldr	x0, [x21, #16]
	bl	_cipher_kt_iv_size
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x2, x19
	mov	x3, x24
	bl	_dmsg
	ldr	x0, [x21, #16]
	bl	_cipher_kt_insecure
	cbz	x0, LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _M_WARN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _M_WARN@GOTPAGEOFF]
Lloh17:
	ldr	w23, [x8]
	ldr	x0, [x21, #16]
	bl	_cipher_kt_block_size
	lsl	w8, w0, #3
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_msg
LBB0_4:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w8, [x21, #4]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.6:
	bl	_hmac_ctx_new
	str	w0, [x20]
	ldr	w1, [x22]
	ldr	w2, [x21, #4]
	ldr	x3, [x21, #8]
	bl	_hmac_ctx_init
Lloh20:
	adrp	x8, _D_HANDSHAKE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _D_HANDSHAKE@GOTPAGEOFF]
Lloh22:
	ldr	w23, [x8]
	ldr	x0, [x21, #8]
	bl	_md_kt_size
	lsl	w24, w0, #3
	ldr	x0, [x21, #8]
	bl	_md_kt_name
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp, #8]
	str	x19, [sp]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_msg
Lloh25:
	adrp	x8, _D_SHOW_KEYS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _D_SHOW_KEYS@GOTPAGEOFF]
Lloh27:
	ldr	w23, [x8]
	ldr	w0, [x22]
	ldr	w1, [x21, #4]
	add	x3, sp, #24
	mov	w2, #0
	bl	_format_hex
	mov	x3, x0
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x23
	mov	x2, x19
	bl	_dmsg
Lloh30:
	adrp	x8, _D_CRYPTO_DEBUG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _D_CRYPTO_DEBUG@GOTPAGEOFF]
Lloh32:
	ldr	w22, [x8]
	ldr	x0, [x21, #8]
	bl	_md_kt_size
	mov	x21, x0
	ldr	w0, [x20]
	bl	_hmac_ctx_size
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	mov	x3, x21
	bl	_dmsg
LBB0_7:
	add	x0, sp, #24
	bl	_gc_free
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_D_HANDSHAKE,4,2                ; @D_HANDSHAKE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Cipher '%s' initialized with %d bit key"

	.comm	_D_SHOW_KEYS,4,2                ; @D_SHOW_KEYS
l_.str.1:                               ; @.str.1
	.asciz	"%s: CIPHER KEY: %s"

	.comm	_D_CRYPTO_DEBUG,4,2             ; @D_CRYPTO_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"%s: CIPHER block_size=%d iv_size=%d"

	.comm	_M_WARN,4,2                     ; @M_WARN
l_.str.3:                               ; @.str.3
	.asciz	"WARNING: INSECURE cipher with block size less than 128 bit (%d bit).  This allows attacks like SWEET32.  Mitigate by using a --cipher with a larger block size (e.g. AES-256-CBC)."

l_.str.4:                               ; @.str.4
	.asciz	"%s: Using %d bit message hash '%s' for HMAC authentication"

l_.str.5:                               ; @.str.5
	.asciz	"%s: HMAC KEY: %s"

l_.str.6:                               ; @.str.6
	.asciz	"%s: HMAC size=%d block_size=%d"

.subsections_via_symbols
