	.file	"extr_objectid.c_reiserfs_convert_objectid_map_v1.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	reiserfs_convert_objectid_map_v1
	.type	reiserfs_convert_objectid_map_v1, @function
reiserfs_convert_objectid_map_v1:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	SB_DISK_SUPER_BLOCK@PLT
	mov	rdi, rax
	mov	r12, rax
	call	sb_oid_cursize@PLT
	mov	ebp, DWORD PTR 0[r13]
	sub	ebp, DWORD PTR SB_SIZE[rip]
	mov	rdi, r12
	movsx	rbp, ebp
	movsx	r14, eax
	call	sb_oid_maxsize@PLT
	shr	rbp, 3
	mov	rdi, r13
	mov	ebx, eax
	add	ebp, ebp
	call	SB_BUFFER_WITH_SB@PLT
	mov	r13, QWORD PTR [rax]
	cmp	r14d, ebp
	jg	.L10
.L2:
	mov	eax, ebp
	sub	eax, 1
	js	.L5
	movsx	rdx, eax
	movsx	rcx, ebp
	mov	eax, eax
	sub	ebx, ebp
	lea	rsi, -4[0+rcx*4]
	sal	rax, 2
	movsx	rcx, ebx
	sub	rsi, rax
	lea	rdx, 4[r13+rdx*4]
	sal	rcx, 2
	add	rsi, r13
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR [rdx]
	mov	DWORD PTR [rcx+rdx], eax
	sub	rdx, 4
	cmp	rdx, rsi
	jne	.L4
.L5:
	mov	esi, ebp
	mov	rdi, r12
	call	set_sb_oid_maxsize@PLT
	mov	edi, DWORD PTR 8[r12]
	mov	edx, 4
	xor	esi, esi
	call	memset@PLT
	mov	edi, DWORD PTR 4[r12]
	call	generate_random_uuid@PLT
	mov	edi, DWORD PTR [r12]
	mov	edx, 4
	xor	esi, esi
	call	memset@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edx, DWORD PTR 0[r13+r14*4]
	movsx	rax, ebp
	mov	esi, ebp
	mov	rdi, r12
	mov	DWORD PTR 0[r13+rax*4], edx
	call	set_sb_oid_cursize@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	reiserfs_convert_objectid_map_v1, .-reiserfs_convert_objectid_map_v1
	.comm	SB_SIZE,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_objectid.c_reiserfs_convert_objectid_map_v1.c"
	.text
	.align	2
	.global	reiserfs_convert_objectid_map_v1
	.syntax unified
	.arm
	.fpu softvfp
	.type	reiserfs_convert_objectid_map_v1, %function
reiserfs_convert_objectid_map_v1:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	bl	SB_DISK_SUPER_BLOCK
	mov	r5, r0
	bl	sb_oid_cursize
	ldr	r2, .L11
	ldr	r3, [r6]
	ldr	r4, [r2]
	mov	r7, r0
	sub	r3, r3, r4
	mov	r0, r5
	lsr	r4, r3, #3
	bl	sb_oid_maxsize
	mov	r9, r0
	mov	r0, r6
	bl	SB_BUFFER_WITH_SB
	lsl	r8, r4, #1
	cmp	r7, r8
	ldr	r6, [r0]
	bgt	.L10
.L2:
	cmp	r8, #0
	beq	.L5
	sub	ip, r9, r8
	lsl	ip, ip, #2
	add	r3, r6, r4, lsl #3
.L4:
	ldr	r2, [r3]
	str	r2, [r3, ip]
	sub	r3, r3, #4
	cmp	r6, r3
	bne	.L4
.L5:
	mov	r1, r8
	mov	r0, r5
	bl	set_sb_oid_maxsize
	mov	r2, #4
	mov	r1, #0
	ldr	r0, [r5, #8]
	bl	memset
	ldr	r0, [r5, #4]
	bl	generate_random_uuid
	mov	r2, #4
	mov	r1, #0
	ldr	r0, [r5]
	bl	memset
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	add	r3, r6, #4
	sub	r7, r7, #-1073741823
	ldr	r1, [r3, r7, lsl #2]
	sub	r2, r8, #-1073741823
	str	r1, [r3, r2, lsl #2]
	mov	r0, r5
	mov	r1, r8
	bl	set_sb_oid_cursize
	b	.L2
.L12:
	.align	2
.L11:
	.word	SB_SIZE
	.size	reiserfs_convert_objectid_map_v1, .-reiserfs_convert_objectid_map_v1
	.comm	SB_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
