	.file	"extr_smb_iod.c_smb_iod_removerq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\n"
.LC1:
	.string	"90xrm"
	.text
	.p2align 4
	.globl	smb_iod_removerq
	.type	smb_iod_removerq, @function
smb_iod_removerq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	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	rax, QWORD PTR 8[rdi]
	lea	rdi, .LC0[rip]
	mov	r13, QWORD PTR [rax]
	call	SMBIODEBUG@PLT
	mov	eax, DWORD PTR 0[rbp]
	lea	r12, 12[r13]
	mov	rdi, r13
	test	DWORD PTR SMBR_INTERNAL[rip], eax
	jne	.L12
	call	SMB_IOD_RQLOCK@PLT
	lea	rbx, .LC1[rip]
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR SMBR_XLOCK[rip], eax
	je	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	or	eax, DWORD PTR SMBR_XLOCKWANT[rip]
	mov	r14d, DWORD PTR PWAIT[rip]
	mov	rdi, r13
	mov	DWORD PTR 0[rbp], eax
	call	SMB_IOD_RQLOCKPTR@PLT
	xor	r8d, r8d
	mov	rcx, rbx
	mov	edx, r14d
	mov	esi, eax
	mov	rdi, rbp
	call	msleep@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR SMBR_XLOCK[rip], eax
	jne	.L4
.L7:
	mov	edx, DWORD PTR sr_link[rip]
	mov	rsi, rbp
	mov	rdi, r12
	call	TAILQ_REMOVE@PLT
	mov	rax, QWORD PTR 0[r13]
	sub	DWORD PTR 8[r13], 1
	test	rax, rax
	jne	.L13
.L6:
	mov	rdi, r13
	call	SMB_IOD_RQUNLOCK@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L13:
	.cfi_restore_state
	sub	rax, 1
	mov	rdi, r13
	mov	QWORD PTR 0[r13], rax
	call	wakeup@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	call	SMB_IOD_RQLOCK@PLT
	mov	edx, DWORD PTR sr_link[rip]
	mov	rsi, rbp
	mov	rdi, r12
	call	TAILQ_REMOVE@PLT
	mov	rdi, r13
	call	SMB_IOD_RQUNLOCK@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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	smb_iod_removerq, .-smb_iod_removerq
	.comm	sr_link,4,4
	.comm	SMBR_XLOCKWANT,4,4
	.comm	SMBR_XLOCK,4,4
	.comm	SMBR_INTERNAL,4,4
	.comm	PWAIT,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_smb_iod.c_smb_iod_removerq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012\000"
	.align	2
.LC1:
	.ascii	"90xrm\000"
	.text
	.align	2
	.global	smb_iod_removerq
	.syntax unified
	.arm
	.fpu softvfp
	.type	smb_iod_removerq, %function
smb_iod_removerq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r3, [r0, #4]
	sub	sp, sp, #12
	ldr	r0, .L14
	ldr	r5, [r3]
	bl	SMBIODEBUG
	ldr	r3, .L14+4
	ldr	r6, [r4]
	ldr	r3, [r3]
	add	fp, r5, #8
	ands	r6, r6, r3
	bne	.L12
	ldr	r7, .L14+8
	mov	r0, r5
	bl	SMB_IOD_RQLOCK
	ldr	r3, [r7]
	ldr	r2, [r4]
	tst	r2, r3
	beq	.L7
	ldr	r10, .L14+12
	ldr	r9, .L14+16
	ldr	r8, .L14+20
.L4:
	ldr	r3, [r10]
	mov	r0, r5
	orr	r3, r3, r2
	str	r3, [r4]
	bl	SMB_IOD_RQLOCKPTR
	mov	r3, r8
	mov	r1, r0
	ldr	r2, [r9]
	mov	r0, r4
	str	r6, [sp]
	bl	msleep
	ldr	r2, [r4]
	ldr	r3, [r7]
	tst	r2, r3
	bne	.L4
.L7:
	ldr	r3, .L14+24
	mov	r1, r4
	ldr	r2, [r3]
	mov	r0, fp
	bl	TAILQ_REMOVE
	ldm	r5, {r2, r3}
	sub	r3, r3, #1
	cmp	r2, #0
	str	r3, [r5, #4]
	bne	.L13
.L6:
	mov	r0, r5
	bl	SMB_IOD_RQUNLOCK
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	sub	r2, r2, #1
	mov	r0, r5
	str	r2, [r5]
	bl	wakeup
	b	.L6
.L12:
	mov	r0, r5
	bl	SMB_IOD_RQLOCK
	ldr	r3, .L14+24
	mov	r1, r4
	ldr	r2, [r3]
	mov	r0, fp
	bl	TAILQ_REMOVE
	mov	r0, r5
	bl	SMB_IOD_RQUNLOCK
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	SMBR_INTERNAL
	.word	SMBR_XLOCK
	.word	SMBR_XLOCKWANT
	.word	PWAIT
	.word	.LC1
	.word	sr_link
	.size	smb_iod_removerq, .-smb_iod_removerq
	.comm	sr_link,4,4
	.comm	SMBR_XLOCKWANT,4,4
	.comm	SMBR_XLOCK,4,4
	.comm	SMBR_INTERNAL,4,4
	.comm	PWAIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
