	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_aes_remove
_s5p_aes_remove:                        ## @s5p_aes_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_platform_get_drvdata
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r14
	movq	_algs@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%r12, %rdi
	callq	_crypto_unregister_alg
	incq	%rbx
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	leaq	40(%r14), %rdi
	callq	_tasklet_kill
	cmpl	$0, (%r14)
	je	LBB0_9
## %bb.5:
	movq	_algs_sha1_md5_sha256@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	movl	%eax, %ebx
	incq	%rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %edi
	shlq	$2, %rdi
	addq	(%r15), %rdi
	callq	_crypto_unregister_ahash
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_7
LBB0_8:
	movq	32(%r14), %rax
	addl	$-768, (%rax)                   ## imm = 0xFD00
	movq	%r14, %rdi
	addq	$24, %rdi
	callq	_tasklet_kill
	movl	$0, (%r14)
LBB0_9:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_clk_disable_unprepare
LBB0_11:
	movq	8(%r14), %rdi
	callq	_clk_disable_unprepare
	movq	_s5p_dev@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_13:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_algs,8,3                       ## @algs
	.comm	_algs_sha1_md5_sha256,8,3       ## @algs_sha1_md5_sha256
	.comm	_s5p_dev,8,3                    ## @s5p_dev
	.no_dead_strip	_s5p_aes_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_aes_remove
_s5p_aes_remove:                        ; @s5p_aes_remove
	.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
	bl	_platform_get_drvdata
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _algs@GOTPAGE
Lloh1:
	ldr	x20, [x20, _algs@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x8, x21
	bl	_crypto_unregister_alg
	add	x22, x22, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	add	x21, x21, #4
	cmp	x22, w0, sxtw
	b.lt	LBB0_3
LBB0_4:
	add	x0, x19, #40
	bl	_tasklet_kill
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.5:
Lloh2:
	adrp	x20, _algs_sha1_md5_sha256@GOTPAGE
Lloh3:
	ldr	x20, [x20, _algs_sha1_md5_sha256@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.6:
	mov	w8, w0
	add	x21, x8, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w21, #2
	ldr	x9, [x20]
	add	x0, x9, w8, uxtw #2
	bl	_crypto_unregister_ahash
	sub	x21, x21, #1
	cmp	x21, #1
	b.hi	LBB0_7
LBB0_8:
	ldr	x8, [x19, #32]
	ldr	w9, [x8]
	sub	w9, w9, #768
	str	w9, [x8]
	add	x0, x19, #24
	bl	_tasklet_kill
	str	wzr, [x19]
LBB0_9:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_clk_disable_unprepare
LBB0_11:
	ldr	x0, [x19, #8]
	bl	_clk_disable_unprepare
	mov	w0, #0
Lloh4:
	adrp	x8, _s5p_dev@GOTPAGE
Lloh5:
	ldr	x8, [x8, _s5p_dev@GOTPAGEOFF]
Lloh6:
	str	xzr, [x8]
	b	LBB0_13
LBB0_12:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_algs,8,3                       ; @algs
	.comm	_algs_sha1_md5_sha256,8,3       ; @algs_sha1_md5_sha256
	.comm	_s5p_dev,8,3                    ; @s5p_dev
	.no_dead_strip	_s5p_aes_remove
.subsections_via_symbols
