	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk_crypto_probe
_rk_crypto_probe:                       ## @rk_crypto_probe
	.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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$104, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_reset_control_get
	movq	%rax, 96(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	96(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_3
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_3:
	callq	_reset_control_assert
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movq	96(%r12), %rdi
	callq	_reset_control_deassert
	movq	_rk_crypto_action@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_devm_add_action_or_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	88(%r12), %rdi
	callq	_spin_lock_init
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 80(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	80(%r12), %rdi
	jmp	LBB0_14
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 72(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	72(%r12), %rdi
	jmp	LBB0_14
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 64(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	64(%r12), %rdi
	jmp	LBB0_14
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 56(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	56(%r12), %rdi
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 48(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	48(%r12), %rdi
	jmp	LBB0_14
LBB0_15:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, (%r12)
	testl	%eax, %eax
	js	LBB0_16
## %bb.17:
	movq	_rk_crypto_irq_handle@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str.6(%rip), %r8
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %ebx
	movq	40(%r12), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_22
LBB0_16:
	movq	40(%r12), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_warn
	movl	(%r12), %ebx
	jmp	LBB0_22
LBB0_19:
	movq	%r14, 40(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	leaq	12(%r12), %r15
	movq	_rk_crypto_queue_task_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_tasklet_init
	leaq	8(%r12), %r13
	movq	_rk_crypto_done_task_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_tasklet_init
	movq	%r12, %rdi
	addq	$36, %rdi
	movl	$50, %esi
	callq	_crypto_init_queue
	movq	_rk_crypto_enable_clk@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	_rk_crypto_disable_clk@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_rk_load_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_rk_unload_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_rk_crypto_enqueue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	$0, 4(%r12)
	movq	%r12, %rdi
	callq	_rk_crypto_register
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_tasklet_kill
	movq	%r13, %rdi
	callq	_tasklet_kill
	jmp	LBB0_22
LBB0_21:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"crypto-rst"

	.comm	_rk_crypto_action,4,2           ## @rk_crypto_action
L_.str.1:                               ## @.str.1
	.asciz	"aclk"

L_.str.2:                               ## @.str.2
	.asciz	"hclk"

L_.str.3:                               ## @.str.3
	.asciz	"sclk"

L_.str.4:                               ## @.str.4
	.asciz	"apb_pclk"

L_.str.5:                               ## @.str.5
	.asciz	"control Interrupt is not available.\n"

	.comm	_rk_crypto_irq_handle,4,2       ## @rk_crypto_irq_handle
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.6:                               ## @.str.6
	.asciz	"rk-crypto"

L_.str.7:                               ## @.str.7
	.asciz	"irq request failed.\n"

	.comm	_rk_crypto_queue_task_cb,4,2    ## @rk_crypto_queue_task_cb
	.comm	_rk_crypto_done_task_cb,4,2     ## @rk_crypto_done_task_cb
	.comm	_rk_crypto_enable_clk,4,2       ## @rk_crypto_enable_clk
	.comm	_rk_crypto_disable_clk,4,2      ## @rk_crypto_disable_clk
	.comm	_rk_load_data,4,2               ## @rk_load_data
	.comm	_rk_unload_data,4,2             ## @rk_unload_data
	.comm	_rk_crypto_enqueue,4,2          ## @rk_crypto_enqueue
L_.str.8:                               ## @.str.8
	.asciz	"err in register alg"

L_.str.9:                               ## @.str.9
	.asciz	"Crypto Accelerator successfully registered\n"

	.no_dead_strip	_rk_crypto_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk_crypto_probe
_rk_crypto_probe:                       ; @rk_crypto_probe
	.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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #104
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_reset_control_get
	str	x0, [x20, #96]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #96]
	cbz	x8, LBB0_4
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
	b	_PTR_ERR
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_4:
	bl	_reset_control_assert
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	x0, [x20, #96]
	bl	_reset_control_deassert
Lloh8:
	adrp	x8, _rk_crypto_action@GOTPAGE
Lloh9:
	ldr	x8, [x8, _rk_crypto_action@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_devm_add_action_or_reset
	mov	x21, x0
	cbz	w0, LBB0_6
LBB0_5:
	mov	x0, x21
	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_6:
	add	x0, x20, #88
	bl	_spin_lock_init
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x20, #80]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x20, #80]
	b	LBB0_2
LBB0_8:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #72]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x0, [x20, #72]
	b	LBB0_2
LBB0_10:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x0, [x20, #64]
	b	LBB0_2
LBB0_12:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x0, [x20, #56]
	b	LBB0_2
LBB0_14:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.15:
	ldr	x0, [x20, #48]
	b	LBB0_2
LBB0_16:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	str	w0, [x20]
	tbnz	w0, #31, LBB0_19
; %bb.17:
	mov	x1, x0
Lloh19:
	adrp	x8, _rk_crypto_irq_handle@GOTPAGE
Lloh20:
	ldr	x8, [x8, _rk_crypto_irq_handle@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
Lloh25:
	adrp	x4, l_.str.6@PAGE
Lloh26:
	add	x4, x4, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x5, x19
	bl	_devm_request_irq
	cbz	w0, LBB0_20
; %bb.18:
	mov	x21, x0
	ldr	x0, [x20, #40]
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_19:
	ldr	x0, [x20, #40]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_warn
	ldr	w21, [x20]
	b	LBB0_5
LBB0_20:
	str	x19, [x20, #40]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	add	x21, x20, #12
Lloh31:
	adrp	x8, _rk_crypto_queue_task_cb@GOTPAGE
Lloh32:
	ldr	x8, [x8, _rk_crypto_queue_task_cb@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_tasklet_init
	add	x22, x20, #8
Lloh34:
	adrp	x8, _rk_crypto_done_task_cb@GOTPAGE
Lloh35:
	ldr	x8, [x8, _rk_crypto_done_task_cb@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x20
	bl	_tasklet_init
	add	x0, x20, #36
	mov	w1, #50
	bl	_crypto_init_queue
Lloh37:
	adrp	x8, _rk_crypto_enable_clk@GOTPAGE
Lloh38:
	ldr	x8, [x8, _rk_crypto_enable_clk@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [x20, #32]
Lloh40:
	adrp	x8, _rk_crypto_disable_clk@GOTPAGE
Lloh41:
	ldr	x8, [x8, _rk_crypto_disable_clk@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _rk_load_data@GOTPAGE
Lloh44:
	ldr	x9, [x9, _rk_load_data@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
Lloh46:
	adrp	x8, _rk_unload_data@GOTPAGE
Lloh47:
	ldr	x8, [x8, _rk_unload_data@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	adrp	x9, _rk_crypto_enqueue@GOTPAGE
Lloh50:
	ldr	x9, [x9, _rk_crypto_enqueue@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
	str	wzr, [x20, #4]
	mov	x0, x20
	bl	_rk_crypto_register
	cbz	w0, LBB0_22
; %bb.21:
	mov	x20, x0
Lloh52:
	adrp	x1, l_.str.8@PAGE
Lloh53:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	bl	_tasklet_kill
	mov	x0, x22
	bl	_tasklet_kill
	mov	x21, x20
	b	LBB0_5
LBB0_22:
Lloh54:
	adrp	x1, l_.str.9@PAGE
Lloh55:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w21, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"crypto-rst"

	.comm	_rk_crypto_action,4,2           ; @rk_crypto_action
l_.str.1:                               ; @.str.1
	.asciz	"aclk"

l_.str.2:                               ; @.str.2
	.asciz	"hclk"

l_.str.3:                               ; @.str.3
	.asciz	"sclk"

l_.str.4:                               ; @.str.4
	.asciz	"apb_pclk"

l_.str.5:                               ; @.str.5
	.asciz	"control Interrupt is not available.\n"

	.comm	_rk_crypto_irq_handle,4,2       ; @rk_crypto_irq_handle
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.6:                               ; @.str.6
	.asciz	"rk-crypto"

l_.str.7:                               ; @.str.7
	.asciz	"irq request failed.\n"

	.comm	_rk_crypto_queue_task_cb,4,2    ; @rk_crypto_queue_task_cb
	.comm	_rk_crypto_done_task_cb,4,2     ; @rk_crypto_done_task_cb
	.comm	_rk_crypto_enable_clk,4,2       ; @rk_crypto_enable_clk
	.comm	_rk_crypto_disable_clk,4,2      ; @rk_crypto_disable_clk
	.comm	_rk_load_data,4,2               ; @rk_load_data
	.comm	_rk_unload_data,4,2             ; @rk_unload_data
	.comm	_rk_crypto_enqueue,4,2          ; @rk_crypto_enqueue
l_.str.8:                               ; @.str.8
	.asciz	"err in register alg"

l_.str.9:                               ; @.str.9
	.asciz	"Crypto Accelerator successfully registered\n"

	.no_dead_strip	_rk_crypto_probe
.subsections_via_symbols
