	.file	"extr_xdr.c_nlmclt_encode_lockargs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nlmclt_encode_lockargs, @function
nlmclt_encode_lockargs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	mov	rdi, rsi
	lea	rsi, 24[rdx]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	lea	rbp, 32[rdx]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	call	nlm_encode_cookie@PLT
	test	rax, rax
	je	.L12
	cmp	QWORD PTR 16[rbx], 0
	mov	rdx, QWORD PTR xdr_zero[rip]
	jne	.L14
.L5:
	mov	DWORD PTR [rax], edx
	mov	rcx, QWORD PTR F_WRLCK[rip]
	mov	rdx, QWORD PTR xdr_zero[rip]
	cmp	QWORD PTR 32[rbx], rcx
	jne	.L7
	mov	rdx, QWORD PTR xdr_one[rip]
.L7:
	mov	DWORD PTR 4[rax], edx
	mov	rsi, rbp
	lea	rdi, 8[rax]
	call	nlm_encode_lock@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L12
	cmp	QWORD PTR 8[rbx], 0
	mov	rax, QWORD PTR xdr_zero[rip]
	jne	.L15
.L10:
	mov	DWORD PTR 0[rbp], eax
	mov	edi, DWORD PTR [rbx]
	call	htonl@PLT
	lea	rsi, 8[rbp]
	mov	DWORD PTR 4[rbp], eax
	mov	edi, DWORD PTR [r12]
	call	xdr_adjust_iovec@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	DWORD PTR 4[r12], eax
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdx, QWORD PTR xdr_one[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR xdr_one[rip]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR EIO[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	nlmclt_encode_lockargs, .-nlmclt_encode_lockargs
	.comm	xdr_zero,8,8
	.comm	xdr_one,8,8
	.comm	F_WRLCK,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_xdr.c_nlmclt_encode_lockargs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nlmclt_encode_lockargs, %function
nlmclt_encode_lockargs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r1
	push	{r4, r5, r6, lr}
	add	r1, r2, #12
	mov	r6, r0
	mov	r0, ip
	mov	r4, r2
	bl	nlm_encode_cookie
	subs	r3, r0, #0
	beq	.L12
	ldr	r2, [r4, #8]
	ldr	r0, [r4, #16]
	cmp	r2, #0
	ldrne	r2, .L14
	ldreq	r2, .L14+4
	add	r1, r4, #16
	ldr	ip, [r2]
	ldr	r2, .L14+8
	ldr	r2, [r2]
	str	ip, [r3]
	cmp	r0, r2
	ldreq	r2, .L14
	ldrne	r2, .L14+4
	add	r0, r3, #8
	ldr	r2, [r2]
	str	r2, [r3, #4]
	bl	nlm_encode_lock
	subs	r5, r0, #0
	beq	.L12
	ldr	r3, [r4, #4]
	cmp	r3, #0
	ldrne	r3, .L14
	ldreq	r3, .L14+4
	ldr	r3, [r3]
	str	r3, [r5]
	ldr	r0, [r4]
	bl	htonl
	str	r0, [r5, #4]
	ldr	r0, [r6]
	add	r1, r5, #8
	bl	xdr_adjust_iovec
	mov	r3, r0
	mov	r0, #0
	str	r3, [r6, #4]
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L14+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L15:
	.align	2
.L14:
	.word	xdr_one
	.word	xdr_zero
	.word	F_WRLCK
	.word	EIO
	.size	nlmclt_encode_lockargs, .-nlmclt_encode_lockargs
	.comm	xdr_zero,4,4
	.comm	xdr_one,4,4
	.comm	F_WRLCK,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
