	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_key_ctx_bi                ## -- Begin function init_key_ctx_bi
	.p2align	4, 0x90
_init_key_ctx_bi:                       ## @init_key_ctx_bi
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -176(%rbp)
	leaq	-192(%rbp), %rdi
	movl	%edx, %esi
	callq	_key_direction_state_init
	leaq	L_.str(%rip), %rdx
	leaq	-176(%rbp), %r13
	movq	%r13, %rdi
	movl	$128, %esi
	movq	%r12, %rcx
	callq	_openvpn_snprintf
	leaq	8(%rbx), %rdi
	movq	-192(%rbp), %rsi
	shlq	$2, %rsi
	addq	(%r15), %rsi
	movq	_OPENVPN_OP_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdx
	movq	%r13, %r8
	callq	_init_key_ctx
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	$128, %esi
	movq	%r12, %rcx
	callq	_openvpn_snprintf
	leaq	4(%rbx), %rdi
	movq	-184(%rbp), %rsi
	shlq	$2, %rsi
	addq	(%r15), %rsi
	movq	_OPENVPN_OP_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdx
	movq	%r13, %r8
	callq	_init_key_ctx
	movl	$1, (%rbx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Outgoing %s"

	.comm	_OPENVPN_OP_ENCRYPT,4,2         ## @OPENVPN_OP_ENCRYPT
L_.str.1:                               ## @.str.1
	.asciz	"Incoming %s"

	.comm	_OPENVPN_OP_DECRYPT,4,2         ## @OPENVPN_OP_DECRYPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_key_ctx_bi                ; -- Begin function init_key_ctx_bi
	.p2align	2
_init_key_ctx_bi:                       ; @init_key_ctx_bi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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, x4
	mov	x20, x3
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #112]
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
	mov	x0, sp
	mov	x1, x2
	bl	_key_direction_state_init
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #16
	mov	w1, #128
	mov	x3, x21
	bl	_openvpn_snprintf
	add	x0, x19, #8
	ldr	x8, [x22]
	ldr	x9, [sp]
	add	x1, x8, x9, lsl #2
Lloh5:
	adrp	x8, _OPENVPN_OP_ENCRYPT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OPENVPN_OP_ENCRYPT@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x4, sp, #16
	mov	x2, x20
	bl	_init_key_ctx
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #16
	mov	w1, #128
	mov	x3, x21
	bl	_openvpn_snprintf
	add	x0, x19, #4
	ldr	x8, [x22]
	ldr	x9, [sp, #8]
	add	x1, x8, x9, lsl #2
Lloh10:
	adrp	x8, _OPENVPN_OP_DECRYPT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OPENVPN_OP_DECRYPT@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	add	x4, sp, #16
	mov	x2, x20
	bl	_init_key_ctx
	mov	w8, #1
	str	w8, [x19]
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Outgoing %s"

	.comm	_OPENVPN_OP_ENCRYPT,4,2         ; @OPENVPN_OP_ENCRYPT
l_.str.1:                               ; @.str.1
	.asciz	"Incoming %s"

	.comm	_OPENVPN_OP_DECRYPT,4,2         ; @OPENVPN_OP_DECRYPT
.subsections_via_symbols
