	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function concat_dev_erase
_concat_dev_erase:                      ## @concat_dev_erase
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DECLARE_WAITQUEUE
	leaq	-28(%rbp), %r15
	movq	%r15, %rdi
	callq	_init_waitqueue_head
	movq	%rbx, 24(%r14)
	movq	_concat_erase_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r15, (%r14)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*(%rbx)
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	_wait@GOTPCREL(%rip), %rsi
	leaq	-28(%rbp), %rdi
	callq	_add_wait_queue
	movq	8(%r14), %rax
	movq	_MTD_ERASE_DONE@GOTPCREL(%rip), %rcx
	movq	_MTD_ERASE_FAILED@GOTPCREL(%rip), %rbx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	cmpq	(%rbx), %rax
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_schedule
LBB0_4:
	movq	_wait@GOTPCREL(%rip), %rsi
	leaq	-28(%rbp), %rdi
	callq	_remove_wait_queue
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	8(%r14), %rcx
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	xorl	%eax, %eax
	subl	(%rdx), %eax
	cmpq	(%rbx), %rcx
	cmovnel	%esi, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_current,4,2                    ## @current
	.comm	_concat_erase_callback,4,2      ## @concat_erase_callback
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.comm	_MTD_ERASE_DONE,8,3             ## @MTD_ERASE_DONE
	.comm	_MTD_ERASE_FAILED,8,3           ## @MTD_ERASE_FAILED
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_concat_dev_erase
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function concat_dev_erase
_concat_dev_erase:                      ; @concat_dev_erase
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _wait@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wait@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _current@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_DECLARE_WAITQUEUE
	add	x21, sp, #12
	add	x0, sp, #12
	bl	_init_waitqueue_head
	str	x20, [x19, #24]
Lloh6:
	adrp	x8, _concat_erase_callback@GOTPAGE
Lloh7:
	ldr	x8, [x8, _concat_erase_callback@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	str	x21, [x19]
	ldr	x8, [x20]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	cbnz	w0, LBB0_4
; %bb.1:
Lloh9:
	adrp	x8, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_set_current_state
Lloh12:
	adrp	x1, _wait@GOTPAGE
Lloh13:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_add_wait_queue
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _MTD_ERASE_DONE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MTD_ERASE_DONE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x20, _MTD_ERASE_FAILED@GOTPAGE
Lloh18:
	ldr	x20, [x20, _MTD_ERASE_FAILED@GOTPAGEOFF]
	ldr	x10, [x20]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_3
; %bb.2:
	bl	_schedule
LBB0_3:
Lloh19:
	adrp	x1, _wait@GOTPAGE
Lloh20:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_remove_wait_queue
Lloh21:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_set_current_state
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
Lloh24:
	adrp	x10, _EIO@GOTPAGE
Lloh25:
	ldr	x10, [x10, _EIO@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	cmp	x8, x9
	csneg	w0, wzr, w10, ne
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_current,4,2                    ; @current
	.comm	_concat_erase_callback,4,2      ; @concat_erase_callback
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.comm	_MTD_ERASE_DONE,8,3             ; @MTD_ERASE_DONE
	.comm	_MTD_ERASE_FAILED,8,3           ; @MTD_ERASE_FAILED
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_concat_dev_erase
.subsections_via_symbols
