	.file	"extr_xfs_trans_buf.c_xfs_trans_dirty_buf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	xfs_trans_dirty_buf
	.type	xfs_trans_dirty_buf, @function
xfs_trans_dirty_buf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	QWORD PTR 16[rsi], rdi
	sete	dil
	mov	rbx, QWORD PTR 24[rsi]
	movzx	edi, dil
	call	ASSERT@PLT
	xor	edi, edi
	test	rbx, rbx
	setne	dil
	call	ASSERT@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, 1
	test	rax, rax
	je	.L2
	xor	edi, edi
	cmp	QWORD PTR xfs_buf_iodone_callbacks[rip], rax
	sete	dil
.L2:
	call	ASSERT@PLT
	mov	eax, DWORD PTR XBF_DONE[rip]
	or	DWORD PTR 0[rbp], eax
	lea	rdi, 16[rbx]
	call	atomic_read@PLT
	xor	edi, edi
	test	rax, rax
	setg	dil
	call	ASSERT@PLT
	mov	rax, QWORD PTR xfs_buf_iodone_callbacks[rip]
	mov	edx, DWORD PTR [rbx]
	mov	QWORD PTR 8[rbp], rax
	mov	eax, DWORD PTR xfs_buf_iodone[rip]
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR XFS_BLI_STALE[rip]
	test	edx, eax
	jne	.L12
.L3:
	mov	eax, DWORD PTR XFS_BLI_DIRTY[rip]
	or	eax, DWORD PTR XFS_BLI_LOGGED[rip]
	lea	rsi, 4[rbx]
	or	eax, edx
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR XFS_TRANS_DIRTY[rip]
	or	DWORD PTR [r12], eax
	mov	edi, DWORD PTR XFS_LI_DIRTY[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	set_bit@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	not	eax
	mov	edi, DWORD PTR 0[rbp]
	and	edi, DWORD PTR XBF_STALE[rip]
	and	eax, edx
	mov	DWORD PTR [rbx], eax
	call	ASSERT@PLT
	mov	eax, DWORD PTR XBF_STALE[rip]
	mov	edx, DWORD PTR [rbx]
	not	eax
	and	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR XFS_BLF_CANCEL[rip]
	not	eax
	and	DWORD PTR 12[rbx], eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	xfs_trans_dirty_buf, .-xfs_trans_dirty_buf
	.comm	xfs_buf_iodone_callbacks,8,8
	.comm	xfs_buf_iodone,4,4
	.comm	XFS_TRANS_DIRTY,4,4
	.comm	XFS_LI_DIRTY,4,4
	.comm	XFS_BLI_STALE,4,4
	.comm	XFS_BLI_LOGGED,4,4
	.comm	XFS_BLI_DIRTY,4,4
	.comm	XFS_BLF_CANCEL,4,4
	.comm	XBF_STALE,4,4
	.comm	XBF_DONE,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_trans_buf.c_xfs_trans_dirty_buf.c"
	.text
	.align	2
	.global	xfs_trans_dirty_buf
	.syntax unified
	.arm
	.fpu softvfp
	.type	xfs_trans_dirty_buf, %function
xfs_trans_dirty_buf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r0, [r1, #8]
	mov	r5, r1
	sub	r0, r0, r6
	clz	r0, r0
	ldr	r4, [r1, #12]
	lsr	r0, r0, #5
	bl	ASSERT
	subs	r0, r4, #0
	movne	r0, #1
	bl	ASSERT
	ldr	r3, [r5, #4]
	cmp	r3, #0
	ldrne	r7, .L11
	moveq	r0, #1
	ldrne	r0, [r7]
	ldreq	r7, .L11
	subne	r0, r0, r3
	clzne	r0, r0
	lsrne	r0, r0, #5
	bl	ASSERT
	ldr	r2, .L11+4
	ldr	r3, [r5]
	ldr	r2, [r2]
	add	r0, r4, #16
	orr	r3, r3, r2
	str	r3, [r5]
	bl	atomic_read
	cmp	r0, #0
	movle	r0, #0
	movgt	r0, #1
	bl	ASSERT
	ldr	r3, .L11+8
	ldr	r2, .L11+12
	ldr	ip, [r4]
	ldr	r3, [r3]
	ldr	r1, [r7]
	ldr	r2, [r2]
	tst	ip, r3
	str	r1, [r5, #4]
	str	r2, [r4, #8]
	bne	.L10
.L3:
	mov	r1, r4
	ldr	r3, .L11+16
	ldr	r2, .L11+20
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r0, .L11+24
	orr	r3, r3, r2
	ldr	r0, [r0]
	ldr	r2, [r6]
	orr	r3, r3, ip
	orr	r2, r2, r0
	ldr	r0, .L11+28
	str	r3, [r1], #4
	str	r2, [r6]
	ldr	r0, [r0]
	pop	{r4, r5, r6, r7, r8, lr}
	b	set_bit
.L10:
	ldr	r7, .L11+32
	ldr	r0, [r5]
	ldr	r2, [r7]
	bic	r3, ip, r3
	str	r3, [r4]
	and	r0, r0, r2
	bl	ASSERT
	ldr	r3, .L11+36
	ldr	r2, [r5]
	ldr	r1, [r3]
	ldr	r0, [r7]
	ldr	r3, [r4, #12]
	bic	r2, r2, r0
	bic	r3, r3, r1
	ldr	ip, [r4]
	str	r2, [r5]
	str	r3, [r4, #12]
	b	.L3
.L12:
	.align	2
.L11:
	.word	xfs_buf_iodone_callbacks
	.word	XBF_DONE
	.word	XFS_BLI_STALE
	.word	xfs_buf_iodone
	.word	XFS_BLI_DIRTY
	.word	XFS_BLI_LOGGED
	.word	XFS_TRANS_DIRTY
	.word	XFS_LI_DIRTY
	.word	XBF_STALE
	.word	XFS_BLF_CANCEL
	.size	xfs_trans_dirty_buf, .-xfs_trans_dirty_buf
	.comm	xfs_buf_iodone_callbacks,4,4
	.comm	xfs_buf_iodone,4,4
	.comm	XFS_TRANS_DIRTY,4,4
	.comm	XFS_LI_DIRTY,4,4
	.comm	XFS_BLI_STALE,4,4
	.comm	XFS_BLI_LOGGED,4,4
	.comm	XFS_BLI_DIRTY,4,4
	.comm	XFS_BLF_CANCEL,4,4
	.comm	XBF_STALE,4,4
	.comm	XBF_DONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
