	.file	"extr_ioctl.c_btrfs_ioctl_trans_start.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	btrfs_ioctl_trans_start, @function
btrfs_ioctl_trans_start:
.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	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	fdentry@PLT
	mov	rdi, QWORD PTR [rax]
	call	BTRFS_I@PLT
	mov	edi, DWORD PTR CAP_SYS_ADMIN[rip]
	mov	ebx, DWORD PTR EPERM[rip]
	mov	rbp, QWORD PTR [rax]
	call	capable@PLT
	test	eax, eax
	je	.L2
	cmp	QWORD PTR 8[r12], 0
	je	.L3
	mov	ebx, DWORD PTR EINPROGRESS[rip]
	neg	ebx
.L4:
	movsx	rax, ebx
.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
.L2:
	.cfi_restore_state
	neg	ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	mov	ebx, DWORD PTR EROFS[rip]
	call	btrfs_root_readonly@PLT
	test	rax, rax
	jne	.L2
	mov	edi, DWORD PTR [r12]
	call	mnt_want_write@PLT
	mov	ebx, eax
	test	eax, eax
	jne	.L4
	mov	rdi, QWORD PTR 0[rbp]
	call	atomic_inc@PLT
	mov	rdi, rbp
	mov	r13d, DWORD PTR ENOMEM[rip]
	call	btrfs_start_ioctl_transaction@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L10
	mov	QWORD PTR 8[r12], rbx
	jmp	.L1
.L10:
	mov	rdi, QWORD PTR 0[rbp]
	mov	ebx, r13d
	neg	ebx
	call	atomic_dec@PLT
	mov	edi, DWORD PTR [r12]
	call	mnt_drop_write@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	btrfs_ioctl_trans_start, .-btrfs_ioctl_trans_start
	.comm	EROFS,4,4
	.comm	EPERM,4,4
	.comm	ENOMEM,4,4
	.comm	EINPROGRESS,4,4
	.comm	CAP_SYS_ADMIN,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_ioctl.c_btrfs_ioctl_trans_start.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	btrfs_ioctl_trans_start, %function
btrfs_ioctl_trans_start:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	bl	fdentry
	ldr	r0, [r0]
	bl	BTRFS_I
	mov	r2, r0
	ldr	r1, .L10
	ldr	r3, .L10+4
	ldr	r0, [r1]
	ldr	r6, [r2]
	ldr	r4, [r3]
	bl	capable
	cmp	r0, #0
	beq	.L8
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L10+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, .L10+12
	mov	r0, r6
	ldr	r4, [r3]
	bl	btrfs_root_readonly
	cmp	r0, #0
	bne	.L8
	ldr	r0, [r5]
	bl	mnt_want_write
	subs	r4, r0, #0
	bne	.L1
	ldr	r0, [r6]
	bl	atomic_inc
	ldr	r3, .L10+16
	mov	r0, r6
	ldr	r8, [r3]
	bl	btrfs_start_ioctl_transaction
	mov	r7, r0
	bl	IS_ERR
	subs	r4, r0, #0
	streq	r7, [r5, #4]
	beq	.L1
	ldr	r0, [r6]
	bl	atomic_dec
	ldr	r0, [r5]
	rsb	r4, r8, #0
	bl	mnt_drop_write
	b	.L1
.L11:
	.align	2
.L10:
	.word	CAP_SYS_ADMIN
	.word	EPERM
	.word	EINPROGRESS
	.word	EROFS
	.word	ENOMEM
	.size	btrfs_ioctl_trans_start, .-btrfs_ioctl_trans_start
	.comm	EROFS,4,4
	.comm	EPERM,4,4
	.comm	ENOMEM,4,4
	.comm	EINPROGRESS,4,4
	.comm	CAP_SYS_ADMIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
