	.file	"extr_inode.c_minix_write_inode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"IO error syncing minix inode [%s:%08lx]\n"
	.text
	.p2align 4
	.type	minix_write_inode, @function
minix_write_inode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	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
	call	INODE_VERSION@PLT
	cmp	rax, QWORD PTR MINIX_V1[rip]
	mov	rdi, rbx
	je	.L17
	call	V2_minix_update_inode@PLT
	mov	rbp, rax
	test	rbp, rbp
	je	.L18
.L4:
	mov	rax, QWORD PTR WB_SYNC_ALL[rip]
	cmp	QWORD PTR [r12], rax
	je	.L6
.L8:
	xor	r12d, r12d
.L7:
	mov	rdi, rbp
	call	brelse@PLT
	mov	eax, r12d
	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
.L17:
	.cfi_restore_state
	call	V1_minix_update_inode@PLT
	mov	rbp, rax
	test	rbp, rbp
	jne	.L4
.L18:
	mov	r12d, DWORD PTR EIO[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	call	buffer_dirty@PLT
	test	rax, rax
	je	.L8
	mov	rdi, rbp
	call	sync_dirty_buffer@PLT
	mov	rdi, rbp
	call	buffer_req@PLT
	test	rax, rax
	je	.L8
	mov	rdi, rbp
	call	buffer_uptodate@PLT
	test	eax, eax
	jne	.L8
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rbx]
	lea	rdi, .LC0[rip]
	mov	esi, DWORD PTR [rax]
	call	printk@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	minix_write_inode, .-minix_write_inode
	.comm	WB_SYNC_ALL,8,8
	.comm	MINIX_V1,8,8
	.comm	EIO,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.c_minix_write_inode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IO error syncing minix inode [%s:%08lx]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	minix_write_inode, %function
minix_write_inode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r6, r1
	bl	INODE_VERSION
	ldr	r3, .L19
	ldr	r3, [r3]
	cmp	r0, r3
	mov	r0, r5
	beq	.L17
	bl	V2_minix_update_inode
	mov	r4, r0
	cmp	r4, #0
	beq	.L18
.L4:
	ldr	r3, .L19+4
	ldr	r2, [r6]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L6
.L8:
	mov	r5, #0
.L7:
	mov	r0, r4
	bl	brelse
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L17:
	bl	V1_minix_update_inode
	mov	r4, r0
	cmp	r4, #0
	bne	.L4
.L18:
	ldr	r3, .L19+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L6:
	mov	r0, r4
	bl	buffer_dirty
	cmp	r0, #0
	beq	.L8
	mov	r0, r4
	bl	sync_dirty_buffer
	mov	r0, r4
	bl	buffer_req
	cmp	r0, #0
	beq	.L8
	mov	r0, r4
	bl	buffer_uptodate
	cmp	r0, #0
	bne	.L8
	ldm	r5, {r2, r3}
	ldr	r0, .L19+12
	ldr	r1, [r3]
	bl	printk
	ldr	r3, .L19+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L7
.L20:
	.align	2
.L19:
	.word	MINIX_V1
	.word	WB_SYNC_ALL
	.word	EIO
	.word	.LC0
	.size	minix_write_inode, .-minix_write_inode
	.comm	WB_SYNC_ALL,4,4
	.comm	MINIX_V1,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
