	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ubi_eba_write_leb              ## -- Begin function ubi_eba_write_leb
	.p2align	4, 0x90
_ubi_eba_write_leb:                     ## @ubi_eba_write_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
	cmpq	$0, 8(%rdi)
	je	LBB0_3
## %bb.1:
	movq	_EROFS@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_32
LBB0_3:
	movq	%rcx, %r14
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	%r9d, -64(%rbp)                 ## 4-byte Spill
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	(%rsi), %r15d
	movl	%r15d, %esi
	callq	_leb_write_lock
	movq	%r12, %rcx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_32
## %bb.4:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	8(%rbx), %rax
	movslq	%r13d, %rcx
	movl	(%rax,%rcx,4), %r15d
	testl	%r15d, %r15d
	js	LBB0_15
## %bb.5:
	leaq	L_.str(%rip), %rdi
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	movl	%r15d, %r9d
	callq	_dbg_eba
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	callq	_ubi_io_write_data
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_ubi_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	jne	LBB0_8
## %bb.10:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, (%rbx)
	je	LBB0_9
## %bb.11:
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movl	%r14d, %r9d
	callq	_recover_peb
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.12:
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_15:
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	_GFP_NOFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_ubi_zalloc_vid_hdr
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	%rax, %r12
	movq	_UBI_VID_DYNAMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movq	%r14, %rdi
	callq	_next_sqnum
	movl	%eax, %edi
	callq	_cpu_to_be64
	movq	%rax, (%r12)
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_cpu_to_be32
	movq	%rax, 32(%r12)
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	callq	_cpu_to_be32
	movq	%rax, 24(%r12)
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ubi_get_compat
	movl	%eax, 16(%r12)
	movl	16(%rbx), %edi
	callq	_cpu_to_be32
	movq	%rax, 8(%r12)
	movq	%r14, %rdi
	movl	16(%rbp), %esi
	callq	_ubi_wl_get_peb
	movq	%rbx, %rcx
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_31
## %bb.18:
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	leaq	L_.str.2(%rip), %rdi
	movl	-64(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_dbg_eba
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_ubi_io_write_vid_hdr
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rdi
	movl	%r13d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_ubi_warn
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movl	%ebx, %r15d
	jmp	LBB0_24
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	testl	%r15d, %r15d
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movl	%r15d, %r8d
	movl	%ebx, %r15d
	je	LBB0_33
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%r13d, %ecx
	callq	_ubi_io_write_data
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_33
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rdi
	movl	%r13d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_ubi_warn
LBB0_24:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpq	$0, (%rbx)
	je	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_ubi_wl_put_peb
	movl	%eax, %r12d
	testl	%eax, %eax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_UBI_IO_RETRIES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jge	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_19 Depth=1
	incl	%ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_next_sqnum
	movl	%eax, %edi
	callq	_cpu_to_be64
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%rax, (%r12)
	leaq	L_.str.5(%rip), %rdi
	callq	_ubi_msg
	movq	%r14, %rdi
	movl	16(%rbp), %esi
	callq	_ubi_wl_get_peb
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_19
LBB0_31:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ubi_free_vid_hdr
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_leb_write_unlock
	movl	%ebx, %r12d
	jmp	LBB0_32
LBB0_6:
	xorl	%r12d, %r12d
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_8:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:
	movq	%rbx, %rdi
	callq	_ubi_ro_mode
LBB0_13:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_14:
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_leb_write_unlock
LBB0_32:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	callq	_leb_write_unlock
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_29:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_26:
	movq	%rbx, %rdi
	callq	_ubi_ro_mode
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_leb_write_unlock
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_ubi_free_vid_hdr
	jmp	LBB0_32
LBB0_33:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%r15d, (%rax,%rcx,4)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_leb_write_unlock
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_ubi_free_vid_hdr
	xorl	%r12d, %r12d
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_EROFS,4,2                      ## @EROFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write %d bytes at offset %d of LEB %d:%d, PEB %d"

L_.str.1:                               ## @.str.1
	.asciz	"failed to write data to PEB %d"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_NOFS,4,2                   ## @GFP_NOFS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_UBI_VID_DYNAMIC,4,2            ## @UBI_VID_DYNAMIC
L_.str.2:                               ## @.str.2
	.asciz	"write VID hdr and %d bytes at offset %d of LEB %d:%d, PEB %d"

L_.str.3:                               ## @.str.3
	.asciz	"failed to write VID header to LEB %d:%d, PEB %d"

L_.str.4:                               ## @.str.4
	.asciz	"failed to write %d bytes at offset %d of LEB %d:%d, PEB %d"

	.comm	_UBI_IO_RETRIES,4,2             ## @UBI_IO_RETRIES
L_.str.5:                               ## @.str.5
	.asciz	"try another PEB"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ubi_eba_write_leb              ; -- Begin function ubi_eba_write_leb
	.p2align	2
_ubi_eba_write_leb:                     ; @ubi_eba_write_leb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EROFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EROFS@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w28, w8
	b	LBB0_11
LBB0_3:
	mov	x26, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x20, x2
	mov	x27, x1
	mov	x19, x0
	ldr	w21, [x1]
	mov	x1, x21
	bl	_leb_write_lock
	mov	x28, x0
	cbnz	w0, LBB0_11
; %bb.4:
	ldr	x8, [x27, #8]
	ldr	w25, [x8, w20, sxtw #2]
	tbnz	w25, #31, LBB0_12
; %bb.5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	mov	x3, x21
	mov	x4, x20
	mov	x5, x25
	bl	_dbg_eba
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	mov	x3, x23
	mov	x4, x22
	bl	_ubi_io_write_data
	mov	x28, x0
	cbz	w0, LBB0_10
; %bb.6:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x25
	bl	_ubi_warn
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w28, w8
	b.ne	LBB0_9
; %bb.7:
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x21
	mov	x3, x20
	mov	x4, x24
	mov	x5, x23
	mov	x6, x22
	bl	_recover_peb
	mov	x28, x0
	cbz	w0, LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_ubi_ro_mode
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_leb_write_unlock
LBB0_11:
	mov	x0, x28
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_12:
Lloh9:
	adrp	x8, _GFP_NOFS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_NOFS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ubi_zalloc_vid_hdr
	cbz	x0, LBB0_26
; %bb.13:
	mov	x28, x0
Lloh12:
	adrp	x8, _UBI_VID_DYNAMIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UBI_VID_DYNAMIC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	mov	x0, x19
	bl	_next_sqnum
	bl	_cpu_to_be64
	str	x0, [x28]
	mov	x0, x21
	bl	_cpu_to_be32
	str	x0, [x28, #32]
	mov	x0, x20
	bl	_cpu_to_be32
	str	x0, [x28, #24]
	mov	x0, x19
	str	x21, [sp, #72]                  ; 8-byte Folded Spill
	mov	x1, x21
	bl	_ubi_get_compat
	str	w0, [x28, #16]
	ldr	w0, [x27, #16]
	bl	_cpu_to_be32
	str	x0, [x28, #8]
	mov	x0, x19
	mov	x1, x26
	bl	_ubi_wl_get_peb
	mov	x25, x0
	tbnz	w0, #31, LBB0_25
; %bb.14:
	mov	w21, #0
	mov	x8, x20
	sxtw	x9, w8
	mov	x8, x20
	stp	x9, x8, [sp, #40]               ; 16-byte Folded Spill
	str	x28, [sp, #64]                  ; 8-byte Folded Spill
	str	w26, [sp, #60]                  ; 4-byte Folded Spill
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x26, x24
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	ldr	x24, [sp, #72]                  ; 8-byte Folded Reload
	mov	x3, x24
	mov	x4, x20
	mov	x5, x25
	bl	_dbg_eba
	mov	x0, x19
	mov	x1, x25
	mov	x2, x28
	bl	_ubi_io_write_vid_hdr
	cbz	w0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x28, x0
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	stp	x8, x25, [sp]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x24
	bl	_ubi_warn
	mov	x24, x26
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_15 Depth=1
	cbz	w22, LBB0_28
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x24, x26
	mov	x0, x19
	mov	x1, x26
	mov	x2, x25
	mov	x3, x23
	mov	x4, x22
	bl	_ubi_io_write_data
	cbz	w0, LBB0_28
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x28, x0
	mov	x8, x25
	stp	x20, x8, [sp, #16]
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	stp	x23, x8, [sp]
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x22
	bl	_ubi_warn
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmn	w28, w8
	ldr	w26, [sp, #60]                  ; 4-byte Folded Reload
	b.ne	LBB0_27
; %bb.21:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x19]
	cbz	x8, LBB0_27
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x19
	mov	x1, x25
	mov	w2, #1
	bl	_ubi_wl_put_peb
	mov	x28, x0
	cbnz	w0, LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_15 Depth=1
Lloh24:
	adrp	x8, _UBI_IO_RETRIES@GOTPAGE
Lloh25:
	ldr	x8, [x8, _UBI_IO_RETRIES@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ge	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_15 Depth=1
	add	w21, w21, #1
	mov	x0, x19
	bl	_next_sqnum
	bl	_cpu_to_be64
	ldr	x28, [sp, #64]                  ; 8-byte Folded Reload
	str	x0, [x28]
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_ubi_msg
	mov	x0, x19
	mov	x1, x26
	bl	_ubi_wl_get_peb
	mov	x25, x0
	tbz	w0, #31, LBB0_15
LBB0_25:
	mov	x0, x19
	mov	x1, x28
	bl	_ubi_free_vid_hdr
	mov	x0, x19
	ldr	x1, [sp, #72]                   ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x20
	bl	_leb_write_unlock
	mov	x28, x25
	b	LBB0_11
LBB0_26:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_leb_write_unlock
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_27:
	mov	x0, x19
	bl	_ubi_ro_mode
	mov	x0, x19
	ldr	x1, [sp, #72]                   ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x20
	bl	_leb_write_unlock
	mov	x0, x19
	ldr	x1, [sp, #64]                   ; 8-byte Folded Reload
	bl	_ubi_free_vid_hdr
	b	LBB0_11
LBB0_28:
	ldr	x8, [x27, #8]
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	str	w25, [x8, x9, lsl #2]
	mov	x0, x19
	ldr	x1, [sp, #72]                   ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x20
	bl	_leb_write_unlock
	mov	x0, x19
	ldr	x1, [sp, #64]                   ; 8-byte Folded Reload
	bl	_ubi_free_vid_hdr
	mov	w28, #0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_EROFS,4,2                      ; @EROFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write %d bytes at offset %d of LEB %d:%d, PEB %d"

l_.str.1:                               ; @.str.1
	.asciz	"failed to write data to PEB %d"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_NOFS,4,2                   ; @GFP_NOFS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_UBI_VID_DYNAMIC,4,2            ; @UBI_VID_DYNAMIC
l_.str.2:                               ; @.str.2
	.asciz	"write VID hdr and %d bytes at offset %d of LEB %d:%d, PEB %d"

l_.str.3:                               ; @.str.3
	.asciz	"failed to write VID header to LEB %d:%d, PEB %d"

l_.str.4:                               ; @.str.4
	.asciz	"failed to write %d bytes at offset %d of LEB %d:%d, PEB %d"

	.comm	_UBI_IO_RETRIES,4,2             ; @UBI_IO_RETRIES
l_.str.5:                               ; @.str.5
	.asciz	"try another PEB"

.subsections_via_symbols
