	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_key_type                  ## -- Begin function init_key_type
	.p2align	4, 0x90
_init_key_type:                         ## @init_key_type
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_ASSERT
	movq	%r14, %rdi
	callq	_ASSERT
	movq	16(%r13), %rax
	movq	%rax, 16(%rsp)
	movups	(%r13), %xmm0
	movups	%xmm0, (%rsp)
	callq	_CLEAR
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_translate_cipher_name_from_openvpn
	movl	%eax, %edi
	callq	_cipher_kt_get
	movl	%eax, 20(%r13)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_M_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_msg
	movl	20(%r13), %eax
LBB0_3:
	movl	%eax, %edi
	callq	_cipher_kt_key_size
	movl	%eax, (%r13)
	movq	_MAX_CIPHER_KEY_LENGTH@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	movl	%r15d, %ecx
	cmovll	%eax, %ecx
	testl	%r15d, %r15d
	cmovlel	%eax, %ecx
	movl	%ecx, (%r13)
	movl	20(%r13), %edi
	callq	_cipher_kt_mode_aead
	movl	%eax, %r15d
	movl	20(%r13), %edi
	callq	_cipher_kt_mode_cbc
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:
	testl	%r15d, %r15d
	jne	LBB0_7
LBB0_6:
	movq	_M_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_msg
LBB0_7:
	movq	_OPENVPN_MAX_CIPHER_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	20(%r13), %edi
	callq	_cipher_kt_block_size
	cmpq	%rax, %rbx
	jge	LBB0_8
## %bb.9:
	movq	_M_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_msg
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_13
LBB0_10:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.12:
	movq	_M_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_msg
	jmp	LBB0_13
LBB0_8:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_13
LBB0_11:
	xorl	%r15d, %r15d
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	testl	%r15d, %r15d
	jne	LBB0_19
## %bb.15:
	movq	%r14, %rdi
	callq	_md_kt_get
	movl	%eax, 16(%r13)
	movl	%eax, %edi
	callq	_md_kt_size
	movq	%rax, 8(%r13)
	movq	_OPENVPN_MAX_HMAC_SIZE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jge	LBB0_19
## %bb.16:
	movq	_M_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msg                            ## TAILCALL
LBB0_17:
	testl	%ebx, %ebx
	je	LBB0_19
## %bb.18:
	testl	%r15d, %r15d
	jne	LBB0_19
## %bb.20:
	movq	_M_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msg                            ## TAILCALL
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"none"

	.comm	_M_FATAL,4,2                    ## @M_FATAL
L_.str.1:                               ## @.str.1
	.asciz	"Cipher %s not supported"

	.comm	_MAX_CIPHER_KEY_LENGTH,4,2      ## @MAX_CIPHER_KEY_LENGTH
L_.str.2:                               ## @.str.2
	.asciz	"Cipher '%s' mode not supported"

	.comm	_OPENVPN_MAX_CIPHER_BLOCK_SIZE,8,3 ## @OPENVPN_MAX_CIPHER_BLOCK_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"Cipher '%s' not allowed: block size too big."

	.comm	_M_WARN,4,2                     ## @M_WARN
L_.str.4:                               ## @.str.4
	.asciz	"******* WARNING *******: '--cipher none' was specified. This means NO encryption will be performed and tunnelled data WILL be transmitted in clear text over the network! PLEASE DO RECONSIDER THIS SETTING!"

	.comm	_OPENVPN_MAX_HMAC_SIZE,8,3      ## @OPENVPN_MAX_HMAC_SIZE
L_.str.5:                               ## @.str.5
	.asciz	"HMAC '%s' not allowed: digest size too big."

L_.str.6:                               ## @.str.6
	.asciz	"******* WARNING *******: '--auth none' was specified. This means no authentication will be performed on received packets, meaning you CANNOT trust that the data received by the remote side have NOT been manipulated. PLEASE DO RECONSIDER THIS SETTING!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_key_type                  ; -- Begin function init_key_type
	.p2align	2
_init_key_type:                         ; @init_key_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x5
	mov	x23, x4
	mov	x24, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	mov	x0, x1
	bl	_ASSERT
	mov	x0, x19
	bl	_ASSERT
	ldr	q0, [x20]
	str	q0, [sp, #16]
	ldr	x8, [x20, #16]
	str	x8, [sp, #32]
	add	x0, sp, #16
	bl	_CLEAR
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.1:
	mov	x0, x22
	bl	_translate_cipher_name_from_openvpn
	bl	_cipher_kt_get
	str	w0, [x20, #20]
	cbnz	w0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _M_FATAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_FATAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	str	x22, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_msg
	ldr	w0, [x20, #20]
LBB0_3:
	bl	_cipher_kt_key_size
	str	w0, [x20]
Lloh7:
	adrp	x8, _MAX_CIPHER_KEY_LENGTH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX_CIPHER_KEY_LENGTH@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w24
	ccmp	w24, #1, #8, ge
	csel	w8, w0, w24, lt
	str	w8, [x20]
	ldr	w0, [x20, #20]
	bl	_cipher_kt_mode_aead
	mov	x24, x0
	ldr	w0, [x20, #20]
	bl	_cipher_kt_mode_cbc
	cbnz	x0, LBB0_7
; %bb.4:
	cbz	w23, LBB0_6
; %bb.5:
	cbnz	w24, LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _M_FATAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _M_FATAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	str	x22, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_msg
LBB0_7:
Lloh15:
	adrp	x8, _OPENVPN_MAX_CIPHER_BLOCK_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OPENVPN_MAX_CIPHER_BLOCK_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	x23, [x8]
	ldr	w0, [x20, #20]
	bl	_cipher_kt_block_size
	cmp	x23, x0
	b.ge	LBB0_12
; %bb.8:
Lloh18:
	adrp	x8, _M_FATAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _M_FATAL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	str	x22, [sp]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_msg
	b	LBB0_12
LBB0_9:
	cbz	w21, LBB0_11
; %bb.10:
Lloh23:
	adrp	x8, _M_WARN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _M_WARN@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_msg
LBB0_11:
	mov	w24, #0
LBB0_12:
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_16
; %bb.13:
	cbnz	w24, LBB0_20
; %bb.14:
	mov	x0, x19
	bl	_md_kt_get
	str	w0, [x20, #16]
	bl	_md_kt_size
	str	x0, [x20, #8]
Lloh30:
	adrp	x8, _OPENVPN_MAX_HMAC_SIZE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _OPENVPN_MAX_HMAC_SIZE@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ge	LBB0_20
; %bb.15:
Lloh33:
	adrp	x8, _M_FATAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _M_FATAL@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_19
LBB0_16:
	cbz	w21, LBB0_20
; %bb.17:
	cbnz	w24, LBB0_20
; %bb.18:
Lloh38:
	adrp	x8, _M_WARN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _M_WARN@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
Lloh41:
	adrp	x1, l_.str.6@PAGE
Lloh42:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_19:
	bl	_msg
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"none"

	.comm	_M_FATAL,4,2                    ; @M_FATAL
l_.str.1:                               ; @.str.1
	.asciz	"Cipher %s not supported"

	.comm	_MAX_CIPHER_KEY_LENGTH,4,2      ; @MAX_CIPHER_KEY_LENGTH
l_.str.2:                               ; @.str.2
	.asciz	"Cipher '%s' mode not supported"

	.comm	_OPENVPN_MAX_CIPHER_BLOCK_SIZE,8,3 ; @OPENVPN_MAX_CIPHER_BLOCK_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"Cipher '%s' not allowed: block size too big."

	.comm	_M_WARN,4,2                     ; @M_WARN
l_.str.4:                               ; @.str.4
	.asciz	"******* WARNING *******: '--cipher none' was specified. This means NO encryption will be performed and tunnelled data WILL be transmitted in clear text over the network! PLEASE DO RECONSIDER THIS SETTING!"

	.comm	_OPENVPN_MAX_HMAC_SIZE,8,3      ; @OPENVPN_MAX_HMAC_SIZE
l_.str.5:                               ; @.str.5
	.asciz	"HMAC '%s' not allowed: digest size too big."

l_.str.6:                               ; @.str.6
	.asciz	"******* WARNING *******: '--auth none' was specified. This means no authentication will be performed on received packets, meaning you CANNOT trust that the data received by the remote side have NOT been manipulated. PLEASE DO RECONSIDER THIS SETTING!"

.subsections_via_symbols
