	.file	"extr_kapi.c_ubi_leb_map.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"map LEB %d:%d"
	.text
	.p2align 4
	.globl	ubi_leb_map
	.type	ubi_leb_map, @function
ubi_leb_map:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	edx, r12d
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR 8[rdi]
	lea	rdi, .LC0[rip]
	mov	esi, DWORD PTR 16[rbp]
	mov	r13, QWORD PTR 24[rbp]
	call	dbg_gen@PLT
	mov	rax, QWORD PTR UBI_READONLY[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L2
	mov	rax, QWORD PTR UBI_STATIC_VOLUME[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L2
	mov	esi, r12d
	mov	rdi, rbp
	call	ubi_leb_valid@PLT
	test	eax, eax
	je	.L10
	cmp	QWORD PTR 8[rbp], 0
	je	.L6
	mov	eax, DWORD PTR EBADF[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR EROFS[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, r12d
	mov	rdi, rbp
	call	ubi_eba_is_mapped@PLT
	test	rax, rax
	je	.L7
	mov	eax, DWORD PTR EBADMSG[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, r13
	pop	rbx
	.cfi_def_cfa_offset 32
	xor	r9d, r9d
	pop	rbp
	.cfi_def_cfa_offset 24
	xor	r8d, r8d
	pop	r12
	.cfi_def_cfa_offset 16
	xor	ecx, ecx
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	ubi_eba_write_leb@PLT
	.cfi_endproc
.LFE0:
	.size	ubi_leb_map, .-ubi_leb_map
	.comm	UBI_STATIC_VOLUME,8,8
	.comm	UBI_READONLY,8,8
	.comm	EROFS,4,4
	.comm	EINVAL,4,4
	.comm	EBADMSG,4,4
	.comm	EBADF,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_kapi.c_ubi_leb_map.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"map LEB %d:%d\000"
	.text
	.align	2
	.global	ubi_leb_map
	.syntax unified
	.arm
	.fpu softvfp
	.type	ubi_leb_map, %function
ubi_leb_map:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r5, [r0, #4]
	mov	r2, r1
	mov	r6, r1
	ldr	r0, .L11
	ldr	r1, [r5, #8]
	sub	sp, sp, #12
	ldr	r7, [r5, #12]
	bl	dbg_gen
	ldr	r3, .L11+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L2
	ldr	r3, .L11+8
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L2
	mov	r1, r6
	mov	r0, r5
	bl	ubi_leb_valid
	cmp	r0, #0
	beq	.L10
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L11+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r3, .L11+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	ldr	r3, .L11+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	mov	r1, r6
	mov	r0, r5
	bl	ubi_eba_is_mapped
	subs	r3, r0, #0
	ldrne	r3, .L11+24
	ldrne	r0, [r3]
	rsbne	r0, r0, #0
	bne	.L1
.L7:
	mov	r2, r6
	mov	r1, r5
	mov	r0, r7
	str	r3, [sp, #4]
	str	r3, [sp]
	bl	ubi_eba_write_leb
	b	.L1
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	UBI_READONLY
	.word	UBI_STATIC_VOLUME
	.word	EBADF
	.word	EROFS
	.word	EINVAL
	.word	EBADMSG
	.size	ubi_leb_map, .-ubi_leb_map
	.comm	UBI_STATIC_VOLUME,4,4
	.comm	UBI_READONLY,4,4
	.comm	EROFS,4,4
	.comm	EINVAL,4,4
	.comm	EBADMSG,4,4
	.comm	EBADF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
