	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk_update_iv
_rk_update_iv:                          ## @rk_update_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	%rdi, %r14
	movl	16(%rdi), %edi
	callq	_ablkcipher_request_cast
	movq	%rax, %rdi
	callq	_crypto_ablkcipher_reqtfm
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_crypto_ablkcipher_ctx
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_crypto_ablkcipher_ivsize
	movl	%eax, %r15d
	movq	_RK_CRYPTO_DEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.1:
	movq	8(%r12), %rsi
	jmp	LBB0_3
LBB0_2:
	movq	8(%r14), %rdi
	callq	_sg_page
	movl	%eax, %edi
	callq	_page_address
	movq	8(%r14), %rcx
	subl	%r15d, %eax
	addl	(%rcx), %eax
	addl	4(%rcx), %eax
	movslq	%eax, %rsi
LBB0_3:
	movq	_DES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_5
## %bb.4:
	movq	_RK_CRYPTO_TDES_IV_0@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_8
## %bb.6:
	movq	_RK_CRYPTO_AES_IV_0@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy_toio                    ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RK_CRYPTO_DEC,4,2              ## @RK_CRYPTO_DEC
	.comm	_DES_BLOCK_SIZE,4,2             ## @DES_BLOCK_SIZE
	.comm	_RK_CRYPTO_TDES_IV_0,8,3        ## @RK_CRYPTO_TDES_IV_0
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.comm	_RK_CRYPTO_AES_IV_0,8,3         ## @RK_CRYPTO_AES_IV_0
	.no_dead_strip	_rk_update_iv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk_update_iv
_rk_update_iv:                          ; @rk_update_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	x19, x0
	ldr	w0, [x0, #16]
	bl	_ablkcipher_request_cast
	bl	_crypto_ablkcipher_reqtfm
	mov	x20, x0
	bl	_crypto_ablkcipher_ctx
	mov	x21, x0
	mov	x0, x20
	bl	_crypto_ablkcipher_ivsize
	mov	x20, x0
	ldr	w8, [x21]
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:
	ldr	x1, [x21, #8]
	b	LBB0_3
LBB0_2:
	ldr	x0, [x19, #8]
	bl	_sg_page
	bl	_page_address
	ldr	x8, [x19, #8]
	ldp	w9, w8, [x8]
	sub	w10, w0, w20
	add	w9, w10, w9
	add	w8, w9, w8
	sxtw	x1, w8
LBB0_3:
Lloh3:
	adrp	x8, _DES_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DES_BLOCK_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _RK_CRYPTO_TDES_IV_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RK_CRYPTO_TDES_IV_0@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _AES_BLOCK_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_8
; %bb.6:
Lloh11:
	adrp	x8, _RK_CRYPTO_AES_IV_0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RK_CRYPTO_AES_IV_0@GOTPAGEOFF]
LBB0_7:
	ldr	x9, [x19]
	ldr	x8, [x8]
	add	x0, x8, x9
	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_toio
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RK_CRYPTO_DEC,4,2              ; @RK_CRYPTO_DEC
	.comm	_DES_BLOCK_SIZE,4,2             ; @DES_BLOCK_SIZE
	.comm	_RK_CRYPTO_TDES_IV_0,8,3        ; @RK_CRYPTO_TDES_IV_0
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.comm	_RK_CRYPTO_AES_IV_0,8,3         ; @RK_CRYPTO_AES_IV_0
	.no_dead_strip	_rk_update_iv
.subsections_via_symbols
