	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smb_iod_sendrq
_smb_iod_sendrq:                        ## @smb_iod_sendrq
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %r15
	movq	40(%rsi), %r12
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_SMBIODEBUG
	movl	(%rbx), %eax
	xorl	%r13d, %r13d
	cmpl	$128, %eax
	je	LBB0_23
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.3:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_smb_iod_rqprocessed
	jmp	LBB0_23
LBB0_4:
	movl	$128, (%rbx)
	jmp	LBB0_23
LBB0_5:
	movq	(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_14
## %bb.6:
	movl	36(%r14), %edi
	testq	%r12, %r12
	jne	LBB0_8
## %bb.7:
	movq	_SMB_TID_UNKNOWN@GOTPCREL(%rip), %r12
LBB0_8:
	movl	(%r12), %esi
	callq	_le16enc
	movl	32(%r14), %edi
	testq	%r15, %r15
	je	LBB0_9
## %bb.10:
	movl	12(%r15), %esi
	jmp	LBB0_11
LBB0_9:
	xorl	%esi, %esi
LBB0_11:
	callq	_le16enc
	leaq	24(%r14), %rdi
	callq	_mb_fixhdr
	movq	_SMB_FLAGS2_SECURITY_SIGNATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_smb_rq_sign
LBB0_13:
	movq	(%r14), %rax
LBB0_14:
	leaq	1(%rax), %rcx
	movq	%rcx, (%r14)
	cmpq	$6, %rax
	jl	LBB0_16
## %bb.15:
	movq	_SMBR_RESTART@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r14)
	movl	8(%r14), %esi
	movq	%r14, %rdi
	callq	_smb_iod_rqprocessed
	jmp	LBB0_19
LBB0_16:
	movl	28(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_SMBSDEBUG
	movl	24(%r14), %edi
	callq	_m_dumpm
	movl	24(%r14), %edi
	movq	_M_COPYALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	callq	_m_copym
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_SMB_TRAN_SEND
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_SMB_TRAN_FATAL
	testq	%rax, %rax
	je	LBB0_20
LBB0_19:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_23
LBB0_17:
	leaq	20(%r14), %rdi
	callq	_getnanotime
	movl	20(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	_SMBR_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r14)
	movq	_SMBRQ_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
LBB0_23:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	%r14, %rdi
	callq	_smb_rq_intr
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:
	movq	_EINTR@GOTPCREL(%rip), %rax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iod_state = %d\n"

	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_SMB_TID_UNKNOWN,4,2            ## @SMB_TID_UNKNOWN
	.comm	_SMB_FLAGS2_SECURITY_SIGNATURE,4,2 ## @SMB_FLAGS2_SECURITY_SIGNATURE
	.comm	_SMBR_RESTART,4,2               ## @SMBR_RESTART
L_.str.1:                               ## @.str.1
	.asciz	"M:%04x, P:%04x, U:%04x, T:%04x\n"

	.comm	_M_COPYALL,4,2                  ## @M_COPYALL
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_SMBR_SENT,4,2                  ## @SMBR_SENT
	.comm	_SMBRQ_SENT,4,2                 ## @SMBRQ_SENT
	.comm	_EINTR,4,2                      ## @EINTR
	.no_dead_strip	_smb_iod_sendrq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smb_iod_sendrq
_smb_iod_sendrq:                        ; @smb_iod_sendrq
	.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, x1
	mov	x20, x0
	ldp	x21, x22, [x0, #24]
	ldr	x23, [x1, #40]
	ldr	w1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SMBIODEBUG
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.3:
Lloh2:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smb_iod_rqprocessed
LBB0_5:
	mov	w0, #0
	b	LBB0_20
LBB0_6:
	mov	w0, #0
	mov	w8, #128
	str	w8, [x20]
	b	LBB0_20
LBB0_7:
	ldr	x8, [x19]
	cbnz	x8, LBB0_14
; %bb.8:
	ldr	w0, [x19, #36]
Lloh4:
	adrp	x8, _SMB_TID_UNKNOWN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SMB_TID_UNKNOWN@GOTPAGEOFF]
	cmp	x23, #0
	csel	x8, x8, x23, eq
	ldr	w1, [x8]
	bl	_le16enc
	ldr	w0, [x19, #32]
	cbz	x21, LBB0_10
; %bb.9:
	ldr	w1, [x21, #12]
	b	LBB0_11
LBB0_10:
	mov	w1, #0
LBB0_11:
	bl	_le16enc
	add	x0, x19, #24
	bl	_mb_fixhdr
	ldr	w8, [x21, #8]
Lloh6:
	adrp	x9, _SMB_FLAGS2_SECURITY_SIGNATURE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SMB_FLAGS2_SECURITY_SIGNATURE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_smb_rq_sign
LBB0_13:
	ldr	x8, [x19]
LBB0_14:
	add	x9, x8, #1
	str	x9, [x19]
	cmp	x8, #6
	b.lt	LBB0_16
; %bb.15:
Lloh9:
	adrp	x8, _SMBR_RESTART@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SMBR_RESTART@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_smb_iod_rqprocessed
	b	LBB0_18
LBB0_16:
	ldr	w1, [x19, #28]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_SMBSDEBUG
	ldr	w0, [x19, #24]
	bl	_m_dumpm
	ldr	w0, [x19, #24]
Lloh14:
	adrp	x8, _M_COPYALL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _M_COPYALL@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	w1, #0
	bl	_m_copym
	mov	x1, x0
	mov	x0, x21
	mov	x2, x22
	bl	_SMB_TRAN_SEND
	str	w0, [x19, #8]
	cbz	w0, LBB0_19
; %bb.17:
	mov	x1, x0
	mov	x0, x21
	bl	_SMB_TRAN_FATAL
	cbz	x0, LBB0_21
LBB0_18:
Lloh20:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	b	LBB0_20
LBB0_19:
	add	x0, x19, #20
	bl	_getnanotime
	mov	w0, #0
	ldp	w9, w8, [x19, #16]
	str	w8, [x20, #16]
Lloh23:
	adrp	x8, _SMBR_SENT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SMBR_SENT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	orr	w8, w9, w8
Lloh26:
	adrp	x9, _SMBRQ_SENT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SMBRQ_SENT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
LBB0_20:
	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
LBB0_21:
	mov	x0, x19
	bl	_smb_rq_intr
	cbz	x0, LBB0_20
; %bb.22:
Lloh29:
	adrp	x8, _EINTR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iod_state = %d\n"

	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_SMB_TID_UNKNOWN,4,2            ; @SMB_TID_UNKNOWN
	.comm	_SMB_FLAGS2_SECURITY_SIGNATURE,4,2 ; @SMB_FLAGS2_SECURITY_SIGNATURE
	.comm	_SMBR_RESTART,4,2               ; @SMBR_RESTART
l_.str.1:                               ; @.str.1
	.asciz	"M:%04x, P:%04x, U:%04x, T:%04x\n"

	.comm	_M_COPYALL,4,2                  ; @M_COPYALL
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_SMBR_SENT,4,2                  ; @SMBR_SENT
	.comm	_SMBRQ_SENT,4,2                 ; @SMBRQ_SENT
	.comm	_EINTR,4,2                      ; @EINTR
	.no_dead_strip	_smb_iod_sendrq
.subsections_via_symbols
