	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_cryp_remove
_stm32_cryp_remove:                     ## @stm32_cryp_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_platform_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	_aead_algs@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_crypto_unregister_aeads
	movq	_crypto_algs@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_crypto_unregister_algs
	movl	12(%rbx), %edi
	callq	_crypto_engine_exit
	movq	_cryp_list@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	4(%rbx), %edi
	callq	_pm_runtime_disable
	movl	4(%rbx), %edi
	callq	_pm_runtime_put_noidle
	movl	(%rbx), %edi
	callq	_clk_disable_unprepare
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_aead_algs,4,2                  ## @aead_algs
	.comm	_crypto_algs,4,2                ## @crypto_algs
	.comm	_cryp_list,4,2                  ## @cryp_list
	.no_dead_strip	_stm32_cryp_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_cryp_remove
_stm32_cryp_remove:                     ; @stm32_cryp_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_platform_get_drvdata
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _aead_algs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _aead_algs@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x20
	bl	_crypto_unregister_aeads
Lloh3:
	adrp	x8, _crypto_algs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _crypto_algs@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x20
	bl	_crypto_unregister_algs
	ldr	w0, [x19, #12]
	bl	_crypto_engine_exit
Lloh6:
	adrp	x20, _cryp_list@GOTPAGE
Lloh7:
	ldr	x20, [x20, _cryp_list@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock
	add	x0, x19, #8
	bl	_list_del
	mov	x0, x20
	bl	_spin_unlock
	ldr	w0, [x19, #4]
	bl	_pm_runtime_disable
	ldr	w0, [x19, #4]
	bl	_pm_runtime_put_noidle
	ldr	w0, [x19]
	bl	_clk_disable_unprepare
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_aead_algs,4,2                  ; @aead_algs
	.comm	_crypto_algs,4,2                ; @crypto_algs
	.comm	_cryp_list,4,2                  ; @cryp_list
	.no_dead_strip	_stm32_cryp_remove
.subsections_via_symbols
