	.file	"extr_nfs4state.c_init_open_stateid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	init_open_stateid, @function
init_open_stateid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r12, QWORD PTR [rsi]
	mov	r13, QWORD PTR 8[rsi]
	mov	rdi, r12
	call	mutex_init@PLT
	mov	esi, DWORD PTR OPEN_STATEID_MUTEX[rip]
	mov	rdi, r12
	call	mutex_lock_nested@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	call	spin_unlock@PLT
	mov	rdi, QWORD PTR 0[r13]
	call	spin_unlock@PLT
	mov	rdi, rbx
	call	nfsd4_lock_ol_stateid@PLT
	cmp	rax, QWORD PTR nfs_ok[rip]
	je	.L10
	lea	rdi, 8[rbx]
	call	nfs4_put_stid@PLT
.L2:
	mov	rdi, QWORD PTR 0[r13]
	call	spin_lock@PLT
	mov	rdi, rbp
	call	spin_lock@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	nfsd4_find_existing_open@PLT
	mov	rbx, rax
	test	rax, rax
	jne	.L3
	mov	QWORD PTR [r14], 0
	lea	rdi, 20[r12]
	call	refcount_inc@PLT
	mov	eax, DWORD PTR NFS4_OPEN_STID[rip]
	lea	rdi, 60[r12]
	mov	DWORD PTR 16[r12], eax
	call	INIT_LIST_HEAD@PLT
	mov	rdi, r13
	call	nfs4_get_stateowner@PLT
	mov	rdi, rbp
	mov	DWORD PTR 56[r12], eax
	call	get_nfs4_file@PLT
	mov	QWORD PTR 8[r12], rbp
	lea	rsi, 8[r13]
	lea	rdi, 28[r12]
	mov	QWORD PTR 48[r12], 0
	mov	QWORD PTR 40[r12], 0
	mov	QWORD PTR 32[r12], 0
	call	list_add@PLT
	lea	rsi, 4[rbp]
	lea	rdi, 24[r12]
	call	list_add@PLT
	mov	rdi, rbp
	call	spin_unlock@PLT
	mov	rdi, QWORD PTR 0[r13]
	call	spin_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, r12
	mov	r12, rbx
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	init_open_stateid, .-init_open_stateid
	.comm	nfs_ok,8,8
	.comm	OPEN_STATEID_MUTEX,4,4
	.comm	NFS4_OPEN_STID,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_nfs4state.c_init_open_stateid.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_open_stateid, %function
init_open_stateid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, [r1]
	mov	r5, r0
	mov	r0, r6
	mov	r8, r1
	ldr	r7, [r1, #4]
	bl	mutex_init
	ldr	r3, .L11
	mov	r0, r6
	ldr	r1, [r3]
	bl	mutex_lock_nested
	ldr	r9, .L11+4
	b	.L2
.L3:
	mov	r0, r5
	bl	spin_unlock
	ldr	r0, [r7]
	bl	spin_unlock
	mov	r0, r4
	bl	nfsd4_lock_ol_stateid
	mov	r2, r0
	ldr	r3, [r9]
	add	r0, r4, #4
	cmp	r2, r3
	beq	.L10
	bl	nfs4_put_stid
.L2:
	ldr	r0, [r7]
	bl	spin_lock
	mov	r0, r5
	bl	spin_lock
	mov	r1, r8
	mov	r0, r5
	bl	nfsd4_find_existing_open
	subs	r4, r0, #0
	bne	.L3
	str	r4, [r8]
	add	r0, r6, #12
	bl	refcount_inc
	ldr	r3, .L11+8
	add	r0, r6, #40
	ldr	r3, [r3]
	str	r3, [r6, #8]
	bl	INIT_LIST_HEAD
	mov	r0, r7
	bl	nfs4_get_stateowner
	mov	r3, r0
	mov	r0, r5
	str	r3, [r6, #36]
	bl	get_nfs4_file
	add	r1, r7, #4
	str	r5, [r6, #4]
	str	r4, [r6, #32]
	str	r4, [r6, #28]
	str	r4, [r6, #24]
	add	r0, r6, #20
	bl	list_add
	add	r1, r5, #4
	add	r0, r6, #16
	bl	list_add
	mov	r0, r5
	bl	spin_unlock
	ldr	r0, [r7]
	bl	spin_unlock
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r0, r6
	mov	r6, r4
	bl	mutex_unlock
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	OPEN_STATEID_MUTEX
	.word	nfs_ok
	.word	NFS4_OPEN_STID
	.size	init_open_stateid, .-init_open_stateid
	.comm	nfs_ok,4,4
	.comm	OPEN_STATEID_MUTEX,4,4
	.comm	NFS4_OPEN_STID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
