	.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
	callq	_CONCAT
	movq	%rax, %r15
	movl	16(%rax), %ecx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.5:
	testl	%ecx, %ecx
	jle	LBB0_2
## %bb.6:
	movq	24(%r15), %rax
	movslq	(%r14), %rdx
	xorl	%edi, %edi
	movq	%rax, %rsi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rsi)
	jg	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdi
	addq	$16, %rsi
	cmpq	%rdi, %rcx
	jne	LBB0_7
## %bb.9:
	movl	%ecx, %edi
LBB0_10:
	testl	%edi, %edi
	je	LBB0_2
## %bb.11:
	movslq	%edi, %rbx
	decq	%rbx
	movslq	(%r14), %rdx
	shlq	$4, %rbx
	movl	8(%rax,%rbx), %esi
	decl	%esi
	testl	%edx, %esi
	jne	LBB0_2
## %bb.12:
	leal	-1(%rdi), %esi
	cmpl	%ecx, %edi
	jg	LBB0_17
## %bb.13:
	movslq	4(%r14), %rdi
	addq	%rdx, %rdi
	addq	%rax, %rbx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, (%rbx)
	jg	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	incl	%esi
	addq	$16, %rbx
	cmpl	%esi, %ecx
	jne	LBB0_14
## %bb.16:
	movl	%ecx, %esi
LBB0_17:
	testl	%esi, %esi
	jle	LBB0_2
## %bb.18:
	decl	%esi
	addl	4(%r14), %edx
	shlq	$4, %rsi
	movl	8(%rax,%rsi), %eax
	decl	%eax
	testl	%edx, %eax
	jne	LBB0_2
	jmp	LBB0_19
LBB0_1:
	movl	20(%r15), %eax
	decl	%eax
	testl	%eax, (%r14)
	jne	LBB0_2
## %bb.4:
	testl	%eax, 4(%r14)
	je	LBB0_19
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_34:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movups	(%r14), %xmm0
	movups	%xmm0, (%rax)
	movslq	4(%r14), %r12
	movl	(%r15), %r8d
	xorl	%r13d, %r13d
	testl	%r8d, %r8d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_22
## %bb.23:
	movq	8(%r15), %r9
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r9,%rbx,8), %rsi
	movq	(%rsi), %rsi
	movslq	%edx, %rdi
	cmpq	%rdi, %rsi
	jg	LBB0_35
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	subl	%esi, %edx
	movl	%edx, (%rax)
	addq	%rsi, %rcx
	incq	%rbx
	cmpq	%rbx, %r8
	jne	LBB0_24
## %bb.26:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%r8d, %ebx
	jmp	LBB0_27
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_22:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_27
LBB0_35:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
LBB0_27:
	xorl	%edi, %edi
	cmpl	%r8d, %ebx
	setge	%dil
	callq	_BUG_ON
	movq	%r12, %r14
	testl	%r14d, %r14d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_33
## %bb.28:
	movl	%ebx, %r12d
	movl	(%rsi), %r13d
	shlq	$3, %r12
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%r12), %rbx
	movslq	%r13d, %rax
	leaq	(%r14,%rax), %rdi
	movq	(%rbx), %rdx
	movl	%edx, %r15d
	subl	%eax, %r15d
	cmpq	%rdx, %rdi
	cmovbel	%r14d, %r15d
	movl	%r15d, 4(%rsi)
	movq	%rbx, %rdi
	callq	_mtd_erase
	testl	%eax, %eax
	jne	LBB0_30
## %bb.32:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$0, (%rsi)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	%r15d, %rax
	addq	$8, %r12
	xorl	%r13d, %r13d
	subq	%rax, %r14
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_29
	jmp	LBB0_33
LBB0_30:
	movl	%eax, %r13d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	addl	%r13d, %eax
	sete	%dil
	callq	_BUG_ON
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %rax
	movq	_MTD_FAIL_ADDR_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_33
## %bb.31:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
LBB0_33:
	movq	%rsi, %rdi
	callq	_kfree
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MTD_FAIL_ADDR_UNKNOWN,8,3      ## @MTD_FAIL_ADDR_UNKNOWN
	.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
	bl	_CONCAT
	mov	x20, x0
	ldr	w9, [x0, #16]
	cbz	w9, LBB0_6
; %bb.1:
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x10, #0
	ldr	x8, [x20, #24]
	ldrsw	x11, [x19]
	mov	x12, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12]
	cmp	x13, x11
	b.gt	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	add	x12, x12, #16
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.5:
	mov	x12, x9
	cbnz	w12, LBB0_9
	b	LBB0_10
LBB0_6:
	ldr	w9, [x19]
	ldr	w8, [x20, #20]
	sub	w8, w8, #1
	tst	w8, w9
	b.ne	LBB0_10
; %bb.7:
	ldr	w9, [x19, #4]
	tst	w9, w8
	b.ne	LBB0_10
	b	LBB0_20
LBB0_8:
	mov	x12, x10
	cbz	w12, LBB0_10
LBB0_9:
	sxtw	x10, w12
	sub	x11, x10, #1
	ldrsw	x10, [x19]
	add	x13, x8, x11, lsl #4
	ldr	w13, [x13, #8]
	sub	w13, w13, #1
	tst	w13, w10
	b.eq	LBB0_13
LBB0_10:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	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_13:
	cmp	w12, w9
	b.gt	LBB0_18
; %bb.14:
	ldrsw	x12, [x19, #4]
	add	x12, x12, x10
	add	x13, x8, x11, lsl #4
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x13]
	cmp	x14, x12
	b.gt	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	w11, w11, #1
	add	x13, x13, #16
	cmp	w9, w11
	b.ne	LBB0_15
; %bb.17:
	mov	x11, x9
LBB0_18:
	subs	w9, w11, #1
	b.lt	LBB0_10
; %bb.19:
	ldr	w11, [x19, #4]
	add	w10, w11, w10
	add	x8, x8, w9, uxtw #4
	ldr	w8, [x8, #8]
	sub	w8, w8, #1
	tst	w8, w10
	b.ne	LBB0_10
LBB0_20:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kmalloc
	cbz	x0, LBB0_26
; %bb.21:
	mov	x21, x0
	ldr	q0, [x19]
	str	q0, [x0]
	ldrsw	x25, [x19, #4]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.22:
	mov	x22, #0
	mov	x24, #0
	ldr	x9, [x20, #8]
	ldr	w10, [x21]
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x22, lsl #3]
	ldr	x11, [x11]
	cmp	x11, w10, sxtw
	b.gt	LBB0_28
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	sub	w10, w10, w11
	str	w10, [x21]
	add	x24, x24, x11
	add	x22, x22, #1
	cmp	x8, x22
	b.ne	LBB0_23
; %bb.25:
	mov	x22, x8
	b	LBB0_28
LBB0_26:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_27:
	mov	w22, #0
	mov	x24, #0
LBB0_28:
	cmp	w22, w8
	cset	w0, ge
	bl	_BUG_ON
	cbz	w25, LBB0_32
; %bb.29:
	mov	w9, w22
	ldr	w8, [x21]
	lsl	x26, x9, #3
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	x23, [x9, x26]
	add	x9, x25, w8, sxtw
	ldr	x10, [x23]
	sub	w8, w10, w8
	cmp	x9, x10
	csel	w27, w8, w25, hi
	str	w27, [x21, #4]
	mov	x0, x23
	mov	x1, x21
	bl	_mtd_erase
	mov	x22, x0
	cbnz	w0, LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	mov	w8, #0
	subs	x25, x25, w27, sxtw
	str	wzr, [x21]
	ldr	x9, [x23]
	add	x24, x24, x9
	add	x26, x26, #8
	b.ne	LBB0_30
	b	LBB0_35
LBB0_32:
	mov	w22, #0
	b	LBB0_35
LBB0_33:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w22, w8
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x21, #8]
Lloh10:
	adrp	x9, _MTD_FAIL_ADDR_UNKNOWN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MTD_FAIL_ADDR_UNKNOWN@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_35
; %bb.34:
	add	x8, x24, x8
	str	x8, [x19, #8]
LBB0_35:
	mov	x0, x21
	bl	_kfree
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MTD_FAIL_ADDR_UNKNOWN,8,3      ; @MTD_FAIL_ADDR_UNKNOWN
	.no_dead_strip	_concat_erase
.subsections_via_symbols
