	.file	"extr_vtbl.c_create_vtbl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"create volume table (copy #%d)"
	.text
	.p2align 4
	.type	create_vtbl, @function
create_vtbl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	lea	rdi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	lea	esi, 1[rdx]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rcx
	call	dbg_gen@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, r12
	call	ubi_alloc_vid_buf@PLT
	mov	r8d, DWORD PTR ENOMEM[rip]
	neg	r8d
	test	rax, rax
	je	.L1
	mov	rdi, rax
	mov	r14, rax
	call	ubi_get_vid_hdr@PLT
	mov	DWORD PTR 4[rsp], 6
	mov	rbx, rax
.L4:
	mov	rdi, r12
	mov	rsi, rbp
	call	ubi_early_get_peb@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L14
	mov	eax, DWORD PTR UBI_LAYOUT_VOLUME_TYPE[rip]
	mov	edi, DWORD PTR UBI_LAYOUT_VOLUME_ID[rip]
	mov	DWORD PTR 56[rbx], eax
	call	cpu_to_be32@PLT
	xor	edi, edi
	mov	QWORD PTR 48[rbx], rax
	mov	eax, DWORD PTR UBI_LAYOUT_VOLUME_COMPAT[rip]
	mov	DWORD PTR 40[rbx], eax
	call	cpu_to_be32@PLT
	mov	edi, r15d
	mov	QWORD PTR 16[rbx], rax
	mov	QWORD PTR 24[rbx], rax
	mov	QWORD PTR 32[rbx], rax
	call	cpu_to_be32@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	eax, DWORD PTR 4[rbp]
	lea	edi, 1[rax]
	mov	DWORD PTR 4[rbp], edi
	call	cpu_to_be64@PLT
	mov	esi, DWORD PTR 8[r13]
	mov	rdx, r14
	mov	rdi, r12
	mov	DWORD PTR [rbx], eax
	call	ubi_io_write_vid_hdr@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L7
	mov	r8d, DWORD PTR [r12]
	mov	edx, DWORD PTR 8[r13]
	xor	ecx, ecx
	mov	rdi, r12
	mov	rsi, QWORD PTR 8[rsp]
	call	ubi_io_write_data@PLT
	mov	r8d, eax
	test	eax, eax
	je	.L15
.L7:
	mov	eax, r8d
	add	eax, DWORD PTR EIO[rip]
	jne	.L8
	sub	DWORD PTR 4[rsp], 1
	je	.L8
	mov	rsi, rbp
	mov	rdi, r13
	call	list_add@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rsi, r13
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], r8d
	call	ubi_free_aeb@PLT
	mov	r8d, DWORD PTR 4[rsp]
.L6:
	mov	rdi, r14
	mov	DWORD PTR 4[rsp], r8d
	call	ubi_free_vid_buf@PLT
	mov	r8d, DWORD PTR 4[rsp]
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, r13
	call	PTR_ERR@PLT
	mov	r8d, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	mov	ecx, DWORD PTR 4[r13]
	mov	edx, DWORD PTR 8[r13]
	mov	r8, rbx
	xor	r9d, r9d
	mov	rsi, rbp
	mov	rdi, r12
	call	ubi_add_to_av@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], eax
	call	ubi_free_aeb@PLT
	mov	rdi, r14
	call	ubi_free_vid_buf@PLT
	mov	r8d, DWORD PTR 4[rsp]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	create_vtbl, .-create_vtbl
	.comm	UBI_LAYOUT_VOLUME_TYPE,4,4
	.comm	UBI_LAYOUT_VOLUME_ID,4,4
	.comm	UBI_LAYOUT_VOLUME_COMPAT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_vtbl.c_create_vtbl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"create volume table (copy #%d)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_vtbl, %function
create_vtbl:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	sub	sp, sp, #20
	mov	r7, r1
	ldr	r0, .L18
	add	r1, r2, #1
	mov	r10, r2
	str	r3, [sp, #12]
	bl	dbg_gen
	ldr	r3, .L18+4
	mov	r0, r8
	ldr	r1, [r3]
	bl	ubi_alloc_vid_buf
	subs	r9, r0, #0
	beq	.L15
	bl	ubi_get_vid_hdr
	mov	r3, #6
	mov	r4, r0
	ldr	fp, .L18+8
	str	r3, [sp, #8]
.L4:
	mov	r1, r7
	mov	r0, r8
	bl	ubi_early_get_peb
	mov	r6, r0
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L16
	ldr	r2, [fp]
	ldr	r3, .L18+12
	str	r2, [r4, #28]
	ldr	r0, [r3]
	bl	cpu_to_be32
	ldr	r3, .L18+16
	str	r0, [r4, #24]
	ldr	r2, [r3]
	mov	r0, r5
	str	r2, [r4, #20]
	bl	cpu_to_be32
	mov	r3, r0
	mov	r0, r10
	str	r3, [r4, #8]
	str	r3, [r4, #12]
	str	r3, [r4, #16]
	bl	cpu_to_be32
	ldr	r3, [r7, #4]
	str	r0, [r4, #4]
	add	r0, r3, #1
	str	r0, [r7, #4]
	bl	cpu_to_be64
	mov	r2, r9
	str	r0, [r4]
	ldr	r1, [r6, #8]
	mov	r0, r8
	bl	ubi_io_write_vid_hdr
	subs	r3, r0, #0
	bne	.L7
	ldr	r1, [r8]
	ldr	r2, [r6, #8]
	mov	r0, r8
	str	r1, [sp]
	ldr	r1, [sp, #12]
	bl	ubi_io_write_data
	subs	r3, r0, #0
	beq	.L17
.L7:
	ldr	r2, .L18+20
	ldr	r2, [r2]
	cmn	r3, r2
	bne	.L8
	ldr	r2, [sp, #8]
	subs	r2, r2, #1
	str	r2, [sp, #8]
	beq	.L8
	mov	r0, r6
	mov	r1, r7
	bl	list_add
	b	.L4
.L8:
	mov	r5, r3
.L13:
	mov	r1, r6
	mov	r0, r7
	bl	ubi_free_aeb
.L6:
	mov	r0, r9
	bl	ubi_free_vid_buf
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r3, .L18+24
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	mov	r0, r6
	bl	PTR_ERR
	mov	r5, r0
	b	.L6
.L17:
	mov	r5, r3
	ldr	r2, [r6, #8]
	ldr	r3, [r6, #4]
	mov	r0, r8
	stm	sp, {r4, r5}
	mov	r1, r7
	bl	ubi_add_to_av
	mov	r5, r0
	b	.L13
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	GFP_KERNEL
	.word	UBI_LAYOUT_VOLUME_TYPE
	.word	UBI_LAYOUT_VOLUME_ID
	.word	UBI_LAYOUT_VOLUME_COMPAT
	.word	EIO
	.word	ENOMEM
	.size	create_vtbl, .-create_vtbl
	.comm	UBI_LAYOUT_VOLUME_TYPE,4,4
	.comm	UBI_LAYOUT_VOLUME_ID,4,4
	.comm	UBI_LAYOUT_VOLUME_COMPAT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
