	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_aes_remove
_omap_aes_remove:                       ## @omap_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	%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
	callq	_platform_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_list_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	leaq	24(%r12), %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	16(%r12), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	jg	LBB0_9
LBB0_3:
	movq	8(%rax), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.4:
	leal	-1(%rbx), %edi
	shlq	$2, %rdi
	addq	8(%rax), %rdi
	callq	_crypto_unregister_aead
	cmpl	$1, %ebx
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	8(%rax), %rax
	leal	-2(%rbx), %edi
	shlq	$2, %rdi
	addq	8(%rax), %rdi
	callq	_crypto_unregister_aead
	decq	%rbx
	cmpq	$1, %rbx
	jg	LBB0_5
LBB0_6:
	movl	8(%r12), %edi
	callq	_crypto_engine_exit
	movq	%r12, %rdi
	addq	$4, %rdi
	callq	_tasklet_kill
	movq	%r12, %rdi
	callq	_omap_aes_dma_cleanup
	movl	(%r12), %edi
	callq	_pm_runtime_disable
	xorl	%eax, %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r12), %rax
	cmpq	$2, %r15
	jl	LBB0_3
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%r14, %r15
	decq	%r14
	movq	16(%rax), %rax
	movl	%r14d, %r13d
	shlq	$4, %r13
	movl	(%rax,%r13), %ebx
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	leal	-1(%rbx), %edi
	shlq	$2, %rdi
	addq	8(%rax,%r13), %rdi
	callq	_crypto_unregister_alg
	cmpl	$1, %ebx
	je	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r12), %rax
	movq	16(%rax), %rax
	leal	-2(%rbx), %edi
	shlq	$2, %rdi
	addq	8(%rax,%r13), %rdi
	callq	_crypto_unregister_alg
	decq	%rbx
	cmpq	$1, %rbx
	jg	LBB0_11
	jmp	LBB0_8
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_list_lock,4,2                  ## @list_lock
	.no_dead_strip	_omap_aes_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_aes_remove
_omap_aes_remove:                       ; @omap_aes_remove
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_platform_get_drvdata
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _list_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _list_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock
	add	x0, x19, #24
	bl	_list_del
	mov	x0, x20
	bl	_spin_unlock
	ldr	x8, [x19, #16]
	ldr	w20, [x8]
	cmp	w20, #1
	b.ge	LBB0_7
LBB0_2:
	ldr	x8, [x8, #8]
	ldr	w20, [x8]
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.3:
	subs	w9, w20, #1
	ldr	x8, [x8, #8]
	add	x0, x8, w9, uxtw #2
	bl	_crypto_unregister_aead
	cmp	w20, #1
	b.eq	LBB0_5
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	sub	w9, w20, #2
	ldr	x8, [x8, #8]
	add	x0, x8, w9, uxtw #2
	bl	_crypto_unregister_aead
	sub	x20, x20, #1
	cmp	x20, #1
	b.gt	LBB0_4
LBB0_5:
	ldr	w0, [x19, #8]
	bl	_crypto_engine_exit
	add	x0, x19, #4
	bl	_tasklet_kill
	mov	x0, x19
	bl	_omap_aes_dma_cleanup
	ldr	w0, [x19]
	bl	_pm_runtime_disable
	mov	w0, #0
	b	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #16]
	cmp	x20, #2
	mov	x20, x21
	b.lt	LBB0_2
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	sub	x21, x20, #1
	ldr	x8, [x8, #16]
	and	x22, x21, #0xffffffff
	lsl	x9, x22, #4
	ldr	w23, [x8, x9]
	cmp	w23, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	subs	w9, w23, #1
	add	x8, x8, x22, lsl #4
	ldr	x8, [x8, #8]
	add	x0, x8, w9, uxtw #2
	bl	_crypto_unregister_alg
	cmp	w23, #1
	b.eq	LBB0_6
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #16]
	sub	w9, w23, #2
	add	x8, x8, x22, lsl #4
	ldr	x8, [x8, #8]
	add	x0, x8, w9, uxtw #2
	bl	_crypto_unregister_alg
	sub	x23, x23, #1
	cmp	x23, #1
	b.gt	LBB0_9
	b	LBB0_6
LBB0_10:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_list_lock,4,2                  ; @list_lock
	.no_dead_strip	_omap_aes_remove
.subsections_via_symbols
