	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function key_ctx_update_implicit_iv
_key_ctx_update_implicit_iv:            ## @key_ctx_update_implicit_iv
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	12(%rdi), %edi
	callq	_cipher_ctx_get_cipher_kt
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_cipher_kt_mode_aead
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_cipher_kt_iv_size
	movq	_OPENVPN_AEAD_MIN_IV_LEN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setge	%dil
	callq	_ASSERT
	movq	%rbx, %rdi
	callq	_cipher_kt_iv_size
	movslq	%eax, %rbx
	addq	$-4, %rbx
	movq	_OPENVPN_MAX_IV_LENGTH@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rbx
	setbe	%dil
	callq	_ASSERT
	xorl	%edi, %edi
	cmpq	%r15, %rbx
	setbe	%dil
	callq	_ASSERT
	movl	8(%r12), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	%rbx, (%r12)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPENVPN_AEAD_MIN_IV_LEN,4,2    ## @OPENVPN_AEAD_MIN_IV_LEN
	.comm	_OPENVPN_MAX_IV_LENGTH,8,3      ## @OPENVPN_MAX_IV_LENGTH
	.no_dead_strip	_key_ctx_update_implicit_iv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function key_ctx_update_implicit_iv
_key_ctx_update_implicit_iv:            ; @key_ctx_update_implicit_iv
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_cipher_ctx_get_cipher_kt
	mov	x22, x0
	bl	_cipher_kt_mode_aead
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_cipher_kt_iv_size
Lloh0:
	adrp	x8, _OPENVPN_AEAD_MIN_IV_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPENVPN_AEAD_MIN_IV_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, ge
	bl	_ASSERT
	mov	x0, x22
	bl	_cipher_kt_iv_size
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	sub	x22, x8, #4
Lloh3:
	adrp	x8, _OPENVPN_MAX_IV_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPENVPN_MAX_IV_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x22, x8
	cset	w0, ls
	bl	_ASSERT
	cmp	x22, x21
	cset	w0, ls
	bl	_ASSERT
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	str	x22, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OPENVPN_AEAD_MIN_IV_LEN,4,2    ; @OPENVPN_AEAD_MIN_IV_LEN
	.comm	_OPENVPN_MAX_IV_LENGTH,8,3      ; @OPENVPN_MAX_IV_LENGTH
	.no_dead_strip	_key_ctx_update_implicit_iv
.subsections_via_symbols
