	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk_ablk_hw_init
_rk_ablk_hw_init:                       ## @rk_ablk_hw_init
	.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	8(%rdi), %edi
	callq	_ablkcipher_request_cast
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_crypto_ablkcipher_reqtfm
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_crypto_ablkcipher_tfm
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_crypto_ablkcipher_ctx
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_crypto_tfm_alg_blocksize
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_crypto_ablkcipher_ivsize
	movq	%rax, %rbx
	movq	_DES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_2
## %bb.1:
	movq	_RK_CRYPTO_TDES_FIFO_MODE@GOTPCREL(%rip), %rax
	movq	_RK_CRYPTO_TDES_BYTESWAP_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movslq	%ecx, %rax
	movq	_RK_CRYPTO_TDES_BYTESWAP_IV@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	orq	%rax, %rcx
	movslq	(%r13), %rdx
	orq	%rcx, %rdx
	movl	%edx, (%r13)
	movq	_RK_CRYPTO_TDES_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_CRYPTO_WRITE
	movq	_RK_CRYPTO_TDES_IV_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	movl	(%r14), %esi
	movq	%rbx, %rdx
	callq	_memcpy_toio
	movq	_RK_CRYPTO_DESSEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	jmp	LBB0_8
LBB0_2:
	movq	_RK_CRYPTO_AES_FIFO_MODE@GOTPCREL(%rip), %rcx
	movq	_RK_CRYPTO_AES_KEY_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_RK_CRYPTO_AES_BYTESWAP_KEY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_RK_CRYPTO_AES_BYTESWAP_IV@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%r13), %eax
	movl	%eax, (%r13)
	movq	8(%r13), %rcx
	movq	_AES_KEYSIZE_192@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movq	_RK_CRYPTO_AES_192BIT_key@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_AES_KEYSIZE_256@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.5:
	movq	_RK_CRYPTO_AES_256BIT_key@GOTPCREL(%rip), %rcx
LBB0_6:
	orl	(%rcx), %eax
	movl	%eax, (%r13)
LBB0_7:
	movq	_RK_CRYPTO_AES_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movslq	%eax, %rdx
	movq	%r12, %rdi
	callq	_CRYPTO_WRITE
	movq	_RK_CRYPTO_AES_IV_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	movl	(%r14), %esi
	movq	%rbx, %rdx
	callq	_memcpy_toio
	xorl	%edx, %edx
LBB0_8:
	movq	_RK_CRYPTO_BYTESWAP_BTFIFO@GOTPCREL(%rip), %rax
	orq	(%rax), %rdx
	movq	_RK_CRYPTO_BYTESWAP_BRFIFO@GOTPCREL(%rip), %rax
	orq	(%rax), %rdx
	movq	_RK_CRYPTO_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_CRYPTO_WRITE
	movq	_RK_CRYPTO_INTENA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RK_CRYPTO_BCDMA_ERR_ENA@GOTPCREL(%rip), %rax
	movq	_RK_CRYPTO_BCDMA_DONE_ENA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	orq	(%rax), %rdx
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CRYPTO_WRITE                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DES_BLOCK_SIZE,8,3             ## @DES_BLOCK_SIZE
	.comm	_RK_CRYPTO_TDES_FIFO_MODE,4,2   ## @RK_CRYPTO_TDES_FIFO_MODE
	.comm	_RK_CRYPTO_TDES_BYTESWAP_KEY,4,2 ## @RK_CRYPTO_TDES_BYTESWAP_KEY
	.comm	_RK_CRYPTO_TDES_BYTESWAP_IV,4,2 ## @RK_CRYPTO_TDES_BYTESWAP_IV
	.comm	_RK_CRYPTO_TDES_CTRL,4,2        ## @RK_CRYPTO_TDES_CTRL
	.comm	_RK_CRYPTO_TDES_IV_0,8,3        ## @RK_CRYPTO_TDES_IV_0
	.comm	_RK_CRYPTO_DESSEL,8,3           ## @RK_CRYPTO_DESSEL
	.comm	_RK_CRYPTO_AES_FIFO_MODE,4,2    ## @RK_CRYPTO_AES_FIFO_MODE
	.comm	_RK_CRYPTO_AES_KEY_CHANGE,4,2   ## @RK_CRYPTO_AES_KEY_CHANGE
	.comm	_RK_CRYPTO_AES_BYTESWAP_KEY,4,2 ## @RK_CRYPTO_AES_BYTESWAP_KEY
	.comm	_RK_CRYPTO_AES_BYTESWAP_IV,4,2  ## @RK_CRYPTO_AES_BYTESWAP_IV
	.comm	_AES_KEYSIZE_192,8,3            ## @AES_KEYSIZE_192
	.comm	_RK_CRYPTO_AES_192BIT_key,4,2   ## @RK_CRYPTO_AES_192BIT_key
	.comm	_AES_KEYSIZE_256,8,3            ## @AES_KEYSIZE_256
	.comm	_RK_CRYPTO_AES_256BIT_key,4,2   ## @RK_CRYPTO_AES_256BIT_key
	.comm	_RK_CRYPTO_AES_CTRL,4,2         ## @RK_CRYPTO_AES_CTRL
	.comm	_RK_CRYPTO_AES_IV_0,8,3         ## @RK_CRYPTO_AES_IV_0
	.comm	_RK_CRYPTO_BYTESWAP_BTFIFO,8,3  ## @RK_CRYPTO_BYTESWAP_BTFIFO
	.comm	_RK_CRYPTO_BYTESWAP_BRFIFO,8,3  ## @RK_CRYPTO_BYTESWAP_BRFIFO
	.comm	_RK_CRYPTO_CONF,4,2             ## @RK_CRYPTO_CONF
	.comm	_RK_CRYPTO_INTENA,4,2           ## @RK_CRYPTO_INTENA
	.comm	_RK_CRYPTO_BCDMA_ERR_ENA,8,3    ## @RK_CRYPTO_BCDMA_ERR_ENA
	.comm	_RK_CRYPTO_BCDMA_DONE_ENA,8,3   ## @RK_CRYPTO_BCDMA_DONE_ENA
	.no_dead_strip	_rk_ablk_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk_ablk_hw_init
_rk_ablk_hw_init:                       ; @rk_ablk_hw_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	w0, [x0, #8]
	bl	_ablkcipher_request_cast
	mov	x20, x0
	bl	_crypto_ablkcipher_reqtfm
	mov	x21, x0
	bl	_crypto_ablkcipher_tfm
	mov	x23, x0
	mov	x0, x21
	bl	_crypto_ablkcipher_ctx
	mov	x22, x0
	mov	x0, x23
	bl	_crypto_tfm_alg_blocksize
	mov	x23, x0
	mov	x0, x21
	bl	_crypto_ablkcipher_ivsize
	mov	x21, x0
Lloh0:
	adrp	x8, _DES_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DES_BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x23, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _RK_CRYPTO_TDES_FIFO_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RK_CRYPTO_TDES_FIFO_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _RK_CRYPTO_TDES_BYTESWAP_KEY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RK_CRYPTO_TDES_BYTESWAP_KEY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	sxtw	x8, w8
Lloh9:
	adrp	x9, _RK_CRYPTO_TDES_BYTESWAP_IV@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RK_CRYPTO_TDES_BYTESWAP_IV@GOTPAGEOFF]
Lloh11:
	ldrsw	x9, [x9]
	orr	x8, x8, x9
	ldrsw	x9, [x22]
	orr	x2, x8, x9
	str	w2, [x22]
Lloh12:
	adrp	x8, _RK_CRYPTO_TDES_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RK_CRYPTO_TDES_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CRYPTO_WRITE
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _RK_CRYPTO_TDES_IV_0@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RK_CRYPTO_TDES_IV_0@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x0, x9, x8
	ldr	w1, [x20]
	mov	x2, x21
	bl	_memcpy_toio
Lloh18:
	adrp	x8, _RK_CRYPTO_DESSEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RK_CRYPTO_DESSEL@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	b	LBB0_8
LBB0_2:
Lloh21:
	adrp	x8, _RK_CRYPTO_AES_FIFO_MODE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RK_CRYPTO_AES_FIFO_MODE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _RK_CRYPTO_AES_KEY_CHANGE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RK_CRYPTO_AES_KEY_CHANGE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh27:
	adrp	x9, _RK_CRYPTO_AES_BYTESWAP_KEY@GOTPAGE
Lloh28:
	ldr	x9, [x9, _RK_CRYPTO_AES_BYTESWAP_KEY@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh30:
	adrp	x9, _RK_CRYPTO_AES_BYTESWAP_IV@GOTPAGE
Lloh31:
	ldr	x9, [x9, _RK_CRYPTO_AES_BYTESWAP_IV@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x22]
	orr	w8, w8, w9
	str	w8, [x22]
	ldr	x9, [x22, #8]
Lloh33:
	adrp	x10, _AES_KEYSIZE_192@GOTPAGE
Lloh34:
	ldr	x10, [x10, _AES_KEYSIZE_192@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
Lloh36:
	adrp	x9, _RK_CRYPTO_AES_192BIT_key@GOTPAGE
Lloh37:
	ldr	x9, [x9, _RK_CRYPTO_AES_192BIT_key@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh38:
	adrp	x10, _AES_KEYSIZE_256@GOTPAGE
Lloh39:
	ldr	x10, [x10, _AES_KEYSIZE_256@GOTPAGEOFF]
Lloh40:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.5:
Lloh41:
	adrp	x9, _RK_CRYPTO_AES_256BIT_key@GOTPAGE
Lloh42:
	ldr	x9, [x9, _RK_CRYPTO_AES_256BIT_key@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x22]
LBB0_7:
Lloh43:
	adrp	x9, _RK_CRYPTO_AES_CTRL@GOTPAGE
Lloh44:
	ldr	x9, [x9, _RK_CRYPTO_AES_CTRL@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x9]
	sxtw	x2, w8
	mov	x0, x19
	bl	_CRYPTO_WRITE
	ldr	x8, [x19]
Lloh46:
	adrp	x9, _RK_CRYPTO_AES_IV_0@GOTPAGE
Lloh47:
	ldr	x9, [x9, _RK_CRYPTO_AES_IV_0@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	add	x0, x9, x8
	ldr	w1, [x20]
	mov	x2, x21
	bl	_memcpy_toio
	mov	x8, #0
LBB0_8:
Lloh49:
	adrp	x9, _RK_CRYPTO_BYTESWAP_BTFIFO@GOTPAGE
Lloh50:
	ldr	x9, [x9, _RK_CRYPTO_BYTESWAP_BTFIFO@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
Lloh52:
	adrp	x10, _RK_CRYPTO_BYTESWAP_BRFIFO@GOTPAGE
Lloh53:
	ldr	x10, [x10, _RK_CRYPTO_BYTESWAP_BRFIFO@GOTPAGEOFF]
Lloh54:
	ldr	x10, [x10]
	orr	x8, x9, x8
	orr	x2, x8, x10
Lloh55:
	adrp	x8, _RK_CRYPTO_CONF@GOTPAGE
Lloh56:
	ldr	x8, [x8, _RK_CRYPTO_CONF@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CRYPTO_WRITE
Lloh58:
	adrp	x8, _RK_CRYPTO_INTENA@GOTPAGE
Lloh59:
	ldr	x8, [x8, _RK_CRYPTO_INTENA@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
Lloh61:
	adrp	x8, _RK_CRYPTO_BCDMA_ERR_ENA@GOTPAGE
Lloh62:
	ldr	x8, [x8, _RK_CRYPTO_BCDMA_ERR_ENA@GOTPAGEOFF]
Lloh63:
	adrp	x9, _RK_CRYPTO_BCDMA_DONE_ENA@GOTPAGE
Lloh64:
	ldr	x9, [x9, _RK_CRYPTO_BCDMA_DONE_ENA@GOTPAGEOFF]
Lloh65:
	ldr	x8, [x8]
Lloh66:
	ldr	x9, [x9]
	orr	x2, x9, x8
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_CRYPTO_WRITE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh65
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_DES_BLOCK_SIZE,8,3             ; @DES_BLOCK_SIZE
	.comm	_RK_CRYPTO_TDES_FIFO_MODE,4,2   ; @RK_CRYPTO_TDES_FIFO_MODE
	.comm	_RK_CRYPTO_TDES_BYTESWAP_KEY,4,2 ; @RK_CRYPTO_TDES_BYTESWAP_KEY
	.comm	_RK_CRYPTO_TDES_BYTESWAP_IV,4,2 ; @RK_CRYPTO_TDES_BYTESWAP_IV
	.comm	_RK_CRYPTO_TDES_CTRL,4,2        ; @RK_CRYPTO_TDES_CTRL
	.comm	_RK_CRYPTO_TDES_IV_0,8,3        ; @RK_CRYPTO_TDES_IV_0
	.comm	_RK_CRYPTO_DESSEL,8,3           ; @RK_CRYPTO_DESSEL
	.comm	_RK_CRYPTO_AES_FIFO_MODE,4,2    ; @RK_CRYPTO_AES_FIFO_MODE
	.comm	_RK_CRYPTO_AES_KEY_CHANGE,4,2   ; @RK_CRYPTO_AES_KEY_CHANGE
	.comm	_RK_CRYPTO_AES_BYTESWAP_KEY,4,2 ; @RK_CRYPTO_AES_BYTESWAP_KEY
	.comm	_RK_CRYPTO_AES_BYTESWAP_IV,4,2  ; @RK_CRYPTO_AES_BYTESWAP_IV
	.comm	_AES_KEYSIZE_192,8,3            ; @AES_KEYSIZE_192
	.comm	_RK_CRYPTO_AES_192BIT_key,4,2   ; @RK_CRYPTO_AES_192BIT_key
	.comm	_AES_KEYSIZE_256,8,3            ; @AES_KEYSIZE_256
	.comm	_RK_CRYPTO_AES_256BIT_key,4,2   ; @RK_CRYPTO_AES_256BIT_key
	.comm	_RK_CRYPTO_AES_CTRL,4,2         ; @RK_CRYPTO_AES_CTRL
	.comm	_RK_CRYPTO_AES_IV_0,8,3         ; @RK_CRYPTO_AES_IV_0
	.comm	_RK_CRYPTO_BYTESWAP_BTFIFO,8,3  ; @RK_CRYPTO_BYTESWAP_BTFIFO
	.comm	_RK_CRYPTO_BYTESWAP_BRFIFO,8,3  ; @RK_CRYPTO_BYTESWAP_BRFIFO
	.comm	_RK_CRYPTO_CONF,4,2             ; @RK_CRYPTO_CONF
	.comm	_RK_CRYPTO_INTENA,4,2           ; @RK_CRYPTO_INTENA
	.comm	_RK_CRYPTO_BCDMA_ERR_ENA,8,3    ; @RK_CRYPTO_BCDMA_ERR_ENA
	.comm	_RK_CRYPTO_BCDMA_DONE_ENA,8,3   ; @RK_CRYPTO_BCDMA_DONE_ENA
	.no_dead_strip	_rk_ablk_hw_init
.subsections_via_symbols
