	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_hash_probe
_stm32_hash_probe:                      ## @stm32_hash_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, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 48(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	48(%r14), %edi
LBB0_4:
	addq	$24, %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_26
LBB0_5:
	movl	(%rbx), %eax
	movl	%eax, 44(%r14)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_stm32_hash_get_of_match
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_26:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_26
## %bb.7:
	movq	_stm32_hash_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_stm32_hash_irq_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_dev_name
	movq	%r14, (%rsp)
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	movl	%eax, %r9d
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_26
LBB0_9:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	(%r14), %edi
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	callq	_PTR_ERR
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r14), %edi
	jmp	LBB0_4
LBB0_11:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_26
LBB0_13:
	movq	_HASH_AUTOSUSPEND_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r12, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%r12, %rdi
	callq	_pm_runtime_get_noresume
	movq	%r12, %rdi
	callq	_pm_runtime_set_active
	movq	%r12, %rdi
	callq	_pm_runtime_enable
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_devm_reset_control_get
	movl	%eax, 40(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movl	40(%r14), %edi
	callq	_reset_control_assert
	movl	$2, %edi
	callq	_udelay
	movl	40(%r14), %edi
	callq	_reset_control_deassert
LBB0_15:
	movq	%r12, 32(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	callq	_stm32_hash_dma_init
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
LBB0_17:
	movq	_stm32_hash@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	addq	$16, %r15
	leaq	4(%rbx), %rsi
	movq	%r15, %rdi
	callq	_list_add_tail
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_crypto_engine_alloc_init
	movl	%eax, 20(%r14)
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	movl	%eax, %edi
	callq	_crypto_engine_start
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.20:
	movq	_HASH_HWCFGR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_stm32_hash_read
	movl	%eax, 24(%r14)
	movq	%r14, %rdi
	callq	_stm32_hash_register_algs
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_21
LBB0_22:
	movl	20(%r14), %edi
	callq	_crypto_engine_exit
	jmp	LBB0_23
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_23:
	movq	_stm32_hash@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	callq	_spin_lock
	movq	%r15, %rdi
	callq	_list_del
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:
	callq	_dma_release_channel
LBB0_25:
	movq	%r12, %rdi
	callq	_pm_runtime_disable
	movq	%r12, %rdi
	callq	_pm_runtime_put_noidle
	movl	(%r14), %edi
	callq	_clk_disable_unprepare
	jmp	LBB0_26
LBB0_21:
	movq	_HASH_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_stm32_hash_read
	movl	24(%r14), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_dev_info
	movq	%r12, %rdi
	callq	_pm_runtime_put_sync
	xorl	%ebx, %ebx
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_stm32_hash_irq_handler,4,2     ## @stm32_hash_irq_handler
	.comm	_stm32_hash_irq_thread,4,2      ## @stm32_hash_irq_thread
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot grab IRQ\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get clock for hash (%lu)\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to enable hash clock (%d)\n"

	.comm	_HASH_AUTOSUSPEND_DELAY,4,2     ## @HASH_AUTOSUSPEND_DELAY
L_.str.3:                               ## @.str.3
	.asciz	"DMA mode not available\n"

	.comm	_stm32_hash,8,2                 ## @stm32_hash
	.comm	_HASH_HWCFGR,4,2                ## @HASH_HWCFGR
L_.str.4:                               ## @.str.4
	.asciz	"Init HASH done HW ver %x DMA mode %u\n"

	.comm	_HASH_VER,4,2                   ## @HASH_VER
	.no_dead_strip	_stm32_hash_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_hash_probe
_stm32_hash_probe:                      ; @stm32_hash_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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_devm_ioremap_resource
	str	w0, [x20, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x20, #48]
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:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_5:
	ldr	w8, [x21]
	str	w8, [x20, #44]
	mov	x0, x20
	mov	x1, x19
	bl	_stm32_hash_get_of_match
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_10
; %bb.7:
Lloh9:
	adrp	x8, _stm32_hash_irq_handler@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stm32_hash_irq_handler@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
Lloh12:
	adrp	x8, _stm32_hash_irq_thread@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stm32_hash_irq_thread@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
Lloh15:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh17:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x5, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_11
; %bb.8:
	mov	x21, x0
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_dev_err
LBB0_10:
	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_11:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x20]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x20]
	cbz	x8, LBB0_13
; %bb.12:
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20]
	b	LBB0_3
LBB0_13:
	bl	_clk_prepare_enable
	cbz	w0, LBB0_15
; %bb.14:
	mov	x21, x0
	str	x21, [sp]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_15:
Lloh24:
	adrp	x8, _HASH_AUTOSUSPEND_DELAY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HASH_AUTOSUSPEND_DELAY@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x19
	bl	_pm_runtime_use_autosuspend
	mov	x0, x19
	bl	_pm_runtime_get_noresume
	mov	x0, x19
	bl	_pm_runtime_set_active
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	mov	x1, #0
	bl	_devm_reset_control_get
	str	w0, [x20, #40]
	bl	_IS_ERR
	cbnz	x0, LBB0_17
; %bb.16:
	ldr	w0, [x20, #40]
	bl	_reset_control_assert
	mov	w0, #2
	bl	_udelay
	ldr	w0, [x20, #40]
	bl	_reset_control_deassert
LBB0_17:
	str	x19, [x20, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x20
	bl	_stm32_hash_dma_init
	cbz	w0, LBB0_19
; %bb.18:
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_19:
Lloh29:
	adrp	x21, _stm32_hash@GOTPAGE
Lloh30:
	ldr	x21, [x21, _stm32_hash@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock
	add	x22, x20, #16
	add	x1, x21, #4
	mov	x0, x22
	bl	_list_add_tail
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x19
	mov	w1, #1
	bl	_crypto_engine_alloc_init
	str	w0, [x20, #20]
	cbz	w0, LBB0_23
; %bb.20:
	bl	_crypto_engine_start
	mov	x21, x0
	cbnz	w0, LBB0_22
; %bb.21:
Lloh31:
	adrp	x8, _HASH_HWCFGR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _HASH_HWCFGR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stm32_hash_read
	str	w0, [x20, #24]
	mov	x0, x20
	bl	_stm32_hash_register_algs
	mov	x21, x0
	cbz	w0, LBB0_27
LBB0_22:
	ldr	w0, [x20, #20]
	bl	_crypto_engine_exit
	b	LBB0_24
LBB0_23:
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_24:
Lloh37:
	adrp	x23, _stm32_hash@GOTPAGE
Lloh38:
	ldr	x23, [x23, _stm32_hash@GOTPAGEOFF]
	mov	x0, x23
	bl	_spin_lock
	mov	x0, x22
	bl	_list_del
	mov	x0, x23
	bl	_spin_unlock
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_26
; %bb.25:
	bl	_dma_release_channel
LBB0_26:
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	x0, x19
	bl	_pm_runtime_put_noidle
	ldr	w0, [x20]
	bl	_clk_disable_unprepare
	b	LBB0_10
LBB0_27:
Lloh39:
	adrp	x8, _HASH_VER@GOTPAGE
Lloh40:
	ldr	x8, [x8, _HASH_VER@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stm32_hash_read
	mov	x2, x0
	ldr	w3, [x20, #24]
Lloh42:
	adrp	x1, l_.str.4@PAGE
Lloh43:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x19
	bl	_pm_runtime_put_sync
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_stm32_hash_irq_handler,4,2     ; @stm32_hash_irq_handler
	.comm	_stm32_hash_irq_thread,4,2      ; @stm32_hash_irq_thread
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot grab IRQ\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get clock for hash (%lu)\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to enable hash clock (%d)\n"

	.comm	_HASH_AUTOSUSPEND_DELAY,4,2     ; @HASH_AUTOSUSPEND_DELAY
l_.str.3:                               ; @.str.3
	.asciz	"DMA mode not available\n"

	.comm	_stm32_hash,8,2                 ; @stm32_hash
	.comm	_HASH_HWCFGR,4,2                ; @HASH_HWCFGR
l_.str.4:                               ; @.str.4
	.asciz	"Init HASH done HW ver %x DMA mode %u\n"

	.comm	_HASH_VER,4,2                   ; @HASH_VER
	.no_dead_strip	_stm32_hash_probe
.subsections_via_symbols
