	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function erase_aeb
_erase_aeb:                             ## @erase_aeb
	.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
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_ubi_wl_entry_slab@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmem_cache_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movl	16(%r15), %ecx
	movl	%ecx, 8(%rbx)
	movq	8(%r14), %rcx
	movq	%rbx, (%rcx,%rax,8)
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.3:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sync_erase
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_wl_tree_add
	incl	(%r14)
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_5:
	movl	8(%r15), %ecx
	movl	12(%r15), %edx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_schedule_erase
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wl_entry_destroy
	movl	%r12d, %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ubi_wl_entry_slab,4,2          ## @ubi_wl_entry_slab
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_erase_aeb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function erase_aeb
_erase_aeb:                             ; @erase_aeb
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ubi_wl_entry_slab@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ubi_wl_entry_slab@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kmem_cache_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x8, [x21]
	str	x8, [x0]
	ldr	w9, [x21, #16]
	str	w9, [x0, #8]
	ldr	x9, [x19, #8]
	str	x0, [x9, x8, lsl #3]
	cbz	w22, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_sync_erase
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.3:
	add	x1, x19, #4
	mov	x0, x20
	bl	_wl_tree_add
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_5:
	ldp	w3, w2, [x21, #8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #0
	mov	w5, #0
	bl	_schedule_erase
	mov	x21, x0
	cbz	w0, LBB0_7
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_wl_entry_destroy
LBB0_7:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ubi_wl_entry_slab,4,2          ; @ubi_wl_entry_slab
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_erase_aeb
.subsections_via_symbols
