	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sahara_probe
_sahara_probe:                          ## @sahara_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), %r13
	movl	(%r13), %edx
	movl	$144, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movq	%r14, 136(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 128(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	128(%r15), %rdi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movq	_sahara_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r15), %rdi
	jmp	LBB0_3
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	16(%r15), %rdi
	jmp	LBB0_3
LBB0_14:
	movq	_SAHARA_MAX_HW_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movq	112(%r15), %rdx
	movl	(%r13), %ecx
	movq	%r14, %rdi
	callq	_dmam_alloc_coherent
	movq	120(%r15), %rcx
	movq	%rax, (%rcx)
	movq	120(%r15), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.15:
	incq	%rcx
	movq	%rcx, 8(%rax)
	movq	112(%r15), %rax
	movq	(%rax), %rcx
	addq	$4, %rcx
	movq	%rcx, 8(%rax)
	movq	_AES_KEYSIZE_128@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	addl	%esi, %esi
	leaq	80(%r15), %rdx
	movl	(%r13), %ecx
	movq	%r14, %rdi
	callq	_dmam_alloc_coherent
	movq	%rax, 96(%r15)
	testq	%rax, %rax
	je	LBB0_23
## %bb.16:
	movslq	(%rbx), %rcx
	addq	%rcx, %rax
	movq	%rax, 104(%r15)
	addq	80(%r15), %rcx
	movq	%rcx, 88(%r15)
	movq	_SHA256_DIGEST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	$4, %esi
	leaq	72(%r15), %rdx
	movl	(%r13), %ecx
	movq	%r14, %rdi
	callq	_dmam_alloc_coherent
	movq	%rax, 64(%r15)
	testq	%rax, %rax
	je	LBB0_24
## %bb.17:
	movq	_SAHARA_MAX_HW_LINK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	shll	$2, %esi
	movq	56(%r15), %rdx
	movl	(%r13), %ecx
	movq	%r14, %rdi
	callq	_dmam_alloc_coherent
	movq	48(%r15), %rcx
	movq	%rax, (%rcx)
	movq	48(%r15), %rcx
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_25
## %bb.18:
	movl	(%rbx), %r8d
	cmpl	$2, %r8d
	jl	LBB0_32
## %bb.19:
	movq	56(%r15), %rsi
	movq	(%rsi), %rdi
	addq	$4, %rdi
	movq	%rdi, 8(%rsi)
	incq	%rdx
	movq	%rdx, 8(%rcx)
	cmpl	$2, %r8d
	je	LBB0_32
## %bb.20:
	cmpl	$3, %r8d
	jne	LBB0_27
## %bb.21:
	movl	$1, %ecx
	movl	$2, %edx
	jmp	LBB0_30
LBB0_22:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_26
LBB0_23:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_26
LBB0_24:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_26
LBB0_25:
	leaq	L_.str.8(%rip), %rsi
LBB0_26:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_27:
	leaq	-2(%r8), %rdx
	andq	$-2, %rdx
	negq	%rdx
	movl	$1, %ecx
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%r15), %rsi
	movq	56(%r15), %rdi
	movq	(%rsi,%rcx,8), %rbx
	movq	(%rdi,%rcx,8), %rax
	addq	$4, %rax
	movq	%rax, 8(%rdi,%rcx,8)
	incq	%rbx
	movq	%rbx, 8(%rsi,%rcx,8)
	movq	48(%r15), %rax
	movq	56(%r15), %rsi
	movq	8(%rax,%rcx,8), %rdi
	movq	8(%rsi,%rcx,8), %rbx
	addq	$4, %rbx
	movq	%rbx, 16(%rsi,%rcx,8)
	incq	%rdi
	movq	%rdi, 16(%rax,%rcx,8)
	leaq	(%rdx,%rcx), %rax
	addq	$2, %rax
	addq	$2, %rcx
	cmpq	$1, %rax
	jne	LBB0_28
## %bb.29:
	leaq	1(%rcx), %rdx
LBB0_30:
	testb	$1, %r8b
	je	LBB0_32
## %bb.31:
	movq	48(%r15), %rax
	movq	56(%r15), %rsi
	movq	(%rax,%rcx,8), %rcx
	movq	-8(%rsi,%rdx,8), %rdi
	addq	$4, %rdi
	movq	%rdi, (%rsi,%rdx,8)
	incq	%rcx
	movq	%rcx, (%rax,%rdx,8)
LBB0_32:
	leaq	40(%r15), %rdi
	movq	_SAHARA_QUEUE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_crypto_init_queue
	leaq	36(%r15), %rdi
	callq	_mutex_init
	movq	_dev_ptr@GOTPCREL(%rip), %r13
	movq	%r15, (%r13)
	movq	_sahara_queue_manage@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rdx
	movq	%r15, %rsi
	callq	_kthread_run
	movq	%rax, 24(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:
	movq	24(%r15), %rdi
	jmp	LBB0_3
LBB0_34:
	movq	%r15, %rdi
	addq	$32, %rdi
	callq	_init_completion
	movq	8(%r15), %rdi
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.35:
	movq	16(%r15), %rdi
	callq	_clk_prepare_enable
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_46
## %bb.36:
	movq	_SAHARA_REG_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sahara_read
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14), %edi
	leaq	L_.str.10(%rip), %rsi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_39
## %bb.37:
	movq	_SAHARA_VERSION_3@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	je	LBB0_42
## %bb.38:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_42
LBB0_39:
	movl	(%r14), %edi
	leaq	L_.str.11(%rip), %rsi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_41
## %bb.40:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movzbl	%bh, %ebx
	movq	_SAHARA_VERSION_4@GOTPCREL(%rip), %rax
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%r12d, %r12d
	subl	(%rcx), %r12d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	(%rax), %ebx
	cmovel	%edx, %r12d
	jmp	LBB0_42
LBB0_41:
	xorl	%r12d, %r12d
LBB0_42:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	jne	LBB0_44
## %bb.43:
	leaq	L_.str.12(%rip), %rsi
	movq	%r14, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_45
LBB0_44:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	movq	_SAHARA_CMD_RESET@GOTPCREL(%rip), %rax
	movq	_SAHARA_CMD_MODE_BATCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_SAHARA_REG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_sahara_write
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_SAHARA_CONTROL_SET_THROTTLE
	movl	%eax, %r12d
	movl	$8, %edi
	callq	_SAHARA_CONTROL_SET_MAXBURST
	orl	%eax, %r12d
	movq	_SAHARA_CONTROL_RNG_AUTORSD@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_SAHARA_CONTROL_ENABLE_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_SAHARA_REG_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_sahara_write
	movq	%r15, %rdi
	callq	_sahara_register_algs
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_47
LBB0_45:
	movq	24(%r15), %rdi
	callq	_kthread_stop
	movq	$0, (%r13)
	movq	16(%r15), %rdi
	callq	_clk_disable_unprepare
LBB0_46:
	movq	8(%r15), %rdi
	callq	_clk_disable_unprepare
	movl	%r12d, %ebx
	jmp	LBB0_6
LBB0_47:
	leaq	L_.str.13(%rip), %rsi
	movq	%r14, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_dev_info
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sahara_irq_handler,4,2         ## @sahara_irq_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to request irq\n"

L_.str.1:                               ## @.str.1
	.asciz	"ipg"

L_.str.2:                               ## @.str.2
	.asciz	"Could not get ipg clock\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"Could not get ahb clock\n"

	.comm	_SAHARA_MAX_HW_DESC,4,2         ## @SAHARA_MAX_HW_DESC
L_.str.5:                               ## @.str.5
	.asciz	"Could not allocate hw descriptors\n"

	.comm	_AES_KEYSIZE_128,4,2            ## @AES_KEYSIZE_128
L_.str.6:                               ## @.str.6
	.asciz	"Could not allocate memory for key\n"

	.comm	_SHA256_DIGEST_SIZE,4,2         ## @SHA256_DIGEST_SIZE
L_.str.7:                               ## @.str.7
	.asciz	"Could not allocate memory for MDHA context\n"

	.comm	_SAHARA_MAX_HW_LINK,4,2         ## @SAHARA_MAX_HW_LINK
L_.str.8:                               ## @.str.8
	.asciz	"Could not allocate hw links\n"

	.comm	_SAHARA_QUEUE_LENGTH,4,2        ## @SAHARA_QUEUE_LENGTH
	.comm	_dev_ptr,8,3                    ## @dev_ptr
	.comm	_sahara_queue_manage,4,2        ## @sahara_queue_manage
L_.str.9:                               ## @.str.9
	.asciz	"sahara_crypto"

	.comm	_SAHARA_REG_VERSION,4,2         ## @SAHARA_REG_VERSION
L_.str.10:                              ## @.str.10
	.asciz	"fsl,imx27-sahara"

	.comm	_SAHARA_VERSION_3,4,2           ## @SAHARA_VERSION_3
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.11:                              ## @.str.11
	.asciz	"fsl,imx53-sahara"

	.comm	_SAHARA_VERSION_4,4,2           ## @SAHARA_VERSION_4
L_.str.12:                              ## @.str.12
	.asciz	"SAHARA version %d not supported\n"

	.comm	_SAHARA_CMD_RESET,4,2           ## @SAHARA_CMD_RESET
	.comm	_SAHARA_CMD_MODE_BATCH,4,2      ## @SAHARA_CMD_MODE_BATCH
	.comm	_SAHARA_REG_CMD,4,2             ## @SAHARA_REG_CMD
	.comm	_SAHARA_CONTROL_RNG_AUTORSD,4,2 ## @SAHARA_CONTROL_RNG_AUTORSD
	.comm	_SAHARA_CONTROL_ENABLE_INT,4,2  ## @SAHARA_CONTROL_ENABLE_INT
	.comm	_SAHARA_REG_CONTROL,4,2         ## @SAHARA_REG_CONTROL
L_.str.13:                              ## @.str.13
	.asciz	"SAHARA version %d initialized\n"

	.no_dead_strip	_sahara_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sahara_probe
_sahara_probe:                          ; @sahara_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #144
	bl	_devm_kzalloc
	cbz	x0, LBB0_26
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #136]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x20
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x19, #128]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x19, #128]
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_4:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_27
; %bb.5:
Lloh2:
	adrp	x8, _sahara_irq_handler@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sahara_irq_handler@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_dev_name
	mov	x4, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	cbz	w0, LBB0_7
; %bb.6:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_27
LBB0_7:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #8]
	b	LBB0_3
LBB0_9:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #16]
	b	LBB0_3
LBB0_11:
Lloh15:
	adrp	x8, _SAHARA_MAX_HW_DESC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SAHARA_MAX_HW_DESC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	ldr	x2, [x19, #112]
	ldr	w3, [x23]
	mov	x0, x20
	bl	_dmam_alloc_coherent
	ldr	x8, [x19, #120]
	str	x0, [x8]
	ldr	x8, [x19, #120]
	ldr	x9, [x8]
	cbz	x9, LBB0_21
; %bb.12:
	add	x9, x9, #1
	str	x9, [x8, #8]
	ldr	x8, [x19, #112]
	ldr	x9, [x8]
	add	x9, x9, #4
	str	x9, [x8, #8]
Lloh18:
	adrp	x21, _AES_KEYSIZE_128@GOTPAGE
Lloh19:
	ldr	x21, [x21, _AES_KEYSIZE_128@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w1, w8, #1
	add	x2, x19, #80
	ldr	w3, [x23]
	mov	x0, x20
	bl	_dmam_alloc_coherent
	str	x0, [x19, #96]
	cbz	x0, LBB0_22
; %bb.13:
	ldrsw	x8, [x21]
	add	x9, x0, x8
	str	x9, [x19, #104]
	ldr	x9, [x19, #80]
	add	x8, x9, x8
	str	x8, [x19, #88]
Lloh20:
	adrp	x8, _SHA256_DIGEST_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SHA256_DIGEST_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	add	w1, w8, #4
	add	x2, x19, #72
	ldr	w3, [x23]
	mov	x0, x20
	bl	_dmam_alloc_coherent
	str	x0, [x19, #64]
	cbz	x0, LBB0_23
; %bb.14:
Lloh23:
	adrp	x21, _SAHARA_MAX_HW_LINK@GOTPAGE
Lloh24:
	ldr	x21, [x21, _SAHARA_MAX_HW_LINK@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w1, w8, #2
	ldr	x2, [x19, #56]
	ldr	w3, [x23]
	mov	x0, x20
	bl	_dmam_alloc_coherent
	ldr	x8, [x19, #48]
	str	x0, [x8]
	ldr	x8, [x19, #48]
	ldr	x10, [x8]
	cbz	x10, LBB0_24
; %bb.15:
	ldr	w9, [x21]
	cmp	w9, #2
	b.lt	LBB0_19
; %bb.16:
	ldr	x11, [x19, #56]
	ldr	x12, [x11]
	add	x12, x12, #4
	str	x12, [x11, #8]
	add	x10, x10, #1
	str	x10, [x8, #8]
	cmp	w9, #2
	b.eq	LBB0_19
; %bb.17:
	mov	x8, #0
	sub	x9, x9, #2
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #3
	ldp	x11, x12, [x19, #48]
	add	x11, x11, x10
	ldr	x13, [x11, #8]
	add	x10, x12, x10
	ldr	x12, [x10, #8]
	add	x12, x12, #4
	str	x12, [x10, #16]
	add	x10, x13, #1
	str	x10, [x11, #16]
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_18
LBB0_19:
	add	x0, x19, #40
Lloh25:
	adrp	x8, _SAHARA_QUEUE_LENGTH@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SAHARA_QUEUE_LENGTH@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_crypto_init_queue
	add	x0, x19, #36
	bl	_mutex_init
Lloh28:
	adrp	x23, _dev_ptr@GOTPAGE
Lloh29:
	ldr	x23, [x23, _dev_ptr@GOTPAGEOFF]
	str	x19, [x23]
Lloh30:
	adrp	x8, _sahara_queue_manage@GOTPAGE
Lloh31:
	ldr	x8, [x8, _sahara_queue_manage@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x2, l_.str.9@PAGE
Lloh34:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x1, x19
	bl	_kthread_run
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_28
; %bb.20:
	ldr	x0, [x19, #24]
	b	LBB0_3
LBB0_21:
Lloh35:
	adrp	x1, l_.str.5@PAGE
Lloh36:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_25
LBB0_22:
Lloh37:
	adrp	x1, l_.str.6@PAGE
Lloh38:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_25
LBB0_23:
Lloh39:
	adrp	x1, l_.str.7@PAGE
Lloh40:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_25
LBB0_24:
Lloh41:
	adrp	x1, l_.str.8@PAGE
Lloh42:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_25:
	mov	x0, x20
	bl	_dev_err
LBB0_26:
Lloh43:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_27:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_28:
	add	x0, x19, #32
	bl	_init_completion
	ldr	x0, [x19, #8]
	bl	_clk_prepare_enable
	mov	x21, x0
	cbnz	w0, LBB0_27
; %bb.29:
	ldr	x0, [x19, #16]
	bl	_clk_prepare_enable
	mov	x21, x0
	cbnz	w0, LBB0_40
; %bb.30:
Lloh46:
	adrp	x8, _SAHARA_REG_VERSION@GOTPAGE
Lloh47:
	ldr	x8, [x8, _SAHARA_REG_VERSION@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sahara_read
	mov	x24, x0
	ldr	w0, [x20]
Lloh49:
	adrp	x1, l_.str.10@PAGE
Lloh50:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_of_device_is_compatible
Lloh51:
	adrp	x22, _ENODEV@GOTPAGE
Lloh52:
	ldr	x22, [x22, _ENODEV@GOTPAGEOFF]
	cbz	x0, LBB0_33
; %bb.31:
Lloh53:
	adrp	x8, _SAHARA_VERSION_3@GOTPAGE
Lloh54:
	ldr	x8, [x8, _SAHARA_VERSION_3@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_35
; %bb.32:
	ldr	w8, [x22]
	neg	w21, w8
	b	LBB0_36
LBB0_33:
	ldr	w0, [x20]
Lloh56:
	adrp	x1, l_.str.11@PAGE
Lloh57:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_of_device_is_compatible
	cbz	x0, LBB0_35
; %bb.34:
	ubfx	w24, w24, #8, #8
Lloh58:
	adrp	x8, _SAHARA_VERSION_4@GOTPAGE
Lloh59:
	ldr	x8, [x8, _SAHARA_VERSION_4@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	ldr	w9, [x22]
	cmp	w24, w8
	csneg	w21, wzr, w9, eq
	b	LBB0_36
LBB0_35:
	mov	w21, #0
LBB0_36:
	ldr	w8, [x22]
	cmn	w21, w8
	b.ne	LBB0_38
; %bb.37:
	str	x24, [sp]
Lloh61:
	adrp	x1, l_.str.12@PAGE
Lloh62:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_39
LBB0_38:
	str	w24, [x19]
Lloh63:
	adrp	x8, _SAHARA_CMD_RESET@GOTPAGE
Lloh64:
	ldr	x8, [x8, _SAHARA_CMD_RESET@GOTPAGEOFF]
Lloh65:
	adrp	x9, _SAHARA_CMD_MODE_BATCH@GOTPAGE
Lloh66:
	ldr	x9, [x9, _SAHARA_CMD_MODE_BATCH@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
Lloh68:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh69:
	adrp	x8, _SAHARA_REG_CMD@GOTPAGE
Lloh70:
	ldr	x8, [x8, _SAHARA_REG_CMD@GOTPAGEOFF]
Lloh71:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sahara_write
	mov	w0, #0
	bl	_SAHARA_CONTROL_SET_THROTTLE
	mov	x22, x0
	mov	w0, #8
	bl	_SAHARA_CONTROL_SET_MAXBURST
	orr	w8, w0, w22
Lloh72:
	adrp	x9, _SAHARA_CONTROL_RNG_AUTORSD@GOTPAGE
Lloh73:
	ldr	x9, [x9, _SAHARA_CONTROL_RNG_AUTORSD@GOTPAGEOFF]
Lloh74:
	ldr	w9, [x9]
Lloh75:
	adrp	x10, _SAHARA_CONTROL_ENABLE_INT@GOTPAGE
Lloh76:
	ldr	x10, [x10, _SAHARA_CONTROL_ENABLE_INT@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh77:
	ldr	w9, [x10]
	orr	w1, w8, w9
Lloh78:
	adrp	x8, _SAHARA_REG_CONTROL@GOTPAGE
Lloh79:
	ldr	x8, [x8, _SAHARA_REG_CONTROL@GOTPAGEOFF]
Lloh80:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sahara_write
	mov	x0, x19
	bl	_sahara_register_algs
	mov	x21, x0
	cbz	w0, LBB0_41
LBB0_39:
	ldr	x0, [x19, #24]
	bl	_kthread_stop
	str	xzr, [x23]
	ldr	x0, [x19, #16]
	bl	_clk_disable_unprepare
LBB0_40:
	ldr	x0, [x19, #8]
	bl	_clk_disable_unprepare
	b	LBB0_27
LBB0_41:
Lloh81:
	adrp	x1, l_.str.13@PAGE
Lloh82:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x20
	mov	x2, x24
	bl	_dev_info
	b	LBB0_27
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh67
	.loh AdrpAdd	Lloh81, Lloh82
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sahara_irq_handler,4,2         ; @sahara_irq_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to request irq\n"

l_.str.1:                               ; @.str.1
	.asciz	"ipg"

l_.str.2:                               ; @.str.2
	.asciz	"Could not get ipg clock\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"Could not get ahb clock\n"

	.comm	_SAHARA_MAX_HW_DESC,4,2         ; @SAHARA_MAX_HW_DESC
l_.str.5:                               ; @.str.5
	.asciz	"Could not allocate hw descriptors\n"

	.comm	_AES_KEYSIZE_128,4,2            ; @AES_KEYSIZE_128
l_.str.6:                               ; @.str.6
	.asciz	"Could not allocate memory for key\n"

	.comm	_SHA256_DIGEST_SIZE,4,2         ; @SHA256_DIGEST_SIZE
l_.str.7:                               ; @.str.7
	.asciz	"Could not allocate memory for MDHA context\n"

	.comm	_SAHARA_MAX_HW_LINK,4,2         ; @SAHARA_MAX_HW_LINK
l_.str.8:                               ; @.str.8
	.asciz	"Could not allocate hw links\n"

	.comm	_SAHARA_QUEUE_LENGTH,4,2        ; @SAHARA_QUEUE_LENGTH
	.comm	_dev_ptr,8,3                    ; @dev_ptr
	.comm	_sahara_queue_manage,4,2        ; @sahara_queue_manage
l_.str.9:                               ; @.str.9
	.asciz	"sahara_crypto"

	.comm	_SAHARA_REG_VERSION,4,2         ; @SAHARA_REG_VERSION
l_.str.10:                              ; @.str.10
	.asciz	"fsl,imx27-sahara"

	.comm	_SAHARA_VERSION_3,4,2           ; @SAHARA_VERSION_3
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.11:                              ; @.str.11
	.asciz	"fsl,imx53-sahara"

	.comm	_SAHARA_VERSION_4,4,2           ; @SAHARA_VERSION_4
l_.str.12:                              ; @.str.12
	.asciz	"SAHARA version %d not supported\n"

	.comm	_SAHARA_CMD_RESET,4,2           ; @SAHARA_CMD_RESET
	.comm	_SAHARA_CMD_MODE_BATCH,4,2      ; @SAHARA_CMD_MODE_BATCH
	.comm	_SAHARA_REG_CMD,4,2             ; @SAHARA_REG_CMD
	.comm	_SAHARA_CONTROL_RNG_AUTORSD,4,2 ; @SAHARA_CONTROL_RNG_AUTORSD
	.comm	_SAHARA_CONTROL_ENABLE_INT,4,2  ; @SAHARA_CONTROL_ENABLE_INT
	.comm	_SAHARA_REG_CONTROL,4,2         ; @SAHARA_REG_CONTROL
l_.str.13:                              ; @.str.13
	.asciz	"SAHARA version %d initialized\n"

	.no_dead_strip	_sahara_probe
.subsections_via_symbols
