	.file	"extr_rrwlock.c_rrm_exit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rrm_exit
	.type	rrm_exit, @function
rrm_exit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR curthread[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L2
	mov	eax, DWORD PTR RRM_NUM_LOCKS[rip]
	mov	r12, rdi
	xor	ebx, ebx
	test	eax, eax
	jg	.L3
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rbp, QWORD PTR [r12]
.L3:
	lea	rdi, 0[rbp+rbx*8]
	mov	rsi, r13
	add	rbx, 1
	call	rrw_exit@PLT
	cmp	DWORD PTR RRM_NUM_LOCKS[rip], ebx
	jg	.L11
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	eax, eax
	call	RRM_TD_LOCK@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rsi, r13
	pop	rbx
	.cfi_def_cfa_offset 32
	lea	rdi, 0[rbp+rax*8]
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	rrw_exit@PLT
	.cfi_endproc
.LFE0:
	.size	rrm_exit, .-rrm_exit
	.comm	curthread,8,8
	.comm	RRM_NUM_LOCKS,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_rrwlock.c_rrm_exit.c"
	.text
	.align	2
	.global	rrm_exit
	.syntax unified
	.arm
	.fpu softvfp
	.type	rrm_exit, %function
rrm_exit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L9
	ldr	r5, [r0]
	ldr	r3, [r3]
	ldr	r2, [r5]
	mov	r7, r1
	cmp	r2, r3
	bne	.L2
	ldr	r8, .L9+4
	ldr	r3, [r8]
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r6, r0
	mov	r4, #0
.L3:
	add	r0, r5, r4, lsl #2
	mov	r1, r7
	bl	rrw_exit
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	pople	{r4, r5, r6, r7, r8, pc}
	ldr	r5, [r6]
	b	.L3
.L2:
	bl	RRM_TD_LOCK
	mov	r1, r7
	add	r0, r5, r0, lsl #2
	pop	{r4, r5, r6, r7, r8, lr}
	b	rrw_exit
.L10:
	.align	2
.L9:
	.word	curthread
	.word	RRM_NUM_LOCKS
	.size	rrm_exit, .-rrm_exit
	.comm	curthread,4,4
	.comm	RRM_NUM_LOCKS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
