	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spacc_probe
_spacc_probe:                           ## @spacc_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$152, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %r13
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_SPACC_CRYPTO_IPSEC_MAX_CTXS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 144(%r15)
	movq	_SPACC_CRYPTO_IPSEC_CIPHER_PG_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 140(%r15)
	movq	_SPACC_CRYPTO_IPSEC_HASH_PG_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 136(%r15)
	movq	_SPACC_CRYPTO_IPSEC_FIFO_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_ipsec_engine_algs@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 56(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 4(%r15)
	movq	_ipsec_engine_aeads@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 32(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 8(%r15)
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	_SPACC_CRYPTO_L2_MAX_CTXS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 144(%r15)
	movq	_SPACC_CRYPTO_L2_CIPHER_PG_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 140(%r15)
	movq	_SPACC_CRYPTO_L2_HASH_PG_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 136(%r15)
	movq	_SPACC_CRYPTO_L2_FIFO_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_l2_engine_algs@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 56(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 4(%r15)
LBB0_5:
	movq	%r14, %rdi
	callq	_dev_name
	movl	%eax, 112(%r15)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 96(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	96(%r15), %rdi
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movl	(%rax), %esi
	movq	_spacc_spacc_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	112(%r15), %r8d
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movq	%r15, %r9
	callq	_devm_request_irq
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	40(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_13:
	movq	%r14, 40(%r15)
	movq	96(%r15), %rax
	movq	_SPA_CIPH_KEY_BASE_REG_OFFSET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	%rcx, 128(%r15)
	movq	_SPA_HASH_KEY_BASE_REG_OFFSET@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, 120(%r15)
	movl	112(%r15), %edi
	movq	_MAX_DDT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	movq	_SZ_64K@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rsi
	movl	$8, %ecx
	callq	_dmam_pool_create
	movl	%eax, 108(%r15)
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	leaq	104(%r13), %rdi
	callq	_spin_lock_init
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_clk_get
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	16(%r15), %rdi
	jmp	LBB0_7
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_17:
	xorl	%r12d, %r12d
LBB0_18:
	subl	(%rax), %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	16(%r15), %rdi
	callq	_clk_prepare_enable
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_38
LBB0_22:
	movq	_dev_attr_stat_irq_thresh@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_37
## %bb.23:
	movl	(%r15), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movl	%edi, 12(%r15)
	movq	_SPA_IRQ_CTRL_STAT_CNT_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	movq	_SPA_IRQ_CTRL_REG_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	96(%r15), %rsi
	callq	_writel
	movq	_SPA_IRQ_EN_STAT_EN@GOTPCREL(%rip), %rax
	movq	_SPA_IRQ_EN_GLBL_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_SPA_IRQ_EN_REG_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	96(%r15), %rsi
	callq	_writel
	leaq	24(%r13), %rdi
	movq	_spacc_packet_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_timer_setup
	leaq	88(%r13), %rdi
	callq	_INIT_LIST_HEAD
	leaq	84(%r13), %rdi
	callq	_INIT_LIST_HEAD
	leaq	80(%r13), %rdi
	callq	_INIT_LIST_HEAD
	movq	$0, 72(%r15)
	leaq	68(%r13), %rdi
	movq	_spacc_spacc_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_tasklet_init
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	leaq	64(%r13), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_INIT_LIST_HEAD
	cmpl	$0, 4(%r15)
	jle	LBB0_29
## %bb.24:
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	jmp	LBB0_27
LBB0_25:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	56(%r15), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$4, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	movq	40(%r15), %rdi
	movq	56(%r15), %rax
	movl	(%rax,%rbx), %edx
	leaq	L_.str.8(%rip), %rsi
	callq	_dev_dbg
	xorl	%r12d, %r12d
LBB0_26:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movslq	4(%r15), %rax
	addq	$16, %rbx
	cmpq	%rax, %rcx
	jge	LBB0_29
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	56(%r15), %rdi
	movq	%r15, 8(%rdi,%rbx)
	addq	%rbx, %rdi
	callq	_crypto_register_alg
	testl	%eax, %eax
	je	LBB0_25
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	40(%r15), %rdi
	movq	56(%r15), %rax
	movl	(%rax,%rbx), %edx
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_26
LBB0_29:
	addq	$48, %r13
	movq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	cmpl	$0, 8(%r15)
	jle	LBB0_35
## %bb.30:
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	jmp	LBB0_33
LBB0_31:                                ##   in Loop: Header=BB0_33 Depth=1
	movq	32(%r15), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$4, %rdi
	movq	%r13, %rsi
	callq	_list_add_tail
	movq	32(%r15), %rax
	movq	40(%r15), %rdi
	movl	(%rax,%rbx), %edx
	leaq	L_.str.8(%rip), %rsi
	callq	_dev_dbg
	xorl	%r12d, %r12d
LBB0_32:                                ##   in Loop: Header=BB0_33 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movslq	8(%r15), %rax
	addq	$16, %rbx
	cmpq	%rax, %rcx
	jge	LBB0_35
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	32(%r15), %rdi
	movq	%r15, 8(%rdi,%rbx)
	addq	%rbx, %rdi
	callq	_crypto_register_aead
	testl	%eax, %eax
	je	LBB0_31
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	32(%r15), %rax
	movq	40(%r15), %rdi
	movl	(%rax,%rbx), %edx
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_32
LBB0_35:
	testl	%r12d, %r12d
	je	LBB0_39
## %bb.36:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_del_timer_sync
	movq	_dev_attr_stat_irq_thresh@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_file
LBB0_37:
	movq	16(%r15), %rdi
	callq	_clk_disable_unprepare
LBB0_38:
	movq	16(%r15), %rdi
	callq	_clk_put
	jmp	LBB0_19
LBB0_39:
	xorl	%r12d, %r12d
	jmp	LBB0_19
	.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	"picochip,spacc-ipsec"

	.comm	_SPACC_CRYPTO_IPSEC_MAX_CTXS,4,2 ## @SPACC_CRYPTO_IPSEC_MAX_CTXS
	.comm	_SPACC_CRYPTO_IPSEC_CIPHER_PG_SZ,4,2 ## @SPACC_CRYPTO_IPSEC_CIPHER_PG_SZ
	.comm	_SPACC_CRYPTO_IPSEC_HASH_PG_SZ,4,2 ## @SPACC_CRYPTO_IPSEC_HASH_PG_SZ
	.comm	_SPACC_CRYPTO_IPSEC_FIFO_SZ,4,2 ## @SPACC_CRYPTO_IPSEC_FIFO_SZ
	.comm	_ipsec_engine_algs,8,3          ## @ipsec_engine_algs
	.comm	_ipsec_engine_aeads,8,3         ## @ipsec_engine_aeads
L_.str.1:                               ## @.str.1
	.asciz	"picochip,spacc-l2"

	.comm	_SPACC_CRYPTO_L2_MAX_CTXS,4,2   ## @SPACC_CRYPTO_L2_MAX_CTXS
	.comm	_SPACC_CRYPTO_L2_CIPHER_PG_SZ,4,2 ## @SPACC_CRYPTO_L2_CIPHER_PG_SZ
	.comm	_SPACC_CRYPTO_L2_HASH_PG_SZ,4,2 ## @SPACC_CRYPTO_L2_HASH_PG_SZ
	.comm	_SPACC_CRYPTO_L2_FIFO_SZ,4,2    ## @SPACC_CRYPTO_L2_FIFO_SZ
	.comm	_l2_engine_algs,8,3             ## @l2_engine_algs
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
L_.str.2:                               ## @.str.2
	.asciz	"no memory/irq resource for engine\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_spacc_spacc_irq,4,2            ## @spacc_spacc_irq
L_.str.3:                               ## @.str.3
	.asciz	"failed to request IRQ\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_SPA_CIPH_KEY_BASE_REG_OFFSET,8,3 ## @SPA_CIPH_KEY_BASE_REG_OFFSET
	.comm	_SPA_HASH_KEY_BASE_REG_OFFSET,8,3 ## @SPA_HASH_KEY_BASE_REG_OFFSET
	.comm	_MAX_DDT_LEN,4,2                ## @MAX_DDT_LEN
	.comm	_SZ_64K,4,2                     ## @SZ_64K
L_.str.4:                               ## @.str.4
	.asciz	"ref"

L_.str.5:                               ## @.str.5
	.asciz	"clk unavailable\n"

L_.str.6:                               ## @.str.6
	.asciz	"unable to prepare/enable clk\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_dev_attr_stat_irq_thresh,4,2   ## @dev_attr_stat_irq_thresh
	.comm	_SPA_IRQ_CTRL_STAT_CNT_OFFSET,4,2 ## @SPA_IRQ_CTRL_STAT_CNT_OFFSET
	.comm	_SPA_IRQ_CTRL_REG_OFFSET,8,3    ## @SPA_IRQ_CTRL_REG_OFFSET
	.comm	_SPA_IRQ_EN_STAT_EN,4,2         ## @SPA_IRQ_EN_STAT_EN
	.comm	_SPA_IRQ_EN_GLBL_EN,4,2         ## @SPA_IRQ_EN_GLBL_EN
	.comm	_SPA_IRQ_EN_REG_OFFSET,8,3      ## @SPA_IRQ_EN_REG_OFFSET
	.comm	_spacc_packet_timeout,4,2       ## @spacc_packet_timeout
	.comm	_spacc_spacc_complete,4,2       ## @spacc_spacc_complete
L_.str.7:                               ## @.str.7
	.asciz	"failed to register alg \"%s\"\n"

L_.str.8:                               ## @.str.8
	.asciz	"registered alg \"%s\"\n"

	.no_dead_strip	_spacc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spacc_probe
_spacc_probe:                           ; @spacc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #152
	bl	_devm_kzalloc
	cbz	x0, LBB0_16
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_of_device_is_compatible
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _SPACC_CRYPTO_IPSEC_MAX_CTXS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPACC_CRYPTO_IPSEC_MAX_CTXS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #144]
Lloh8:
	adrp	x8, _SPACC_CRYPTO_IPSEC_CIPHER_PG_SZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SPACC_CRYPTO_IPSEC_CIPHER_PG_SZ@GOTPAGEOFF]
Lloh10:
	adrp	x9, _SPACC_CRYPTO_IPSEC_HASH_PG_SZ@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SPACC_CRYPTO_IPSEC_HASH_PG_SZ@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #136]
Lloh14:
	adrp	x8, _SPACC_CRYPTO_IPSEC_FIFO_SZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SPACC_CRYPTO_IPSEC_FIFO_SZ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh17:
	adrp	x8, _ipsec_engine_algs@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ipsec_engine_algs@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	str	x0, [x19, #56]
	bl	_ARRAY_SIZE
	str	w0, [x19, #4]
Lloh20:
	adrp	x8, _ipsec_engine_aeads@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ipsec_engine_aeads@GOTPAGEOFF]
Lloh22:
	ldr	x0, [x8]
	str	x0, [x19, #32]
	bl	_ARRAY_SIZE
	str	w0, [x19, #8]
	b	LBB0_5
LBB0_3:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_of_device_is_compatible
	cbz	x0, LBB0_11
; %bb.4:
Lloh25:
	adrp	x8, _SPACC_CRYPTO_L2_MAX_CTXS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SPACC_CRYPTO_L2_MAX_CTXS@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x19, #144]
Lloh28:
	adrp	x8, _SPACC_CRYPTO_L2_CIPHER_PG_SZ@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SPACC_CRYPTO_L2_CIPHER_PG_SZ@GOTPAGEOFF]
Lloh30:
	adrp	x9, _SPACC_CRYPTO_L2_HASH_PG_SZ@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SPACC_CRYPTO_L2_HASH_PG_SZ@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #136]
Lloh34:
	adrp	x8, _SPACC_CRYPTO_L2_FIFO_SZ@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SPACC_CRYPTO_L2_FIFO_SZ@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh37:
	adrp	x8, _l2_engine_algs@GOTPAGE
Lloh38:
	ldr	x8, [x8, _l2_engine_algs@GOTPAGEOFF]
Lloh39:
	ldr	x0, [x8]
	str	x0, [x19, #56]
	bl	_ARRAY_SIZE
	str	w0, [x19, #4]
LBB0_5:
	mov	x0, x20
	bl	_dev_name
	str	w0, [x19, #112]
	mov	x0, x20
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x19, #96]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x0, [x19, #96]
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_8:
Lloh40:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_12
; %bb.9:
	ldr	w1, [x0]
Lloh43:
	adrp	x8, _spacc_spacc_irq@GOTPAGE
Lloh44:
	ldr	x8, [x8, _spacc_spacc_irq@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	ldr	w4, [x19, #112]
	mov	x0, x20
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	cbz	x0, LBB0_13
; %bb.10:
	ldr	x0, [x19, #40]
Lloh46:
	adrp	x1, l_.str.3@PAGE
Lloh47:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh48:
	adrp	x8, _EBUSY@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_17
LBB0_11:
Lloh50:
	adrp	x8, _EINVAL@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
Lloh52:
	adrp	x1, l_.str.2@PAGE
Lloh53:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh54:
	adrp	x8, _ENXIO@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_17
LBB0_13:
	str	x20, [x19, #40]
	ldr	x8, [x19, #96]
Lloh56:
	adrp	x9, _SPA_CIPH_KEY_BASE_REG_OFFSET@GOTPAGE
Lloh57:
	ldr	x9, [x9, _SPA_CIPH_KEY_BASE_REG_OFFSET@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	add	x9, x9, x8
Lloh59:
	adrp	x10, _SPA_HASH_KEY_BASE_REG_OFFSET@GOTPAGE
Lloh60:
	ldr	x10, [x10, _SPA_HASH_KEY_BASE_REG_OFFSET@GOTPAGEOFF]
Lloh61:
	ldr	x10, [x10]
	add	x8, x10, x8
	stp	x8, x9, [x19, #120]
Lloh62:
	adrp	x8, _MAX_DDT_LEN@GOTPAGE
Lloh63:
	ldr	x8, [x8, _MAX_DDT_LEN@GOTPAGEOFF]
	ldr	w0, [x19, #112]
Lloh64:
	ldr	w8, [x8]
	lsl	w2, w8, #2
Lloh65:
	adrp	x8, _SZ_64K@GOTPAGE
Lloh66:
	ldr	x8, [x8, _SZ_64K@GOTPAGEOFF]
Lloh67:
	ldr	w4, [x8]
	mov	x1, x20
	mov	w3, #8
	bl	_dmam_pool_create
	str	w0, [x19, #108]
	cbz	w0, LBB0_16
; %bb.14:
	add	x0, x19, #104
	bl	_spin_lock_init
Lloh68:
	adrp	x1, l_.str.4@PAGE
Lloh69:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_clk_get
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.15:
Lloh70:
	adrp	x1, l_.str.5@PAGE
Lloh71:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	ldr	x0, [x19, #16]
	b	LBB0_7
LBB0_16:
Lloh72:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh73:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_18:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_19:
	ldr	x0, [x19, #16]
	bl	_clk_prepare_enable
	cbz	x0, LBB0_21
; %bb.20:
Lloh74:
	adrp	x1, l_.str.6@PAGE
Lloh75:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_info
Lloh76:
	adrp	x8, _EIO@GOTPAGE
Lloh77:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh78:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_37
LBB0_21:
Lloh79:
	adrp	x1, _dev_attr_stat_irq_thresh@GOTPAGE
Lloh80:
	ldr	x1, [x1, _dev_attr_stat_irq_thresh@GOTPAGEOFF]
	mov	x0, x20
	bl	_device_create_file
	mov	x22, x0
	cbnz	w0, LBB0_36
; %bb.22:
	ldr	w8, [x19]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [x19, #12]
Lloh81:
	adrp	x9, _SPA_IRQ_CTRL_STAT_CNT_OFFSET@GOTPAGE
Lloh82:
	ldr	x9, [x9, _SPA_IRQ_CTRL_STAT_CNT_OFFSET@GOTPAGEOFF]
Lloh83:
	ldr	w9, [x9]
	lsl	w0, w8, w9
	ldr	x8, [x19, #96]
Lloh84:
	adrp	x9, _SPA_IRQ_CTRL_REG_OFFSET@GOTPAGE
Lloh85:
	ldr	x9, [x9, _SPA_IRQ_CTRL_REG_OFFSET@GOTPAGEOFF]
Lloh86:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh87:
	adrp	x8, _SPA_IRQ_EN_STAT_EN@GOTPAGE
Lloh88:
	ldr	x8, [x8, _SPA_IRQ_EN_STAT_EN@GOTPAGEOFF]
Lloh89:
	ldr	w8, [x8]
Lloh90:
	adrp	x9, _SPA_IRQ_EN_GLBL_EN@GOTPAGE
Lloh91:
	ldr	x9, [x9, _SPA_IRQ_EN_GLBL_EN@GOTPAGEOFF]
Lloh92:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19, #96]
Lloh93:
	adrp	x9, _SPA_IRQ_EN_REG_OFFSET@GOTPAGE
Lloh94:
	ldr	x9, [x9, _SPA_IRQ_EN_REG_OFFSET@GOTPAGEOFF]
Lloh95:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	add	x21, x19, #24
Lloh96:
	adrp	x8, _spacc_packet_timeout@GOTPAGE
Lloh97:
	ldr	x8, [x8, _spacc_packet_timeout@GOTPAGEOFF]
Lloh98:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_timer_setup
	add	x0, x19, #88
	bl	_INIT_LIST_HEAD
	add	x0, x19, #84
	bl	_INIT_LIST_HEAD
	add	x0, x19, #80
	bl	_INIT_LIST_HEAD
	str	xzr, [x19, #72]
	add	x0, x19, #68
Lloh99:
	adrp	x8, _spacc_spacc_complete@GOTPAGE
Lloh100:
	ldr	x8, [x8, _spacc_spacc_complete@GOTPAGEOFF]
Lloh101:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_tasklet_init
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh102:
	adrp	x8, _EINVAL@GOTPAGE
Lloh103:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh104:
	ldr	w8, [x8]
	neg	w22, w8
	add	x23, x19, #64
	mov	x0, x23
	bl	_INIT_LIST_HEAD
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.23:
	mov	x26, #0
	mov	x27, #0
Lloh105:
	adrp	x24, l_.str.8@PAGE
Lloh106:
	add	x24, x24, l_.str.8@PAGEOFF
Lloh107:
	adrp	x25, l_.str.7@PAGE
Lloh108:
	add	x25, x25, l_.str.7@PAGEOFF
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	x8, [x19, #56]
	add	x8, x8, x26
	add	x0, x8, #4
	mov	x1, x23
	bl	_list_add_tail
	ldr	x0, [x19, #40]
	ldr	x8, [x19, #56]
	ldr	w2, [x8, x26]
	mov	x1, x24
	bl	_dev_dbg
	mov	w22, #0
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x19, #4]
	add	x26, x26, #16
	cmp	x27, x8
	b.ge	LBB0_28
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	add	x0, x8, x26
	str	x19, [x0, #8]
	bl	_crypto_register_alg
	cbz	w0, LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x0, [x19, #40]
	ldr	x8, [x19, #56]
	ldr	w8, [x8, x26]
	str	x8, [sp]
	mov	x1, x25
	bl	_dev_err
	b	LBB0_25
LBB0_28:
	add	x23, x19, #48
	mov	x0, x23
	bl	_INIT_LIST_HEAD
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_34
; %bb.29:
	mov	x26, #0
	mov	x27, #0
Lloh109:
	adrp	x24, l_.str.8@PAGE
Lloh110:
	add	x24, x24, l_.str.8@PAGEOFF
Lloh111:
	adrp	x25, l_.str.7@PAGE
Lloh112:
	add	x25, x25, l_.str.7@PAGEOFF
	b	LBB0_32
LBB0_30:                                ;   in Loop: Header=BB0_32 Depth=1
	ldr	x8, [x19, #32]
	add	x8, x8, x26
	add	x0, x8, #4
	mov	x1, x23
	bl	_list_add_tail
	ldp	x8, x0, [x19, #32]
	ldr	w2, [x8, x26]
	mov	x1, x24
	bl	_dev_dbg
	mov	w22, #0
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x19, #8]
	add	x26, x26, #16
	cmp	x27, x8
	b.ge	LBB0_34
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x0, x8, x26
	str	x19, [x0, #8]
	bl	_crypto_register_aead
	cbz	w0, LBB0_30
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	ldp	x8, x0, [x19, #32]
	ldr	w8, [x8, x26]
	str	x8, [sp]
	mov	x1, x25
	bl	_dev_err
	b	LBB0_31
LBB0_34:
	cbz	w22, LBB0_18
; %bb.35:
	mov	x0, x21
	bl	_del_timer_sync
Lloh113:
	adrp	x1, _dev_attr_stat_irq_thresh@GOTPAGE
Lloh114:
	ldr	x1, [x1, _dev_attr_stat_irq_thresh@GOTPAGEOFF]
	mov	x0, x20
	bl	_device_remove_file
LBB0_36:
	ldr	x0, [x19, #16]
	bl	_clk_disable_unprepare
LBB0_37:
	ldr	x0, [x19, #16]
	bl	_clk_put
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpAdd	Lloh107, Lloh108
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpAdd	Lloh111, Lloh112
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpLdrGot	Lloh113, Lloh114
	.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	"picochip,spacc-ipsec"

	.comm	_SPACC_CRYPTO_IPSEC_MAX_CTXS,4,2 ; @SPACC_CRYPTO_IPSEC_MAX_CTXS
	.comm	_SPACC_CRYPTO_IPSEC_CIPHER_PG_SZ,4,2 ; @SPACC_CRYPTO_IPSEC_CIPHER_PG_SZ
	.comm	_SPACC_CRYPTO_IPSEC_HASH_PG_SZ,4,2 ; @SPACC_CRYPTO_IPSEC_HASH_PG_SZ
	.comm	_SPACC_CRYPTO_IPSEC_FIFO_SZ,4,2 ; @SPACC_CRYPTO_IPSEC_FIFO_SZ
	.comm	_ipsec_engine_algs,8,3          ; @ipsec_engine_algs
	.comm	_ipsec_engine_aeads,8,3         ; @ipsec_engine_aeads
l_.str.1:                               ; @.str.1
	.asciz	"picochip,spacc-l2"

	.comm	_SPACC_CRYPTO_L2_MAX_CTXS,4,2   ; @SPACC_CRYPTO_L2_MAX_CTXS
	.comm	_SPACC_CRYPTO_L2_CIPHER_PG_SZ,4,2 ; @SPACC_CRYPTO_L2_CIPHER_PG_SZ
	.comm	_SPACC_CRYPTO_L2_HASH_PG_SZ,4,2 ; @SPACC_CRYPTO_L2_HASH_PG_SZ
	.comm	_SPACC_CRYPTO_L2_FIFO_SZ,4,2    ; @SPACC_CRYPTO_L2_FIFO_SZ
	.comm	_l2_engine_algs,8,3             ; @l2_engine_algs
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
l_.str.2:                               ; @.str.2
	.asciz	"no memory/irq resource for engine\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_spacc_spacc_irq,4,2            ; @spacc_spacc_irq
l_.str.3:                               ; @.str.3
	.asciz	"failed to request IRQ\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_SPA_CIPH_KEY_BASE_REG_OFFSET,8,3 ; @SPA_CIPH_KEY_BASE_REG_OFFSET
	.comm	_SPA_HASH_KEY_BASE_REG_OFFSET,8,3 ; @SPA_HASH_KEY_BASE_REG_OFFSET
	.comm	_MAX_DDT_LEN,4,2                ; @MAX_DDT_LEN
	.comm	_SZ_64K,4,2                     ; @SZ_64K
l_.str.4:                               ; @.str.4
	.asciz	"ref"

l_.str.5:                               ; @.str.5
	.asciz	"clk unavailable\n"

l_.str.6:                               ; @.str.6
	.asciz	"unable to prepare/enable clk\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_dev_attr_stat_irq_thresh,4,2   ; @dev_attr_stat_irq_thresh
	.comm	_SPA_IRQ_CTRL_STAT_CNT_OFFSET,4,2 ; @SPA_IRQ_CTRL_STAT_CNT_OFFSET
	.comm	_SPA_IRQ_CTRL_REG_OFFSET,8,3    ; @SPA_IRQ_CTRL_REG_OFFSET
	.comm	_SPA_IRQ_EN_STAT_EN,4,2         ; @SPA_IRQ_EN_STAT_EN
	.comm	_SPA_IRQ_EN_GLBL_EN,4,2         ; @SPA_IRQ_EN_GLBL_EN
	.comm	_SPA_IRQ_EN_REG_OFFSET,8,3      ; @SPA_IRQ_EN_REG_OFFSET
	.comm	_spacc_packet_timeout,4,2       ; @spacc_packet_timeout
	.comm	_spacc_spacc_complete,4,2       ; @spacc_spacc_complete
l_.str.7:                               ; @.str.7
	.asciz	"failed to register alg \"%s\"\n"

l_.str.8:                               ; @.str.8
	.asciz	"registered alg \"%s\"\n"

	.no_dead_strip	_spacc_probe
.subsections_via_symbols
