	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_iod_waitrq                 ## -- Begin function smb_iod_waitrq
	.p2align	4, 0x90
_smb_iod_waitrq:                        ## @smb_iod_waitrq
	.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, %r12
	movq	32(%rdi), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rdi
	callq	_SMBIODEBUG
	movq	_SMBR_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	callq	_smb_iod_sendall
	movq	%r14, %rdi
	callq	_smb_iod_recvall
	movq	8(%r12), %rax
	cmpq	16(%r12), %rax
	jne	LBB0_4
## %bb.2:
	leaq	4(%r14), %rbx
	movq	_hz@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_tsleep
	movq	%r14, %rdi
	callq	_smb_iod_sendall
	movq	%r14, %rdi
	callq	_smb_iod_recvall
	movq	8(%r12), %rax
	cmpq	16(%r12), %rax
	je	LBB0_3
LBB0_4:
	movq	%r12, %rdi
	callq	_smb_iod_removerq
	movl	24(%r12), %r15d
	jmp	LBB0_10
LBB0_5:
	movq	%r12, %rdi
	callq	_SMBRQ_SLOCK
	movq	16(%r12), %rax
	cmpq	%rax, 8(%r12)
	jne	LBB0_7
## %bb.6:
	leaq	28(%r12), %rbx
	movq	%r12, %rdi
	callq	_SMBRQ_SLOCKPTR
	movq	_PWAIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	callq	_msleep
	movq	16(%r12), %rax
LBB0_7:
	incq	%rax
	movq	%rax, 16(%r12)
	movq	%r12, %rdi
	callq	_SMBRQ_SUNLOCK
	movl	24(%r12), %r15d
	movq	_SMBR_MULTIPACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_SMB_IOD_RQLOCK
	movq	_sr_link@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_TAILQ_REMOVE
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	%r14, %rdi
	callq	_SMB_IOD_RQUNLOCK
	jmp	LBB0_10
LBB0_9:
	movq	%r12, %rdi
	callq	_smb_iod_removerq
LBB0_10:
	movl	%r15d, %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	_PWAIT,4,2                      ## @PWAIT
L_.str.1:                               ## @.str.1
	.asciz	"90irq"

	.comm	_hz,4,2                         ## @hz
L_.str.2:                               ## @.str.2
	.asciz	"90wrq"

	.comm	_SMBR_MULTIPACKET,4,2           ## @SMBR_MULTIPACKET
	.comm	_sr_link,4,2                    ## @sr_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_iod_waitrq                 ; -- Begin function smb_iod_waitrq
	.p2align	2
_smb_iod_waitrq:                        ; @smb_iod_waitrq
	.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	x19, x0
	ldr	x8, [x0, #32]
	ldr	x20, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SMBIODEBUG
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _SMBR_INTERNAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SMBR_INTERNAL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_smb_iod_sendall
	mov	x0, x20
	bl	_smb_iod_recvall
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	add	x21, x20, #4
Lloh5:
	adrp	x23, _PWAIT@GOTPAGE
Lloh6:
	ldr	x23, [x23, _PWAIT@GOTPAGEOFF]
Lloh7:
	adrp	x24, _hz@GOTPAGE
Lloh8:
	ldr	x24, [x24, _hz@GOTPAGEOFF]
Lloh9:
	adrp	x22, l_.str.1@PAGE
Lloh10:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	ldr	w3, [x24]
	mov	x0, x21
	mov	x2, x22
	bl	_tsleep
	mov	x0, x20
	bl	_smb_iod_sendall
	mov	x0, x20
	bl	_smb_iod_recvall
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.eq	LBB0_3
LBB0_4:
	mov	x0, x19
	bl	_smb_iod_removerq
	ldr	w21, [x19, #24]
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_SMBRQ_SLOCK
	ldp	x9, x8, [x19, #8]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	add	x21, x19, #28
	mov	x0, x19
	bl	_SMBRQ_SLOCKPTR
	mov	x1, x0
Lloh11:
	adrp	x8, _PWAIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PWAIT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x3, l_.str.2@PAGE
Lloh15:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	w4, #0
	bl	_msleep
	ldr	x8, [x19, #16]
LBB0_7:
	add	x8, x8, #1
	str	x8, [x19, #16]
	mov	x0, x19
	bl	_SMBRQ_SUNLOCK
	ldr	w21, [x19, #24]
	ldr	w8, [x19]
Lloh16:
	adrp	x9, _SMBR_MULTIPACKET@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SMBR_MULTIPACKET@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_SMB_IOD_RQLOCK
Lloh19:
	adrp	x22, _sr_link@GOTPAGE
Lloh20:
	ldr	x22, [x22, _sr_link@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_TAILQ_REMOVE
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_TAILQ_INSERT_TAIL
	mov	x0, x20
	bl	_SMB_IOD_RQUNLOCK
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_smb_iod_removerq
LBB0_10:
	mov	x0, x21
	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 AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_SMBR_INTERNAL,4,2              ; @SMBR_INTERNAL
	.comm	_PWAIT,4,2                      ; @PWAIT
l_.str.1:                               ; @.str.1
	.asciz	"90irq"

	.comm	_hz,4,2                         ; @hz
l_.str.2:                               ; @.str.2
	.asciz	"90wrq"

	.comm	_SMBR_MULTIPACKET,4,2           ; @SMBR_MULTIPACKET
	.comm	_sr_link,4,2                    ; @sr_link
.subsections_via_symbols
