	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk_iv_copyback
_rk_iv_copyback:                        ## @rk_iv_copyback
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	32(%rdi), %edi
	callq	_ablkcipher_request_cast
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_crypto_ablkcipher_reqtfm
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_crypto_ablkcipher_ctx
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_crypto_ablkcipher_ivsize
	movq	%rax, %r14
	movq	_RK_CRYPTO_DEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_1
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, 24(%r12)
	movl	(%r15), %r15d
	je	LBB0_3
## %bb.2:
	movq	16(%r12), %rdi
	callq	_sg_virt
	movq	%rax, %rsi
	movq	16(%r12), %r12
	jmp	LBB0_4
LBB0_3:
	movq	8(%r12), %rsi
LBB0_4:
	subq	%r14, %rsi
	addq	(%r12), %rsi
	movl	%r15d, %edi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RK_CRYPTO_DEC,4,2              ## @RK_CRYPTO_DEC
	.no_dead_strip	_rk_iv_copyback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk_iv_copyback
_rk_iv_copyback:                        ; @rk_iv_copyback
	.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	x19, x0
	ldr	w0, [x0, #32]
	bl	_ablkcipher_request_cast
	mov	x21, x0
	bl	_crypto_ablkcipher_reqtfm
	mov	x20, x0
	bl	_crypto_ablkcipher_ctx
	mov	x22, x0
	mov	x0, x20
	bl	_crypto_ablkcipher_ivsize
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _RK_CRYPTO_DEC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RK_CRYPTO_DEC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x20, x0
	ldr	x8, [x19, #24]
	ldr	w21, [x21]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x0, [x19, #16]
	bl	_sg_virt
	ldr	x19, [x19, #16]
	b	LBB0_5
LBB0_4:
	ldr	x0, [x19, #8]
LBB0_5:
	ldr	x8, [x19]
	sub	x9, x0, x20
	add	x1, x9, x8
	mov	x0, x21
	mov	x2, x20
	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
	b	_memcpy
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RK_CRYPTO_DEC,4,2              ; @RK_CRYPTO_DEC
	.no_dead_strip	_rk_iv_copyback
.subsections_via_symbols
