	.file	"extr_rbd.c_rbd_obj_advance_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rbd_obj_advance_read, @function
rbd_obj_advance_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 16[rdi]
	mov	rbx, rsi
	mov	r12, QWORD PTR [rax]
	mov	eax, DWORD PTR [rdi]
	cmp	eax, 129
	je	.L2
	cmp	eax, 130
	je	.L3
	cmp	eax, 128
	je	.L24
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	BUG@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR [rsi]
	test	eax, eax
	je	.L25
.L14:
	mov	eax, 1
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	esi, DWORD PTR [rsi]
	xor	edi, edi
	test	esi, esi
	sete	dil
	call	rbd_assert@PLT
	mov	rdi, rbp
	call	rbd_obj_may_exist@PLT
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR ENOENT[rip]
	neg	eax
	mov	DWORD PTR [rbx], eax
	mov	DWORD PTR 0[rbp], 130
.L3:
	mov	esi, DWORD PTR [rbx]
	mov	eax, esi
	add	eax, DWORD PTR ENOENT[rip]
	je	.L26
.L8:
	test	esi, esi
	js	.L14
	mov	edx, DWORD PTR 4[rbp]
	cmp	edx, esi
	jle	.L15
	sub	edx, esi
	mov	rdi, rbp
	call	rbd_obj_zero_range@PLT
.L16:
	mov	DWORD PTR [rbx], 0
	mov	eax, 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	ecx, DWORD PTR [r12]
	test	ecx, ecx
	jne	.L9
.L13:
	mov	edx, DWORD PTR 4[rbp]
	xor	esi, esi
	mov	rdi, rbp
	call	rbd_obj_zero_range@PLT
	mov	DWORD PTR [rbx], 0
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	call	rbd_obj_img_extents_bytes@PLT
	mov	edx, DWORD PTR 4[rbp]
	cmp	edx, eax
	jle	.L14
	sub	edx, eax
	mov	esi, eax
	mov	rdi, rbp
	call	rbd_obj_zero_range@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	sete	dil
	movzx	edi, dil
	call	rbd_assert@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L9:
	xor	esi, esi
	mov	rdi, rbp
	call	rbd_obj_calc_img_extents@PLT
	test	eax, eax
	jne	.L22
	mov	edx, DWORD PTR 8[rbp]
	test	edx, edx
	jne	.L27
	mov	esi, DWORD PTR [rbx]
	mov	eax, esi
	add	eax, DWORD PTR ENOENT[rip]
	jne	.L8
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L22:
	mov	DWORD PTR [rbx], eax
	mov	eax, 1
	jmp	.L1
.L5:
	mov	rdi, rbp
	call	rbd_obj_read_object@PLT
	test	eax, eax
	jne	.L22
	mov	DWORD PTR 0[rbp], 130
	jmp	.L1
.L27:
	mov	rdi, rbp
	call	rbd_obj_read_from_parent@PLT
	test	eax, eax
	jne	.L22
	mov	DWORD PTR 0[rbp], 129
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	rbd_obj_advance_read, .-rbd_obj_advance_read
	.comm	ENOENT,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_rbd.c_rbd_obj_advance_read.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rbd_obj_advance_read, %function
rbd_obj_advance_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	ldr	r2, [r0, #12]
	cmp	r3, #129
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, r1
	ldr	r6, [r2]
	beq	.L2
	cmp	r3, #130
	ldreq	r7, .L28
	beq	.L3
	cmp	r3, #128
	beq	.L24
	pop	{r4, r5, r6, r7, r8, lr}
	b	BUG
.L2:
	ldr	r3, [r1]
	cmp	r3, #0
	beq	.L25
.L14:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	ldr	r0, [r1]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	rbd_assert
	mov	r0, r4
	bl	rbd_obj_may_exist
	cmp	r0, #0
	bne	.L5
	mov	r2, #130
	ldr	r7, .L28
	ldr	r3, [r7]
	rsb	r3, r3, #0
	str	r3, [r5]
	str	r2, [r4]
.L3:
	ldr	r1, [r5]
	ldr	r3, [r7]
	cmn	r1, r3
	beq	.L26
.L8:
	cmp	r1, #0
	blt	.L14
	ldr	r2, [r4, #4]
	cmp	r2, r1
	ble	.L15
	mov	r0, r4
	sub	r2, r2, r1
	bl	rbd_obj_zero_range
.L16:
	mov	r3, #0
	mov	r0, #1
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L26:
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L9
.L13:
	mov	r0, r4
	mov	r1, #0
	ldr	r2, [r4, #4]
	bl	rbd_obj_zero_range
	mov	r3, #0
	mov	r0, #1
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	bl	rbd_obj_img_extents_bytes
	ldr	r2, [r4, #4]
	cmp	r2, r0
	ble	.L14
	mov	r1, r0
	sub	r2, r2, r0
	mov	r0, r4
	bl	rbd_obj_zero_range
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	moveq	r0, #1
	movne	r0, #0
	bl	rbd_assert
	b	.L16
.L9:
	mov	r1, #0
	mov	r0, r4
	bl	rbd_obj_calc_img_extents
	cmp	r0, #0
	bne	.L22
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L27
	ldr	r3, [r7]
	ldr	r1, [r5]
	cmn	r1, r3
	bne	.L8
	b	.L13
.L22:
	str	r0, [r5]
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, r4
	bl	rbd_obj_read_object
	cmp	r0, #0
	bne	.L22
	mov	r3, #130
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L27:
	mov	r0, r4
	bl	rbd_obj_read_from_parent
	cmp	r0, #0
	bne	.L22
	mov	r3, #129
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L29:
	.align	2
.L28:
	.word	ENOENT
	.size	rbd_obj_advance_read, .-rbd_obj_advance_read
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
