	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function concat_erase
_concat_erase:                          ## @concat_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_CONCAT
	movq	%rax, %r15
	movq	_MTD_WRITEABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.3:
	movq	(%r14), %rsi
	movq	16(%r15), %rdx
	cmpq	%rdx, %rsi
	jg	LBB0_4
## %bb.5:
	movq	8(%r14), %rcx
	leaq	(%rcx,%rsi), %rax
	cmpq	%rdx, %rax
	jle	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EROFS@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_42:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	24(%r15), %edx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.9:
	testl	%edx, %edx
	jle	LBB0_4
## %bb.10:
	movq	32(%r15), %r8
	xorl	%edi, %edi
	movq	%r8, %rcx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	(%rcx), %rsi
	jl	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rdi
	addq	$16, %rcx
	cmpq	%rdi, %rdx
	jne	LBB0_11
## %bb.13:
	movl	%edx, %edi
LBB0_14:
	testl	%edi, %edi
	je	LBB0_4
## %bb.15:
	movslq	%edi, %rbx
	decq	%rbx
	shlq	$4, %rbx
	movslq	8(%r8,%rbx), %rcx
	decq	%rcx
	testq	%rcx, %rsi
	jne	LBB0_4
## %bb.16:
	leal	-1(%rdi), %esi
	cmpl	%edx, %edi
	jg	LBB0_21
## %bb.17:
	addq	%r8, %rbx
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpq	(%rbx), %rax
	jl	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	incl	%esi
	addq	$16, %rbx
	cmpl	%esi, %edx
	jne	LBB0_18
## %bb.20:
	movl	%edx, %esi
LBB0_21:
	testl	%esi, %esi
	jle	LBB0_4
## %bb.22:
	decl	%esi
	shlq	$4, %rsi
	movslq	8(%r8,%rsi), %rcx
	decq	%rcx
	testq	%rcx, %rax
	jne	LBB0_4
	jmp	LBB0_23
LBB0_7:
	movslq	28(%r15), %rax
	decq	%rax
	testq	%rax, %rsi
	jne	LBB0_4
## %bb.8:
	testq	%rax, %rcx
	jne	LBB0_4
LBB0_23:
	movq	_MTD_FAIL_ADDR_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_24
## %bb.25:
	movq	32(%r14), %rcx
	movq	%rcx, 32(%rax)
	movups	(%r14), %xmm0
	movups	16(%r14), %xmm1
	movups	%xmm1, 16(%rax)
	movups	%xmm0, (%rax)
	movq	8(%r14), %r12
	movl	(%r15), %r8d
	xorl	%ebx, %ebx
	testl	%r8d, %r8d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_26
## %bb.27:
	movq	8(%r15), %rcx
	movq	(%rax), %rdx
	xorl	%r13d, %r13d
	xorl	%edi, %edi
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%r13,8), %rsi
	movq	8(%rsi), %rsi
	subq	%rsi, %rdx
	jl	LBB0_43
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	%rdx, (%rax)
	addq	%rsi, %rdi
	incq	%r13
	cmpq	%r13, %r8
	jne	LBB0_28
## %bb.30:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%r8d, %r13d
	jmp	LBB0_31
LBB0_24:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_26:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_31
LBB0_43:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
LBB0_31:
	xorl	%edi, %edi
	cmpl	%r8d, %r13d
	setge	%dil
	callq	_BUG_ON
	testq	%r12, %r12
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_39
## %bb.32:
	movq	%r12, %rdx
	movl	%r13d, %edi
	movq	(%rsi), %rbx
	shlq	$3, %rdi
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rdi), %r13
	leaq	(%rdx,%rbx), %rax
	movq	8(%r13), %rcx
	movq	%rcx, %r12
	subq	%rbx, %r12
	cmpq	%rcx, %rax
	cmovbeq	%rdx, %r12
	movq	%r12, 8(%rsi)
	movq	_MTD_WRITEABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_34
## %bb.35:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_concat_dev_erase
	testl	%eax, %eax
	jne	LBB0_36
## %bb.38:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	$0, (%rsi)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	8(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rdi
	xorl	%ebx, %ebx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	subq	%r12, %rdx
	jne	LBB0_33
	jmp	LBB0_39
LBB0_34:
	movq	_EROFS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_39
LBB0_36:
	movl	%eax, %ebx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	addl	%ebx, %eax
	sete	%dil
	callq	_BUG_ON
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	16(%rsi), %rax
	movq	_MTD_FAIL_ADDR_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_39
## %bb.37:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, %rcx
	movq	%rcx, 16(%r14)
LBB0_39:
	movl	32(%rsi), %eax
	movl	%eax, 32(%r14)
	movq	%rsi, %rdi
	callq	_kfree
	testl	%ebx, %ebx
	jne	LBB0_42
## %bb.40:
	movq	24(%r14), %rcx
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	je	LBB0_42
## %bb.41:
	movq	%r14, %rdi
	callq	*%rcx
	jmp	LBB0_42
	.cfi_endproc
                                        ## -- End function
	.comm	_MTD_WRITEABLE,4,2              ## @MTD_WRITEABLE
	.comm	_EROFS,4,2                      ## @EROFS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MTD_FAIL_ADDR_UNKNOWN,8,3      ## @MTD_FAIL_ADDR_UNKNOWN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_concat_erase
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function concat_erase
_concat_erase:                          ; @concat_erase
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x21, x0
	bl	_CONCAT
	ldr	w8, [x21]
Lloh0:
	adrp	x24, _MTD_WRITEABLE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MTD_WRITEABLE@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x11, [x19]
	ldr	x10, [x0, #16]
	cmp	x11, x10
	b.gt	LBB0_3
; %bb.2:
	ldr	x9, [x19, #8]
	add	x8, x9, x11
	cmp	x8, x10
	b.le	LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _EROFS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EROFS@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w10, [x20, #24]
	cbz	w10, LBB0_13
; %bb.8:
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.9:
	mov	x12, #0
	ldr	x9, [x20, #32]
	mov	x13, x9
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x13]
	cmp	x11, x14
	b.lt	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x12, x12, #1
	add	x13, x13, #16
	cmp	x10, x12
	b.ne	LBB0_10
; %bb.12:
	mov	x13, x10
	b	LBB0_16
LBB0_13:
	ldrsw	x8, [x20, #28]
	sub	x8, x8, #1
	tst	x11, x8
	b.ne	LBB0_3
; %bb.14:
	tst	x9, x8
	b.ne	LBB0_3
	b	LBB0_25
LBB0_15:
	mov	x13, x12
LBB0_16:
	cbz	w13, LBB0_3
; %bb.17:
	sxtw	x12, w13
	sub	x12, x12, #1
	add	x14, x9, x12, lsl #4
	ldrsw	x14, [x14, #8]
	sub	x14, x14, #1
	tst	x11, x14
	b.ne	LBB0_3
; %bb.18:
	cmp	w13, w10
	b.gt	LBB0_23
; %bb.19:
	add	x11, x9, x12, lsl #4
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11]
	cmp	x8, x13
	b.lt	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	w12, w12, #1
	add	x11, x11, #16
	cmp	w10, w12
	b.ne	LBB0_20
; %bb.22:
	mov	x12, x10
LBB0_23:
	subs	w10, w12, #1
	b.lt	LBB0_3
; %bb.24:
	add	x9, x9, w10, uxtw #4
	ldrsw	x9, [x9, #8]
	sub	x9, x9, #1
	tst	x8, x9
	b.ne	LBB0_3
LBB0_25:
Lloh6:
	adrp	x8, _MTD_FAIL_ADDR_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MTD_FAIL_ADDR_UNKNOWN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kmalloc
	cbz	x0, LBB0_31
; %bb.26:
	mov	x21, x0
	ldp	q0, q1, [x19]
	ldr	x8, [x19, #32]
	str	x8, [x0, #32]
	stp	q0, q1, [x0]
	ldr	x27, [x19, #8]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.27:
	mov	x22, #0
	mov	x26, #0
	ldr	x9, [x20, #8]
	ldr	x10, [x21]
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x22, lsl #3]
	ldr	x11, [x11, #8]
	subs	x10, x10, x11
	b.lt	LBB0_33
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	str	x10, [x21]
	add	x26, x26, x11
	add	x22, x22, #1
	cmp	x8, x22
	b.ne	LBB0_28
; %bb.30:
	mov	x22, x8
	b	LBB0_33
LBB0_31:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_32:
	mov	w22, #0
	mov	x26, #0
LBB0_33:
	cmp	w22, w8
	cset	w0, ge
	bl	_BUG_ON
	cbz	x27, LBB0_38
; %bb.34:
	mov	w9, w22
	ldr	x8, [x21]
	lsl	x28, x9, #3
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	x23, [x9, x28]
	ldr	x9, [x23, #8]
	sub	x10, x9, x8
	add	x8, x27, x8
	cmp	x8, x9
	csel	x25, x10, x27, hi
	str	x25, [x21, #8]
	ldr	w8, [x23]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_39
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	mov	x0, x23
	mov	x1, x21
	bl	_concat_dev_erase
	cbnz	w0, LBB0_40
; %bb.37:                               ;   in Loop: Header=BB0_35 Depth=1
	mov	x8, #0
	str	xzr, [x21]
	ldr	x9, [x23, #8]
	add	x26, x26, x9
	add	x28, x28, #8
	subs	x27, x27, x25
	b.ne	LBB0_35
LBB0_38:
	mov	w22, #0
	b	LBB0_42
LBB0_39:
Lloh14:
	adrp	x8, _EROFS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EROFS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_42
LBB0_40:
	mov	x22, x0
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmn	w0, w8
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x21, #16]
Lloh20:
	adrp	x9, _MTD_FAIL_ADDR_UNKNOWN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MTD_FAIL_ADDR_UNKNOWN@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_42
; %bb.41:
	add	x8, x26, x8
	str	x8, [x19, #16]
LBB0_42:
	ldr	w8, [x21, #32]
	str	w8, [x19, #32]
	mov	x0, x21
	bl	_kfree
	cbnz	w22, LBB0_6
; %bb.43:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_45
; %bb.44:
	mov	x0, x19
	blr	x8
LBB0_45:
	mov	w22, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MTD_WRITEABLE,4,2              ; @MTD_WRITEABLE
	.comm	_EROFS,4,2                      ; @EROFS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MTD_FAIL_ADDR_UNKNOWN,8,3      ; @MTD_FAIL_ADDR_UNKNOWN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_concat_erase
.subsections_via_symbols
