	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ubi_eba_copy_leb               ## -- Begin function ubi_eba_copy_leb
	.p2align	4, 0x90
_ubi_eba_copy_leb:                      ## @ubi_eba_copy_leb
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_ubi_get_vid_hdr
	movq	%rax, %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	28(%rbx), %rdi
	callq	_rwsem_is_locked
	movl	%eax, %edi
	callq	_ubi_assert
	movq	48(%r14), %rdi
	callq	_be32_to_cpu
	movl	%eax, %r13d
	movq	40(%r14), %rdi
	callq	_be32_to_cpu
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, %esi
	movl	%eax, %edx
	movl	%r12d, -76(%rbp)                ## 4-byte Spill
	movl	%r12d, %ecx
	movq	%r14, %r12
	movl	%r15d, -84(%rbp)                ## 4-byte Spill
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_dbg_wl
	movq	(%r14), %rax
	movq	_UBI_VID_STATIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	%ebx, -80(%rbp)                 ## 4-byte Spill
	jne	LBB0_2
## %bb.1:
	movq	24(%r12), %rdi
	callq	_be32_to_cpu
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	24(%r13), %esi
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_ALIGN
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_2:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %ebx
	movq	32(%r12), %rdi
	callq	_be32_to_cpu
	subl	%eax, %ebx
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
LBB0_3:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_vol_id2idx
	movl	%eax, %ebx
	leaq	12(%r13), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	16(%r13), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	%r14, %rdi
	callq	_spin_unlock
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	movq	%rbx, %r14
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	-80(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_leb_write_trylock
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dbg_wl
	movq	_MOVE_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_33
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_dbg_wl
	movq	_MOVE_CANCEL_RACE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_33
LBB0_7:
	movq	%r14, %rax
	movq	(%r14), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %r8d
	movl	-76(%rbp), %r15d                ## 4-byte Reload
	cmpl	%r15d, %r8d
	jne	LBB0_8
## %bb.9:
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	4(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	leaq	L_.str.4(%rip), %rdi
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_dbg_wl
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movl	%r13d, %r8d
	callq	_ubi_io_read_data
	movq	_UBI_IO_BITFLIPS@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	_ubi_warn
	movq	_MOVE_SOURCE_RD_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_31
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dbg_wl
	movq	_MOVE_CANCEL_RACE@GOTPCREL(%rip), %rax
	movl	%ebx, %edx
	movl	(%rax), %ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_32
LBB0_12:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_UBI_VID_DYNAMIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.14:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_ubi_calc_data_len
	movl	%eax, %r13d
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	jmp	LBB0_15
LBB0_13:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	-60(%rbp), %r13d                ## 4-byte Reload
LBB0_15:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_cond_resched
	movq	_UBI_CRC32_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	movl	%r13d, %edx
	callq	_crc32
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_cond_resched
	testl	%r13d, %r13d
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_17
## %bb.16:
	movl	$1, 8(%rbx)
	movl	%r13d, %edi
	callq	_cpu_to_be32
	movq	%rax, 24(%rbx)
	movl	%r15d, %edi
	callq	_cpu_to_be32
	movq	%rax, 16(%rbx)
LBB0_17:
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_ubi_next_sqnum
	movl	%eax, %edi
	callq	_cpu_to_be64
	movl	%eax, 12(%rbx)
	movq	%r15, %rdi
	movl	-84(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdx
	callq	_ubi_io_write_vid_hdr
	testl	%eax, %eax
	je	LBB0_20
LBB0_18:
	movl	%eax, %ebx
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_29
## %bb.19:
	movq	_MOVE_TARGET_WR_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_29
LBB0_20:
	xorl	%eax, %eax
	callq	_cond_resched
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	_ubi_io_read_vid_hdr
	testl	%eax, %eax
	je	LBB0_25
## %bb.21:
	movl	%eax, %ebx
	movq	_UBI_IO_BITFLIPS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_22
## %bb.24:
	movq	_MOVE_TARGET_BITFLIPS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_29
LBB0_25:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	movl	-76(%rbp), %r15d                ## 4-byte Reload
	jle	LBB0_28
## %bb.26:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	8(%rdi), %esi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	callq	_ubi_io_write_data
	testl	%eax, %eax
	jne	LBB0_18
## %bb.27:
	xorl	%eax, %eax
	callq	_cond_resched
LBB0_28:
	movq	(%r14), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	cmpl	%r15d, (%rax,%rbx,4)
	sete	%dil
	callq	_ubi_assert
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	%r13d, (%rax,%rbx,4)
	xorl	%ebx, %ebx
LBB0_29:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_30:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_31:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	-80(%rbp), %edx                 ## 4-byte Reload
LBB0_32:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_leb_write_unlock
LBB0_33:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	leaq	L_.str.6(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%r13d, %ecx
	callq	_ubi_warn
	movl	%ebx, %edi
	callq	_is_error_sane
	testq	%rax, %rax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_30
## %bb.23:
	movq	_MOVE_TARGET_RD_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"copy LEB %d:%d, PEB %d to PEB %d"

	.comm	_UBI_VID_STATIC,8,3             ## @UBI_VID_STATIC
L_.str.1:                               ## @.str.1
	.asciz	"volume %d is being removed, cancel"

	.comm	_MOVE_CANCEL_RACE,4,2           ## @MOVE_CANCEL_RACE
L_.str.2:                               ## @.str.2
	.asciz	"contention on LEB %d:%d, cancel"

	.comm	_MOVE_RETRY,4,2                 ## @MOVE_RETRY
L_.str.3:                               ## @.str.3
	.asciz	"LEB %d:%d is no longer mapped to PEB %d, mapped to PEB %d, cancel"

L_.str.4:                               ## @.str.4
	.asciz	"read %d bytes of data"

	.comm	_UBI_IO_BITFLIPS,4,2            ## @UBI_IO_BITFLIPS
L_.str.5:                               ## @.str.5
	.asciz	"error %d while reading data from PEB %d"

	.comm	_MOVE_SOURCE_RD_ERR,4,2         ## @MOVE_SOURCE_RD_ERR
	.comm	_UBI_VID_DYNAMIC,8,3            ## @UBI_VID_DYNAMIC
	.comm	_UBI_CRC32_INIT,4,2             ## @UBI_CRC32_INIT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_MOVE_TARGET_WR_ERR,4,2         ## @MOVE_TARGET_WR_ERR
L_.str.6:                               ## @.str.6
	.asciz	"error %d while reading VID header back from PEB %d"

	.comm	_MOVE_TARGET_RD_ERR,4,2         ## @MOVE_TARGET_RD_ERR
	.comm	_MOVE_TARGET_BITFLIPS,4,2       ## @MOVE_TARGET_BITFLIPS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ubi_eba_copy_leb               ; -- Begin function ubi_eba_copy_leb
	.p2align	2
_ubi_eba_copy_leb:                      ; @ubi_eba_copy_leb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x24, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	mov	x0, x3
	bl	_ubi_get_vid_hdr
	mov	x26, x0
	add	x0, x19, #28
	bl	_rwsem_is_locked
	bl	_ubi_assert
	ldr	x0, [x26, #48]
	bl	_be32_to_cpu
	mov	x20, x0
	ldr	x0, [x26, #40]
	bl	_be32_to_cpu
	mov	x21, x0
	str	x22, [sp, #40]                  ; 8-byte Folded Spill
	stp	x23, x22, [sp, #8]
	mov	x8, x0
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_dbg_wl
	ldr	x8, [x26]
Lloh2:
	adrp	x9, _UBI_VID_STATIC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UBI_VID_STATIC@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x26, #24]
	bl	_be32_to_cpu
	mov	x28, x0
	ldr	w1, [x19, #24]
	bl	_ALIGN
	mov	x27, x0
	b	LBB0_3
LBB0_2:
	ldr	w22, [x19]
	ldr	x0, [x26, #32]
	bl	_be32_to_cpu
	sub	w27, w22, w0
	mov	x28, x27
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_vol_id2idx
	mov	x25, x0
	add	x22, x19, #12
	mov	x0, x22
	bl	_spin_lock
	ldr	x8, [x19, #16]
	ldr	x25, [x8, w25, sxtw #3]
	mov	x0, x22
	bl	_spin_unlock
	cbz	x25, LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_leb_write_trylock
	cbz	w0, LBB0_7
; %bb.5:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_dbg_wl
Lloh7:
	adrp	x8, _MOVE_RETRY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MOVE_RETRY@GOTPAGEOFF]
Lloh9:
	ldr	w23, [x8]
	b	LBB0_20
LBB0_6:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_dbg_wl
Lloh12:
	adrp	x8, _MOVE_CANCEL_RACE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MOVE_CANCEL_RACE@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	b	LBB0_20
LBB0_7:
	ldr	x8, [x25]
	ldr	x8, [x8]
	ldr	w8, [x8, w21, sxtw #2]
	cmp	w8, w23
	b.ne	LBB0_11
; %bb.8:
	add	x22, x19, #4
	mov	x0, x22
	bl	_mutex_lock
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x27
	bl	_dbg_wl
	ldr	w1, [x19, #8]
	mov	x0, x19
	mov	x2, x23
	mov	w3, #0
	mov	x4, x27
	bl	_ubi_io_read_data
Lloh17:
	adrp	x8, _UBI_IO_BITFLIPS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _UBI_IO_BITFLIPS@GOTPAGEOFF]
	cbz	w0, LBB0_12
; %bb.9:
	mov	x2, x0
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_12
; %bb.10:
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x3, x23
	bl	_ubi_warn
Lloh21:
	adrp	x8, _MOVE_SOURCE_RD_ERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MOVE_SOURCE_RD_ERR@GOTPAGEOFF]
Lloh23:
	ldr	w23, [x8]
	b	LBB0_18
LBB0_11:
	str	x8, [sp, #16]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	mov	x8, x21
	stp	x8, x23, [sp]
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_dbg_wl
Lloh26:
	adrp	x8, _MOVE_CANCEL_RACE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MOVE_CANCEL_RACE@GOTPAGEOFF]
Lloh28:
	ldr	w23, [x8]
	b	LBB0_19
LBB0_12:
	ldr	x8, [x26]
Lloh29:
	adrp	x9, _UBI_VID_DYNAMIC@GOTPAGE
Lloh30:
	ldr	x9, [x9, _UBI_VID_DYNAMIC@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	str	x22, [sp, #32]                  ; 8-byte Folded Spill
	b.ne	LBB0_14
; %bb.13:
	ldr	w1, [x19, #8]
	mov	x0, x19
	mov	x2, x28
	bl	_ubi_calc_data_len
	mov	x27, x0
	mov	x28, x0
LBB0_14:
	bl	_cond_resched
Lloh32:
	adrp	x8, _UBI_CRC32_INIT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _UBI_CRC32_INIT@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	mov	x2, x28
	bl	_crc32
	mov	x22, x0
	bl	_cond_resched
	cmp	w28, #1
	b.lt	LBB0_16
; %bb.15:
	mov	w8, #1
	str	w8, [x26, #8]
	mov	x0, x28
	bl	_cpu_to_be32
	str	x0, [x26, #24]
	mov	x0, x22
	bl	_cpu_to_be32
	str	x0, [x26, #16]
LBB0_16:
	mov	x0, x19
	bl	_ubi_next_sqnum
	bl	_cpu_to_be64
	str	w0, [x26, #12]
	mov	x0, x19
	ldr	x26, [sp, #40]                  ; 8-byte Folded Reload
	mov	x1, x26
	mov	x2, x24
	bl	_ubi_io_write_vid_hdr
	cbz	w0, LBB0_21
; %bb.17:
Lloh35:
	adrp	x8, _EIO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _MOVE_TARGET_WR_ERR@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MOVE_TARGET_WR_ERR@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	cmn	w0, w8
	csel	w23, w9, w0, eq
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
LBB0_18:
	mov	x0, x22
	bl	_mutex_unlock
LBB0_19:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_leb_write_unlock
LBB0_20:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_21:
	bl	_cond_resched
	mov	x0, x19
	mov	x1, x26
	mov	x2, x24
	mov	w3, #1
	bl	_ubi_io_read_vid_hdr
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
	cbz	w0, LBB0_24
; %bb.22:
	mov	x24, x0
Lloh41:
	adrp	x8, _UBI_IO_BITFLIPS@GOTPAGE
Lloh42:
	ldr	x8, [x8, _UBI_IO_BITFLIPS@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_27
; %bb.23:
Lloh44:
	adrp	x8, _MOVE_TARGET_BITFLIPS@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MOVE_TARGET_BITFLIPS@GOTPAGEOFF]
Lloh46:
	ldr	w23, [x8]
	b	LBB0_18
LBB0_24:
	mov	x24, x22
	cmp	w28, #1
	b.lt	LBB0_29
; %bb.25:
	ldr	w1, [x19, #8]
	mov	x0, x19
	mov	x2, x26
	mov	w3, #0
	mov	x4, x27
	bl	_ubi_io_write_data
	cbz	w0, LBB0_28
; %bb.26:
Lloh47:
	adrp	x8, _EIO@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	adrp	x9, _MOVE_TARGET_WR_ERR@GOTPAGE
Lloh51:
	ldr	x9, [x9, _MOVE_TARGET_WR_ERR@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	cmn	w0, w8
	csel	w23, w9, w0, eq
	b	LBB0_30
LBB0_27:
Lloh53:
	adrp	x1, l_.str.6@PAGE
Lloh54:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	mov	x3, x26
	bl	_ubi_warn
	mov	x0, x24
	bl	_is_error_sane
Lloh55:
	adrp	x8, _MOVE_TARGET_RD_ERR@GOTPAGE
Lloh56:
	ldr	x8, [x8, _MOVE_TARGET_RD_ERR@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w23, w24, w8, eq
	b	LBB0_18
LBB0_28:
	bl	_cond_resched
LBB0_29:
	sxtw	x8, w21
	ldr	x9, [x25]
	ldr	x9, [x9]
	lsl	x22, x8, #2
	ldr	w8, [x9, x22]
	cmp	w8, w23
	cset	w0, eq
	bl	_ubi_assert
	mov	w23, #0
	ldr	x8, [x25]
	ldr	x8, [x8]
	str	w26, [x8, x22]
LBB0_30:
	mov	x22, x24
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"copy LEB %d:%d, PEB %d to PEB %d"

	.comm	_UBI_VID_STATIC,8,3             ; @UBI_VID_STATIC
l_.str.1:                               ; @.str.1
	.asciz	"volume %d is being removed, cancel"

	.comm	_MOVE_CANCEL_RACE,4,2           ; @MOVE_CANCEL_RACE
l_.str.2:                               ; @.str.2
	.asciz	"contention on LEB %d:%d, cancel"

	.comm	_MOVE_RETRY,4,2                 ; @MOVE_RETRY
l_.str.3:                               ; @.str.3
	.asciz	"LEB %d:%d is no longer mapped to PEB %d, mapped to PEB %d, cancel"

l_.str.4:                               ; @.str.4
	.asciz	"read %d bytes of data"

	.comm	_UBI_IO_BITFLIPS,4,2            ; @UBI_IO_BITFLIPS
l_.str.5:                               ; @.str.5
	.asciz	"error %d while reading data from PEB %d"

	.comm	_MOVE_SOURCE_RD_ERR,4,2         ; @MOVE_SOURCE_RD_ERR
	.comm	_UBI_VID_DYNAMIC,8,3            ; @UBI_VID_DYNAMIC
	.comm	_UBI_CRC32_INIT,4,2             ; @UBI_CRC32_INIT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_MOVE_TARGET_WR_ERR,4,2         ; @MOVE_TARGET_WR_ERR
l_.str.6:                               ; @.str.6
	.asciz	"error %d while reading VID header back from PEB %d"

	.comm	_MOVE_TARGET_RD_ERR,4,2         ; @MOVE_TARGET_RD_ERR
	.comm	_MOVE_TARGET_BITFLIPS,4,2       ; @MOVE_TARGET_BITFLIPS
.subsections_via_symbols
