	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_iod_removerq               ## -- Begin function smb_iod_removerq
	.p2align	4, 0x90
_smb_iod_removerq:                      ## @smb_iod_removerq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rdi
	callq	_SMBIODEBUG
	movq	_SMBR_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	(%rbx), %r15d
	movq	%r14, %rdi
	callq	_SMB_IOD_RQLOCK
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	leaq	12(%r14), %rdi
	movq	_sr_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	jmp	LBB0_7
LBB0_2:
	movl	(%rbx), %eax
	movq	_SMBR_XLOCK@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_5
## %bb.3:
	movq	_PWAIT@GOTPCREL(%rip), %r12
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SMBR_XLOCKWANT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_SMB_IOD_RQLOCKPTR
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_msleep
	movl	(%rbx), %eax
	testl	%eax, (%r13)
	jne	LBB0_4
LBB0_5:
	leaq	12(%r14), %rdi
	movq	_sr_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	decl	8(%r14)
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	decq	%rax
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	_wakeup
LBB0_7:
	movq	%r14, %rdi
	callq	_SMB_IOD_RQUNLOCK
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_SMBR_INTERNAL,4,2              ## @SMBR_INTERNAL
	.comm	_sr_link,4,2                    ## @sr_link
	.comm	_SMBR_XLOCK,4,2                 ## @SMBR_XLOCK
	.comm	_SMBR_XLOCKWANT,4,2             ## @SMBR_XLOCKWANT
	.comm	_PWAIT,4,2                      ## @PWAIT
L_.str.1:                               ## @.str.1
	.asciz	"90xrm"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_iod_removerq               ; -- Begin function smb_iod_removerq
	.p2align	2
_smb_iod_removerq:                      ; @smb_iod_removerq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SMBIODEBUG
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _SMBR_INTERNAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SMBR_INTERNAL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w21, w9, w8
	mov	x0, x19
	bl	_SMB_IOD_RQLOCK
	cbz	w21, LBB0_2
; %bb.1:
	add	x0, x19, #12
Lloh5:
	adrp	x8, _sr_link@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sr_link@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_TAILQ_REMOVE
	b	LBB0_7
LBB0_2:
	ldr	w8, [x20]
Lloh8:
	adrp	x22, _SMBR_XLOCK@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SMBR_XLOCK@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh10:
	adrp	x23, _SMBR_XLOCKWANT@GOTPAGE
Lloh11:
	ldr	x23, [x23, _SMBR_XLOCKWANT@GOTPAGEOFF]
Lloh12:
	adrp	x24, _PWAIT@GOTPAGE
Lloh13:
	ldr	x24, [x24, _PWAIT@GOTPAGEOFF]
Lloh14:
	adrp	x21, l_.str.1@PAGE
Lloh15:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x23]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x19
	bl	_SMB_IOD_RQLOCKPTR
	mov	x1, x0
	ldr	w2, [x24]
	mov	x0, x20
	mov	x3, x21
	mov	w4, #0
	bl	_msleep
	ldr	w8, [x20]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_4
LBB0_5:
	add	x0, x19, #12
Lloh16:
	adrp	x8, _sr_link@GOTPAGE
Lloh17:
	ldr	x8, [x8, _sr_link@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_TAILQ_REMOVE
	ldr	w8, [x19, #8]
	sub	w8, w8, #1
	str	w8, [x19, #8]
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.6:
	sub	x8, x8, #1
	str	x8, [x19]
	mov	x0, x19
	bl	_wakeup
LBB0_7:
	mov	x0, x19
	bl	_SMB_IOD_RQUNLOCK
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_SMBR_INTERNAL,4,2              ; @SMBR_INTERNAL
	.comm	_sr_link,4,2                    ; @sr_link
	.comm	_SMBR_XLOCK,4,2                 ; @SMBR_XLOCK
	.comm	_SMBR_XLOCKWANT,4,2             ; @SMBR_XLOCKWANT
	.comm	_PWAIT,4,2                      ; @PWAIT
l_.str.1:                               ; @.str.1
	.asciz	"90xrm"

.subsections_via_symbols
