	.file	"extr_inode-tests.c_test_hole_first.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"running hole first btrfs_get_extent test"
	.align 8
.LC1:
	.string	"got an error when we shouldn't have"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"expected a hole, got %llu"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"unexpected extent wanted start 0 len %u, got start %llu len %llu"
	.align 8
.LC4:
	.string	"wrong flags, wanted %lu, have %lu"
	.align 8
.LC5:
	.string	"expected a real extent, got %llu"
	.align 8
.LC6:
	.string	"unexpected extent wanted start %u len %u, got start %llu len %llu"
	.align 8
.LC7:
	.string	"unexpected flags set, wanted 0 got %lu"
	.text
	.p2align 4
	.type	test_hole_first, @function
test_hole_first:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	r12d, edi
	lea	rdi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r15d, DWORD PTR ENOMEM[rip]
	call	test_msg@PLT
	xor	eax, eax
	neg	r15d
	call	btrfs_new_test_inode@PLT
	test	rax, rax
	je	.L23
	mov	rdi, rax
	mov	rbp, rax
	call	BTRFS_I@PLT
	mov	edx, DWORD PTR BTRFS_INODE_ITEM_KEY[rip]
	mov	rdi, rbp
	mov	DWORD PTR 20[rax], edx
	call	BTRFS_I@PLT
	mov	edx, DWORD PTR BTRFS_FIRST_FREE_OBJECTID[rip]
	mov	rdi, rbp
	mov	DWORD PTR 16[rax], edx
	call	BTRFS_I@PLT
	mov	esi, r12d
	mov	edi, ebx
	mov	QWORD PTR 8[rax], 0
	call	btrfs_alloc_dummy_fs_info@PLT
	mov	r14, rax
	test	rax, rax
	je	.L24
	mov	rdi, rax
	call	btrfs_alloc_dummy_root@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L20
	mov	rdi, r14
	mov	esi, ebx
	call	alloc_dummy_extent_buffer@PLT
	mov	DWORD PTR 24[r13], eax
	mov	edi, eax
	test	eax, eax
	je	.L20
	xor	esi, esi
	lea	ebx, [r12+r12]
	call	btrfs_set_header_nritems@PLT
	mov	edi, DWORD PTR 24[r13]
	xor	esi, esi
	call	btrfs_set_header_level@PLT
	mov	rdi, rbp
	call	BTRFS_I@PLT
	mov	rdi, r13
	mov	r15d, DWORD PTR EINVAL[rip]
	mov	QWORD PTR [rax], r13
	neg	r15d
	call	insert_inode_item_key@PLT
	mov	eax, DWORD PTR BTRFS_FILE_EXTENT_REG[rip]
	push	1
	.cfi_def_cfa_offset 88
	xor	r8d, r8d
	push	0
	.cfi_def_cfa_offset 96
	mov	r9d, r12d
	mov	ecx, r12d
	mov	edx, r12d
	push	rax
	.cfi_def_cfa_offset 104
	mov	esi, r12d
	mov	rdi, r13
	push	r12
	.cfi_def_cfa_offset 112
	call	insert_extent@PLT
	mov	DWORD PTR 40[rsp], ebx
	mov	rdi, rbp
	add	rsp, 32
	.cfi_def_cfa_offset 80
	call	BTRFS_I@PLT
	xor	r9d, r9d
	mov	r8d, ebx
	xor	ecx, ecx
	mov	rdi, rax
	xor	edx, edx
	xor	esi, esi
	call	btrfs_get_extent@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L21
	mov	rsi, QWORD PTR [rbx]
	cmp	rsi, QWORD PTR EXTENT_MAP_HOLE[rip]
	jne	.L25
	mov	edx, DWORD PTR 8[rbx]
	mov	r10d, DWORD PTR 12[rbx]
	test	edx, edx
	jne	.L10
	cmp	r12d, r10d
	jne	.L10
	mov	rdx, QWORD PTR 16[rbx]
	mov	rsi, QWORD PTR vacancy_only[rip]
	cmp	rdx, rsi
	jne	.L26
	mov	rdi, rbx
	mov	DWORD PTR 12[rsp], r10d
	call	free_extent_map@PLT
	mov	rdi, rbp
	call	BTRFS_I@PLT
	mov	r10d, DWORD PTR 12[rsp]
	xor	r9d, r9d
	xor	edx, edx
	mov	r8d, DWORD PTR 8[rsp]
	xor	esi, esi
	mov	rdi, rax
	mov	ecx, r10d
	mov	DWORD PTR 8[rsp], r10d
	call	btrfs_get_extent@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	IS_ERR@PLT
	mov	r10d, DWORD PTR 8[rsp]
	test	rax, rax
	jne	.L21
	mov	rsi, QWORD PTR [rbx]
	movsx	rax, r10d
	cmp	rsi, rax
	jne	.L27
	mov	ecx, DWORD PTR 8[rbx]
	mov	r8d, DWORD PTR 12[rbx]
	cmp	ecx, r10d
	jne	.L15
	cmp	r10d, r8d
	jne	.L15
	mov	rsi, QWORD PTR 16[rbx]
	test	rsi, rsi
	jne	.L28
	xor	r15d, r15d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR TEST_ALLOC_ROOT[rip]
	xor	ebx, ebx
	call	test_std_err@PLT
.L5:
	mov	rdi, rbx
	call	IS_ERR@PLT
	test	rax, rax
	je	.L29
.L17:
	mov	rdi, rbp
	call	iput@PLT
	mov	rdi, r13
	call	btrfs_free_dummy_root@PLT
	mov	rdi, r14
	call	btrfs_free_dummy_fs_info@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L29:
	.cfi_restore_state
	mov	rdi, rbx
	call	free_extent_map@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	test_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edi, DWORD PTR TEST_ALLOC_INODE[rip]
	call	test_std_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, DWORD PTR TEST_ALLOC_FS_INFO[rip]
	xor	ebx, ebx
	xor	r13d, r13d
	call	test_std_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	ecx, r10d
	mov	esi, r12d
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	test_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	test_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	test_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edx, r10d
	mov	esi, r10d
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	test_err@PLT
	jmp	.L5
.L27:
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	test_err@PLT
	jmp	.L5
.L28:
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	test_err@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	test_hole_first, .-test_hole_first
	.comm	vacancy_only,8,8
	.comm	TEST_ALLOC_ROOT,4,4
	.comm	TEST_ALLOC_INODE,4,4
	.comm	TEST_ALLOC_FS_INFO,4,4
	.comm	EXTENT_MAP_HOLE,8,8
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	BTRFS_INODE_ITEM_KEY,4,4
	.comm	BTRFS_FIRST_FREE_OBJECTID,4,4
	.comm	BTRFS_FILE_EXTENT_REG,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_inode-tests.c_test_hole_first.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"running hole first btrfs_get_extent test\000"
	.align	2
.LC1:
	.ascii	"got an error when we shouldn't have\000"
	.align	2
.LC2:
	.ascii	"expected a hole, got %llu\000"
	.align	2
.LC3:
	.ascii	"unexpected extent wanted start 0 len %u, got start "
	.ascii	"%llu len %llu\000"
	.align	2
.LC4:
	.ascii	"wrong flags, wanted %lu, have %lu\000"
	.align	2
.LC5:
	.ascii	"expected a real extent, got %llu\000"
	.align	2
.LC6:
	.ascii	"unexpected extent wanted start %u len %u, got start"
	.ascii	" %llu len %llu\000"
	.align	2
.LC7:
	.ascii	"unexpected flags set, wanted 0 got %lu\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_hole_first, %function
test_hole_first:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L29
	sub	sp, sp, #36
	mov	r6, r0
	ldr	r0, .L29+4
	ldr	r7, [r3]
	mov	fp, r1
	bl	test_msg
	bl	btrfs_new_test_inode
	subs	r5, r0, #0
	rsb	r7, r7, #0
	beq	.L23
	bl	BTRFS_I
	mov	r3, r0
	ldr	r2, .L29+8
	mov	r0, r5
	ldr	r2, [r2]
	mov	r4, #0
	str	r2, [r3, #12]
	bl	BTRFS_I
	mov	r3, r0
	ldr	r2, .L29+12
	mov	r0, r5
	ldr	r2, [r2]
	str	r2, [r3, #8]
	bl	BTRFS_I
	mov	r1, r6
	str	r4, [r0, #4]
	mov	r0, fp
	bl	btrfs_alloc_dummy_fs_info
	subs	r8, r0, #0
	beq	.L24
	bl	btrfs_alloc_dummy_root
	mov	r9, r0
	bl	IS_ERR
	subs	r10, r0, #0
	bne	.L20
	mov	r1, fp
	mov	r0, r8
	bl	alloc_dummy_extent_buffer
	cmp	r0, #0
	mov	r4, r0
	str	r0, [r9, #16]
	beq	.L20
	mov	r1, r10
	bl	btrfs_set_header_nritems
	mov	r1, r10
	ldr	r0, [r9, #16]
	bl	btrfs_set_header_level
	mov	r0, r5
	bl	BTRFS_I
	ldr	r3, .L29+16
	str	r9, [r0]
	mov	r0, r9
	ldr	r7, [r3]
	bl	insert_inode_item_key
	mov	r3, #1
	ldr	r2, .L29+20
	str	r10, [sp, #16]
	ldr	r2, [r2]
	mov	r1, r6
	str	r2, [sp, #12]
	str	r3, [sp, #20]
	mov	r2, r6
	mov	r3, r6
	mov	r0, r9
	str	r6, [sp, #8]
	str	r6, [sp, #4]
	str	r10, [sp]
	bl	insert_extent
	lsl	fp, r6, #1
	mov	r0, r5
	bl	BTRFS_I
	mov	r3, r10
	mov	r2, r10
	mov	r1, r10
	str	r10, [sp, #4]
	str	fp, [sp]
	bl	btrfs_get_extent
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	rsb	r7, r7, #0
	bne	.L21
	ldr	r3, .L29+24
	ldr	r1, [r4]
	ldr	r3, [r3]
	cmp	r1, r3
	bne	.L25
	ldmib	r4, {r2, r10}
	cmp	r2, #0
	bne	.L10
	cmp	r6, r10
	bne	.L10
	ldr	r1, .L29+28
	ldr	r3, [r4, #12]
	ldr	r1, [r1]
	cmp	r3, r1
	bne	.L26
	mov	r0, r4
	str	r2, [sp, #28]
	bl	free_extent_map
	mov	r0, r5
	bl	BTRFS_I
	ldr	r2, [sp, #28]
	mov	r3, r10
	mov	r1, r2
	str	r2, [sp, #4]
	str	fp, [sp]
	bl	btrfs_get_extent
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L21
	ldr	r1, [r4]
	cmp	r1, r10
	bne	.L27
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #8]
	cmp	r3, r10
	bne	.L15
	cmp	r10, r2
	bne	.L15
	ldr	r1, [r4, #12]
	cmp	r1, #0
	moveq	r7, r1
	beq	.L5
	ldr	r0, .L29+32
	bl	test_err
	b	.L5
.L20:
	ldr	r3, .L29+36
	ldr	r0, [r3]
	bl	test_std_err
.L5:
	mov	r0, r4
	bl	IS_ERR
	cmp	r0, #0
	beq	.L28
.L17:
	mov	r0, r5
	bl	iput
	mov	r0, r9
	bl	btrfs_free_dummy_root
	mov	r0, r8
	bl	btrfs_free_dummy_fs_info
	mov	r0, r7
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L28:
	mov	r0, r4
	bl	free_extent_map
	b	.L17
.L25:
	ldr	r0, .L29+40
	bl	test_err
	b	.L5
.L23:
	ldr	r3, .L29+44
	ldr	r0, [r3]
	bl	test_std_err
	mov	r0, r7
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	ldr	r3, .L29+48
	mov	r4, r8
	ldr	r0, [r3]
	bl	test_std_err
	mov	r9, r8
	b	.L5
.L10:
	mov	r3, r10
	mov	r1, r6
	ldr	r0, .L29+52
	bl	test_err
	b	.L5
.L21:
	ldr	r0, .L29+56
	bl	test_err
	b	.L5
.L26:
	mov	r2, r3
	ldr	r0, .L29+60
	bl	test_err
	b	.L5
.L15:
	str	r2, [sp]
	mov	r1, r10
	mov	r2, r10
	ldr	r0, .L29+64
	bl	test_err
	b	.L5
.L27:
	ldr	r0, .L29+68
	bl	test_err
	b	.L5
.L30:
	.align	2
.L29:
	.word	ENOMEM
	.word	.LC0
	.word	BTRFS_INODE_ITEM_KEY
	.word	BTRFS_FIRST_FREE_OBJECTID
	.word	EINVAL
	.word	BTRFS_FILE_EXTENT_REG
	.word	EXTENT_MAP_HOLE
	.word	vacancy_only
	.word	.LC7
	.word	TEST_ALLOC_ROOT
	.word	.LC2
	.word	TEST_ALLOC_INODE
	.word	TEST_ALLOC_FS_INFO
	.word	.LC3
	.word	.LC1
	.word	.LC4
	.word	.LC6
	.word	.LC5
	.size	test_hole_first, .-test_hole_first
	.comm	vacancy_only,4,4
	.comm	TEST_ALLOC_ROOT,4,4
	.comm	TEST_ALLOC_INODE,4,4
	.comm	TEST_ALLOC_FS_INFO,4,4
	.comm	EXTENT_MAP_HOLE,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	BTRFS_INODE_ITEM_KEY,4,4
	.comm	BTRFS_FIRST_FREE_OBJECTID,4,4
	.comm	BTRFS_FILE_EXTENT_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
