	.file	"extr_rpcb_clnt.c_rpcb_put_local.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rpcb_put_local
	.type	rpcb_put_local, @function
rpcb_put_local:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdi, rpcb_clnt_lock[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR rpcb_local_clnt[rip]
	mov	r12, QWORD PTR rpcb_local_clnt4[rip]
	call	spin_lock@PLT
	sub	QWORD PTR rpcb_users[rip], 1
	jne	.L2
	lea	rdi, rpcb_clnt_lock[rip]
	mov	QWORD PTR rpcb_local_clnt[rip], 0
	mov	QWORD PTR rpcb_local_clnt4[rip], 0
	call	spin_unlock@PLT
	test	r12, r12
	je	.L3
	mov	rdi, r12
	call	rpc_shutdown_client@PLT
.L3:
	test	rbp, rbp
	je	.L1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	rpc_shutdown_client@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, rpcb_clnt_lock[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	spin_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	rpcb_put_local, .-rpcb_put_local
	.comm	rpcb_users,8,8
	.comm	rpcb_local_clnt4,8,8
	.comm	rpcb_local_clnt,8,8
	.comm	rpcb_clnt_lock,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_rpcb_clnt.c_rpcb_put_local.c"
	.text
	.align	2
	.global	rpcb_put_local
	.syntax unified
	.arm
	.fpu softvfp
	.type	rpcb_put_local, %function
rpcb_put_local:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L10
	ldr	r4, .L10+4
	ldr	r0, .L10+8
	ldr	r6, [r5]
	ldr	r7, [r4]
	bl	spin_lock
	ldr	r2, .L10+12
	ldr	r0, .L10+8
	ldr	r3, [r2]
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r2]
	bne	.L2
	str	r3, [r5]
	str	r3, [r4]
	bl	spin_unlock
	cmp	r7, #0
	beq	.L3
	mov	r0, r7
	bl	rpc_shutdown_client
.L3:
	cmp	r6, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	rpc_shutdown_client
.L2:
	pop	{r4, r5, r6, r7, r8, lr}
	b	spin_unlock
.L11:
	.align	2
.L10:
	.word	rpcb_local_clnt
	.word	rpcb_local_clnt4
	.word	rpcb_clnt_lock
	.word	rpcb_users
	.size	rpcb_put_local, .-rpcb_put_local
	.comm	rpcb_users,4,4
	.comm	rpcb_local_clnt4,4,4
	.comm	rpcb_local_clnt,4,4
	.comm	rpcb_clnt_lock,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
