	.file	"extr_node.c_set_node_addr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	set_node_addr, @function
set_node_addr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	NM_I@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	esi, 1
	mov	r14, rax
	call	__alloc_nat_entry@PLT
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], rax
	call	down_write@PLT
	mov	esi, DWORD PTR 12[rbx]
	mov	rdi, r14
	call	__lookup_nat_cache@PLT
	mov	r8, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L21
	cmp	QWORD PTR NEW_ADDR[rip], r12
	mov	rbp, rax
	je	.L22
.L3:
	cmp	rbp, r8
	je	.L4
	mov	rdi, r8
	call	__free_nat_entry@PLT
.L4:
	mov	rdi, rbp
	call	nat_get_blkaddr@PLT
	xor	esi, esi
	cmp	QWORD PTR [rbx], rax
	mov	rdi, r13
	setne	sil
	call	f2fs_bug_on@PLT
	mov	rdi, rbp
	call	nat_get_blkaddr@PLT
	mov	rdi, r13
	mov	r8, rax
	mov	rax, QWORD PTR NULL_ADDR[rip]
	cmp	rax, r12
	sete	dl
	xor	esi, esi
	cmp	r8, rax
	sete	sil
	and	esi, edx
	call	f2fs_bug_on@PLT
	mov	rdi, rbp
	call	nat_get_blkaddr@PLT
	mov	rdi, r13
	mov	r8, rax
	mov	rax, QWORD PTR NEW_ADDR[rip]
	cmp	rax, r12
	sete	dl
	xor	esi, esi
	cmp	r8, rax
	sete	sil
	and	esi, edx
	call	f2fs_bug_on@PLT
	mov	rdi, rbp
	call	nat_get_blkaddr@PLT
	mov	rdi, rax
	call	__is_valid_data_blkaddr@PLT
	xor	esi, esi
	test	rax, rax
	je	.L5
	xor	esi, esi
	cmp	QWORD PTR NEW_ADDR[rip], r12
	sete	sil
.L5:
	mov	rdi, r13
	call	f2fs_bug_on@PLT
	mov	rdi, rbp
	call	nat_get_blkaddr@PLT
	cmp	rax, QWORD PTR NEW_ADDR[rip]
	je	.L6
	cmp	QWORD PTR NULL_ADDR[rip], r12
	je	.L23
.L6:
	mov	rdi, rbp
	mov	rsi, r12
	call	nat_set_blkaddr@PLT
	mov	rdi, r12
	call	__is_valid_data_blkaddr@PLT
	test	rax, rax
	je	.L24
.L7:
	mov	rsi, rbp
	mov	rdi, r14
	call	__set_nat_cache_dirty@PLT
	mov	esi, DWORD PTR 8[rbx]
	cmp	DWORD PTR 12[rbx], esi
	je	.L8
	mov	rdi, r14
	call	__lookup_nat_cache@PLT
	mov	rbp, rax
.L8:
	test	rbp, rbp
	je	.L9
	test	r15d, r15d
	jne	.L25
.L10:
	mov	esi, DWORD PTR HAS_LAST_FSYNC[rip]
	mov	edx, r15d
	mov	rdi, rbp
	call	set_nat_flag@PLT
.L9:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	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
	jmp	up_write@PLT
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	eax, DWORD PTR 8[rbx]
	cmp	DWORD PTR 12[rbx], eax
	jne	.L10
	mov	esi, DWORD PTR HAS_FSYNCED_INODE[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	set_nat_flag@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L24:
	mov	esi, DWORD PTR IS_CHECKPOINTED[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	set_nat_flag@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rsi, r8
	xor	edx, edx
	mov	ecx, 1
	mov	rdi, r14
	call	__init_nat_entry@PLT
	mov	rsi, rbx
	mov	rdi, rax
	mov	rbp, rax
	call	copy_node_info@PLT
	mov	rax, QWORD PTR NEW_ADDR[rip]
	xor	esi, esi
	cmp	QWORD PTR [rbx], rax
	sete	sil
	mov	rdi, r13
	call	f2fs_bug_on@PLT
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rsi, rbx
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], r8
	call	copy_node_info@PLT
	mov	rax, QWORD PTR NULL_ADDR[rip]
	xor	esi, esi
	cmp	QWORD PTR [rbx], rax
	setne	sil
	mov	rdi, r13
	call	f2fs_bug_on@PLT
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, rbp
	call	nat_get_version@PLT
	movzx	edi, al
	call	inc_node_version@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	nat_set_version@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	set_node_addr, .-set_node_addr
	.comm	NULL_ADDR,8,8
	.comm	NEW_ADDR,8,8
	.comm	IS_CHECKPOINTED,4,4
	.comm	HAS_LAST_FSYNC,4,4
	.comm	HAS_FSYNCED_INODE,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_node.c_set_node_addr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_node_addr, %function
set_node_addr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r5, r1
	mov	r6, r2
	str	r3, [sp, #4]
	mov	r8, r0
	bl	NM_I
	mov	r1, #1
	mov	r7, r0
	ldr	r0, [r5, #8]
	bl	__alloc_nat_entry
	mov	r9, r0
	mov	r0, r7
	bl	down_write
	mov	r0, r7
	ldr	r1, [r5, #8]
	bl	__lookup_nat_cache
	subs	r4, r0, #0
	beq	.L24
	ldr	r10, .L28
	ldr	fp, .L28+4
	ldr	r3, [r10]
	cmp	r3, r6
	beq	.L21
.L3:
	cmp	r4, r9
	beq	.L4
	mov	r0, r9
	bl	__free_nat_entry
.L4:
	mov	r0, r4
	bl	nat_get_blkaddr
	mov	r3, r0
	ldr	r1, [r5]
	mov	r0, r8
	subs	r1, r1, r3
	movne	r1, #1
	bl	f2fs_bug_on
	mov	r0, r4
	bl	nat_get_blkaddr
	mov	r3, r0
	ldr	r1, [fp]
	mov	r0, r8
	cmp	r1, r6
	cmpeq	r3, r1
	moveq	r1, #1
	movne	r1, #0
	bl	f2fs_bug_on
	mov	r0, r4
	bl	nat_get_blkaddr
	mov	r3, r0
	ldr	r1, [r10]
	mov	r0, r8
	cmp	r1, r6
	cmpeq	r3, r1
	moveq	r1, #1
	movne	r1, #0
	bl	f2fs_bug_on
	mov	r0, r4
	bl	nat_get_blkaddr
	bl	__is_valid_data_blkaddr
	subs	r1, r0, #0
	ldrne	r0, [r10]
	subne	r1, r0, r6
	clzne	r1, r1
	mov	r0, r8
	lsrne	r1, r1, #5
	bl	f2fs_bug_on
	mov	r0, r4
	bl	nat_get_blkaddr
	ldr	r3, [r10]
	cmp	r0, r3
	beq	.L6
	ldr	r3, [fp]
	cmp	r3, r6
	beq	.L25
.L6:
	mov	r1, r6
	mov	r0, r4
	bl	nat_set_blkaddr
	mov	r0, r6
	bl	__is_valid_data_blkaddr
	subs	r2, r0, #0
	beq	.L26
.L7:
	mov	r1, r4
	mov	r0, r7
	bl	__set_nat_cache_dirty
	ldmib	r5, {r1, r3}
	cmp	r3, r1
	beq	.L8
	mov	r0, r7
	bl	__lookup_nat_cache
	mov	r4, r0
.L8:
	cmp	r4, #0
	beq	.L9
	ldr	r3, [sp, #4]
	cmp	r3, #0
	bne	.L27
.L10:
	ldr	r3, .L28+8
	mov	r0, r4
	ldr	r2, [sp, #4]
	ldr	r1, [r3]
	bl	set_nat_flag
.L9:
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	up_write
.L27:
	ldr	r2, [r5, #8]
	ldr	r3, [r5, #4]
	cmp	r2, r3
	bne	.L10
	ldr	r3, .L28+12
	mov	r2, #1
	mov	r0, r4
	ldr	r1, [r3]
	bl	set_nat_flag
	b	.L10
.L26:
	ldr	r3, .L28+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	set_nat_flag
	b	.L7
.L24:
	mov	r2, r4
	mov	r3, #1
	mov	r1, r9
	mov	r0, r7
	bl	__init_nat_entry
	ldr	r10, .L28
	mov	r1, r5
	mov	r4, r0
	bl	copy_node_info
	ldr	r3, [r10]
	ldr	r1, [r5]
	mov	r0, r8
	sub	r1, r1, r3
	clz	r1, r1
	lsr	r1, r1, #5
	bl	f2fs_bug_on
	ldr	fp, .L28+4
	b	.L3
.L21:
	mov	r1, r5
	bl	copy_node_info
	ldr	r3, [fp]
	ldr	r1, [r5]
	mov	r0, r8
	subs	r1, r1, r3
	movne	r1, #1
	bl	f2fs_bug_on
	b	.L3
.L25:
	mov	r0, r4
	bl	nat_get_version
	bl	inc_node_version
	mov	r1, r0
	mov	r0, r4
	bl	nat_set_version
	b	.L6
.L29:
	.align	2
.L28:
	.word	NEW_ADDR
	.word	NULL_ADDR
	.word	HAS_LAST_FSYNC
	.word	HAS_FSYNCED_INODE
	.word	IS_CHECKPOINTED
	.size	set_node_addr, .-set_node_addr
	.comm	NULL_ADDR,4,4
	.comm	NEW_ADDR,4,4
	.comm	IS_CHECKPOINTED,4,4
	.comm	HAS_LAST_FSYNC,4,4
	.comm	HAS_FSYNCED_INODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
