	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_iod_addrq                  ## -- Begin function smb_iod_addrq
	.p2align	4, 0x90
_smb_iod_addrq:                         ## @smb_iod_addrq
	.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, %r14
	movq	24(%rdi), %r13
	movq	8(%r13), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_SMBIODEBUG
	movq	16(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_9
## %bb.2:
	movq	_SMBR_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r14)
	movq	%rbx, %rdi
	callq	_SMB_IOD_RQLOCK
	leaq	24(%rbx), %rdi
	movq	_sr_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_TAILQ_INSERT_HEAD
	movq	%rbx, %rdi
	callq	_SMB_IOD_RQUNLOCK
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_smb_iod_sendrq
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	leaq	32(%rbx), %r15
	movq	_hz@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	_SMBRQ_NOTSENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_tsleep
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_smb_iod_sendrq
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	movq	%rbx, %rdi
	callq	_smb_iod_dead
LBB0_7:
	cmpl	$0, 8(%r14)
	je	LBB0_20
## %bb.8:
	movq	%r14, %rdi
	callq	_smb_iod_removerq
	movl	8(%r14), %eax
	jmp	LBB0_21
LBB0_9:
	movl	8(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_12
## %bb.10:
	cmpl	$128, %eax
	jne	LBB0_14
## %bb.11:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_21
LBB0_12:
	movq	8(%r13), %rdi
	movq	_SMBIOD_EV_CONNECT@GOTPCREL(%rip), %rax
	movq	_SMBIOD_EV_SYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	xorl	%edx, %edx
	callq	_smb_iod_request
	testl	%eax, %eax
	jne	LBB0_21
## %bb.13:
	movq	_EXDEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_21
LBB0_14:
	movq	%rbx, %rdi
	callq	_SMB_IOD_RQLOCK
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	leaq	28(%rbx), %r15
	leaq	L_.str.3(%rip), %r12
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rcx
	cmpq	%rax, %rcx
	jl	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	incl	28(%rbx)
	movq	%rbx, %rdi
	callq	_SMB_IOD_RQLOCKPTR
	movq	_PWAIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	callq	_msleep
	movq	(%r13), %rax
	testq	%rax, %rax
	jne	LBB0_16
LBB0_18:
	leaq	L_.str.2(%rip), %rdi
	callq	_SMBERROR
	movq	16(%rbx), %rcx
LBB0_19:
	incq	%rcx
	movq	%rcx, 16(%rbx)
	leaq	24(%rbx), %rdi
	movq	_sr_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	%rbx, %rdi
	callq	_SMB_IOD_RQUNLOCK
	movq	%rbx, %rdi
	callq	_smb_iod_wakeup
LBB0_20:
	xorl	%eax, %eax
LBB0_21:
	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	_SMBRQ_NOTSENT,8,3              ## @SMBRQ_NOTSENT
	.comm	_PWAIT,4,2                      ## @PWAIT
L_.str.1:                               ## @.str.1
	.asciz	"90sndw"

	.comm	_hz,4,2                         ## @hz
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_SMBIOD_EV_CONNECT,4,2          ## @SMBIOD_EV_CONNECT
	.comm	_SMBIOD_EV_SYNC,4,2             ## @SMBIOD_EV_SYNC
	.comm	_EXDEV,4,2                      ## @EXDEV
L_.str.2:                               ## @.str.2
	.asciz	"maxmux == 0\n"

L_.str.3:                               ## @.str.3
	.asciz	"90mux"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_iod_addrq                  ; -- Begin function smb_iod_addrq
	.p2align	2
_smb_iod_addrq:                         ; @smb_iod_addrq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x23, [x0, #24]
	ldr	x20, [x23, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SMBIODEBUG
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.1:
	ldr	x8, [x8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
Lloh2:
	adrp	x8, _SMBR_INTERNAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SMBR_INTERNAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
	mov	x0, x20
	bl	_SMB_IOD_RQLOCK
	add	x0, x20, #24
Lloh5:
	adrp	x8, _sr_link@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sr_link@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_TAILQ_INSERT_HEAD
	mov	x0, x20
	bl	_SMB_IOD_RQUNLOCK
	mov	x0, x20
	mov	x1, x19
	bl	_smb_iod_sendrq
	cbnz	x0, LBB0_6
; %bb.3:
	add	x21, x20, #32
Lloh8:
	adrp	x23, _SMBRQ_NOTSENT@GOTPAGE
Lloh9:
	ldr	x23, [x23, _SMBRQ_NOTSENT@GOTPAGEOFF]
Lloh10:
	adrp	x24, _PWAIT@GOTPAGE
Lloh11:
	ldr	x24, [x24, _PWAIT@GOTPAGEOFF]
Lloh12:
	adrp	x25, _hz@GOTPAGE
Lloh13:
	ldr	x25, [x25, _hz@GOTPAGEOFF]
Lloh14:
	adrp	x22, l_.str.1@PAGE
Lloh15:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x24]
	ldr	w3, [x25]
	mov	x0, x21
	mov	x2, x22
	bl	_tsleep
	mov	x0, x20
	mov	x1, x19
	bl	_smb_iod_sendrq
	cbz	x0, LBB0_4
LBB0_6:
	mov	x0, x20
	bl	_smb_iod_dead
LBB0_7:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_19
; %bb.8:
	mov	x0, x19
	bl	_smb_iod_removerq
	ldr	w0, [x19, #8]
	b	LBB0_20
LBB0_9:
	ldr	w8, [x20, #8]
	cmp	w8, #129
	b.eq	LBB0_12
; %bb.10:
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.11:
Lloh16:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	b	LBB0_20
LBB0_12:
Lloh19:
	adrp	x8, _SMBIOD_EV_CONNECT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SMBIOD_EV_CONNECT@GOTPAGEOFF]
	ldr	x0, [x23, #8]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _SMBIOD_EV_SYNC@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SMBIOD_EV_SYNC@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x2, #0
	bl	_smb_iod_request
Lloh25:
	adrp	x8, _EXDEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EXDEV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, w0, eq
	b	LBB0_20
LBB0_13:
	mov	x0, x20
	bl	_SMB_IOD_RQLOCK
	ldr	x8, [x23]
	cbz	x8, LBB0_17
; %bb.14:
	add	x21, x20, #28
Lloh28:
	adrp	x24, _PWAIT@GOTPAGE
Lloh29:
	ldr	x24, [x24, _PWAIT@GOTPAGEOFF]
Lloh30:
	adrp	x22, l_.str.3@PAGE
Lloh31:
	add	x22, x22, l_.str.3@PAGEOFF
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	cmp	x9, x8
	b.lt	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x20, #28]
	add	w8, w8, #1
	str	w8, [x20, #28]
	mov	x0, x20
	bl	_SMB_IOD_RQLOCKPTR
	mov	x1, x0
	ldr	w2, [x24]
	mov	x0, x21
	mov	x3, x22
	mov	w4, #0
	bl	_msleep
	ldr	x8, [x23]
	cbnz	x8, LBB0_15
LBB0_17:
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_SMBERROR
	ldr	x9, [x20, #16]
LBB0_18:
	add	x8, x9, #1
	str	x8, [x20, #16]
	add	x0, x20, #24
Lloh34:
	adrp	x8, _sr_link@GOTPAGE
Lloh35:
	ldr	x8, [x8, _sr_link@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_TAILQ_INSERT_TAIL
	mov	x0, x20
	bl	_SMB_IOD_RQUNLOCK
	mov	x0, x20
	bl	_smb_iod_wakeup
LBB0_19:
	mov	w0, #0
LBB0_20:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.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	_SMBRQ_NOTSENT,8,3              ; @SMBRQ_NOTSENT
	.comm	_PWAIT,4,2                      ; @PWAIT
l_.str.1:                               ; @.str.1
	.asciz	"90sndw"

	.comm	_hz,4,2                         ; @hz
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_SMBIOD_EV_CONNECT,4,2          ; @SMBIOD_EV_CONNECT
	.comm	_SMBIOD_EV_SYNC,4,2             ; @SMBIOD_EV_SYNC
	.comm	_EXDEV,4,2                      ; @EXDEV
l_.str.2:                               ; @.str.2
	.asciz	"maxmux == 0\n"

l_.str.3:                               ; @.str.3
	.asciz	"90mux"

.subsections_via_symbols
