	.file	"extr_xfs_attr_leaf.c_xfs_attr_leaf_setflag.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	xfs_attr_leaf_setflag
	.type	xfs_attr_leaf_setflag, @function
xfs_attr_leaf_setflag:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	trace_xfs_attr_leaf_setflag@PLT
	mov	edx, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR 8[rbx]
	mov	r8, rsp
	mov	edi, DWORD PTR 12[rbx]
	mov	r9d, DWORD PTR XFS_ATTR_FORK[rip]
	mov	ecx, -1
	call	xfs_da_read_buf@PLT
	test	eax, eax
	je	.L7
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L7:
	.cfi_restore_state
	xor	edi, edi
	cmp	QWORD PTR [rsp], 0
	setne	dil
	call	ASSERT@PLT
	mov	rax, QWORD PTR [rsp]
	mov	r12, QWORD PTR [rax]
	mov	edi, DWORD PTR 12[r12]
	call	be16_to_cpu@PLT
	xor	edi, edi
	cmp	QWORD PTR XFS_ATTR_LEAF_MAGIC[rip], rax
	sete	dil
	call	ASSERT@PLT
	mov	edi, DWORD PTR 8[r12]
	mov	rbp, QWORD PTR [rbx]
	call	be16_to_cpu@PLT
	xor	edi, edi
	cmp	rbp, rax
	setl	dil
	call	ASSERT@PLT
	mov	rdi, QWORD PTR [rbx]
	not	rdi
	shr	rdi, 63
	call	ASSERT@PLT
	mov	rax, QWORD PTR [rbx]
	xor	edi, edi
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR [r12]
	lea	rbp, [rax+rdx*8]
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR XFS_ATTR_INCOMPLETE[rip], eax
	sete	dil
	call	ASSERT@PLT
	mov	edx, 24
	mov	rsi, rbp
	mov	rdi, r12
	mov	eax, DWORD PTR XFS_ATTR_INCOMPLETE[rip]
	or	DWORD PTR 0[rbp], eax
	call	XFS_DA_LOGRANGE@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	rsi, QWORD PTR [rsp]
	mov	edx, eax
	call	xfs_da_log_buf@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR XFS_ATTR_LOCAL[rip], eax
	je	.L9
.L3:
	mov	rdi, QWORD PTR [rsp]
	call	xfs_da_buf_done@PLT
	mov	esi, DWORD PTR 8[rbx]
	lea	rdi, 12[rbx]
	call	xfs_trans_roll@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, r12
	call	xfs_attr_leaf_name_remote@PLT
	mov	rdi, r12
	mov	edx, 24
	mov	QWORD PTR 16[rax], 0
	mov	rsi, rax
	mov	QWORD PTR 8[rax], 0
	call	XFS_DA_LOGRANGE@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	rsi, QWORD PTR [rsp]
	mov	edx, eax
	call	xfs_da_log_buf@PLT
	jmp	.L3
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	xfs_attr_leaf_setflag, .-xfs_attr_leaf_setflag
	.comm	XFS_ATTR_LOCAL,4,4
	.comm	XFS_ATTR_LEAF_MAGIC,8,8
	.comm	XFS_ATTR_INCOMPLETE,4,4
	.comm	XFS_ATTR_FORK,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_xfs_attr_leaf.c_xfs_attr_leaf_setflag.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	xfs_attr_leaf_setflag
	.syntax unified
	.arm
	.fpu softvfp
	.type	xfs_attr_leaf_setflag, %function
xfs_attr_leaf_setflag:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	ldr	r3, .L10
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	trace_xfs_attr_leaf_setflag
	ldr	r3, .L10+4
	ldr	r2, [r4, #12]
	ldr	ip, [r3]
	add	r3, sp, #8
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #8]
	stm	sp, {r3, ip}
	mvn	r3, #0
	bl	xfs_da_read_buf
	cmp	r0, #0
	beq	.L7
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	ldr	r0, [sp, #8]
	ldr	r9, .L10+8
	subs	r0, r0, #0
	movne	r0, #1
	bl	ASSERT
	ldr	r3, [sp, #8]
	ldr	r7, [r3]
	ldr	r0, [r7, #8]
	bl	be16_to_cpu
	ldr	r3, .L10+12
	ldr	r3, [r3]
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	ldr	r0, [r7, #4]
	ldr	r5, [r4]
	bl	be16_to_cpu
	cmp	r5, r0
	movge	r0, #0
	movlt	r0, #1
	bl	ASSERT
	ldr	r0, [r4]
	mvn	r0, r0
	lsr	r0, r0, #31
	bl	ASSERT
	ldr	r1, [r4]
	ldr	r6, [r7]
	add	r1, r1, r1, lsl #1
	lsl	r8, r1, #2
	ldr	r3, [r9]
	ldr	r2, [r6, r8]
	add	r5, r6, r1, lsl #2
	tst	r2, r3
	moveq	r0, #1
	movne	r0, #0
	bl	ASSERT
	ldr	r2, [r9]
	ldr	r3, [r6, r8]
	mov	r1, r5
	orr	r3, r3, r2
	str	r3, [r6, r8]
	mov	r2, #12
	mov	r0, r7
	ldr	r5, [r4, #8]
	ldr	r9, [sp, #8]
	bl	XFS_DA_LOGRANGE
	mov	r1, r9
	mov	r2, r0
	mov	r0, r5
	bl	xfs_da_log_buf
	ldr	r2, .L10+16
	ldr	r3, [r6, r8]
	ldr	r5, [r2]
	ands	r5, r3, r5
	beq	.L9
.L3:
	ldr	r0, [sp, #8]
	bl	xfs_da_buf_done
	ldr	r1, [r4, #4]
	add	r0, r4, #8
	bl	xfs_trans_roll
	b	.L1
.L9:
	ldr	r1, [r4]
	mov	r0, r7
	bl	xfs_attr_leaf_name_remote
	mov	r1, r0
	mov	r2, #12
	str	r5, [r1, #8]
	str	r5, [r1, #4]
	mov	r0, r7
	ldr	r5, [r4, #8]
	ldr	r6, [sp, #8]
	bl	XFS_DA_LOGRANGE
	mov	r1, r6
	mov	r2, r0
	mov	r0, r5
	bl	xfs_da_log_buf
	b	.L3
.L8:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	XFS_ATTR_FORK
	.word	XFS_ATTR_INCOMPLETE
	.word	XFS_ATTR_LEAF_MAGIC
	.word	XFS_ATTR_LOCAL
	.size	xfs_attr_leaf_setflag, .-xfs_attr_leaf_setflag
	.comm	XFS_ATTR_LOCAL,4,4
	.comm	XFS_ATTR_LEAF_MAGIC,4,4
	.comm	XFS_ATTR_INCOMPLETE,4,4
	.comm	XFS_ATTR_FORK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
