	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smb_nbst_send
_smb_nbst_send:                         ## @smb_nbst_send
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r12
	movq	(%r12), %rax
	movq	_NBST_SESSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.4:
	movq	%rdx, %r14
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_M_PREPEND
	movq	_NB_SSN_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_m_fixhdr
	leaq	-4(%rax), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_nb_sethdr
	movl	8(%r12), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%r14, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nb_sosend                      ## TAILCALL
LBB0_1:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_m_freem
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NBST_SESSION,8,3               ## @NBST_SESSION
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_NB_SSN_MESSAGE,4,2             ## @NB_SSN_MESSAGE
	.no_dead_strip	_smb_nbst_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smb_nbst_send
_smb_nbst_send:                         ; @smb_nbst_send
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldr	x22, [x0]
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _NBST_SESSION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NBST_SESSION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x20, x2
Lloh3:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #4
	bl	_M_PREPEND
Lloh6:
	adrp	x8, _NB_SSN_MESSAGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NB_SSN_MESSAGE@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_m_fixhdr
	sub	x2, x0, #4
	mov	x0, x19
	mov	x1, x21
	bl	_nb_sethdr
	ldr	w0, [x22, #8]
	mov	x1, x19
	mov	w2, #0
	mov	x3, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_nb_sosend
LBB0_2:
Lloh9:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	cbz	x19, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_m_freem
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NBST_SESSION,8,3               ; @NBST_SESSION
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_NB_SSN_MESSAGE,4,2             ; @NB_SSN_MESSAGE
	.no_dead_strip	_smb_nbst_send
.subsections_via_symbols
