	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nbssn_rq_request
_nbssn_rq_request:                      ## @nbssn_rq_request
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	_M_NBDATA@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	$4, %edi
	callq	_malloc
	movq	%rax, %rbx
	movl	(%r12), %esi
	movl	(%r15), %edx
	movl	$4, %edi
	callq	_malloc
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_mb_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r13d
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_free
	movl	(%r12), %esi
	movq	%r15, %rdi
	jmp	LBB0_23
LBB0_2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mb_put_uint32le
	movl	24(%r14), %esi
	movq	%rbx, %rdi
	callq	_nb_put_name
	movl	20(%r14), %esi
	movq	%rbx, %rdi
	callq	_nb_put_name
	movl	(%rbx), %r13d
	movq	_NB_SSN_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_mb_fixhdr
	leaq	-4(%rax), %rdx
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_nb_sethdr
	movl	12(%r14), %edi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_nb_sosend
	testl	%eax, %eax
	je	LBB0_3
## %bb.25:
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_mb_detach
	movq	%rbx, %rdi
	callq	_mb_done
	movq	_M_NBDATA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_free
	movl	(%r14), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_3:
	movq	%r14, %r12
	movq	_NBST_RQSENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	%rbx, %rdi
	callq	_mb_detach
	movq	%rbx, %rdi
	callq	_mb_done
	movq	_M_NBDATA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_free
	leaq	16(%r12), %rsi
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_TIMESPEC_TO_TIMEVAL
	movl	12(%r12), %edi
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_selsocket
	movl	%eax, %r13d
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_NBDEBUG
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_free
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_24
LBB0_5:
	testl	%r13d, %r13d
	jne	LBB0_22
## %bb.6:
	leaq	-64(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r15, %r8
	callq	_nbssn_recv
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_NBDEBUG
	jmp	LBB0_22
LBB0_8:
	movq	-64(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_md_initm
LBB0_10:
	movq	-80(%rbp), %rax
	movq	_NB_SSN_POSRESP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	_NBST_SESSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_NBF_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r12)
	xorl	%r13d, %r13d
	jmp	LBB0_20
LBB0_12:
	movq	_NB_SSN_RTGRESP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.14:
	cmpl	$6, -44(%rbp)
	jne	LBB0_13
## %bb.15:
	movq	%r15, %r14
	leaq	-88(%rbp), %r15
	leal	4(%r15), %esi
	movq	_MB_MSYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_md_get_mem
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_md_get_uint16
	movl	-48(%rbp), %eax
	movl	%eax, -88(%rbp)
	movq	_NBST_RETARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_smb_nbst_disconnect
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_nb_connect_in
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.16:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_nbssn_rq_request
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_17
LBB0_18:
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_smb_nbst_disconnect
LBB0_19:
	movq	_M_NBDATA@GOTPCREL(%rip), %r14
	jmp	LBB0_20
LBB0_13:
	movq	_ECONNABORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_20:
	cmpq	$0, -64(%rbp)
	je	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	callq	_md_done
LBB0_22:
	movl	(%r14), %esi
	movq	%rbx, %rdi
LBB0_23:
	callq	_free
LBB0_24:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	xorl	%r13d, %r13d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_M_NBDATA,4,2                   ## @M_NBDATA
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_NB_SSN_REQUEST,4,2             ## @NB_SSN_REQUEST
	.comm	_NBST_RQSENT,4,2                ## @NBST_RQSENT
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"initial request timeout\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"recv() error %d\n"

	.comm	_NB_SSN_POSRESP,8,3             ## @NB_SSN_POSRESP
	.comm	_NBST_SESSION,4,2               ## @NBST_SESSION
	.comm	_NBF_CONNECTED,4,2              ## @NBF_CONNECTED
	.comm	_NB_SSN_RTGRESP,8,3             ## @NB_SSN_RTGRESP
	.comm	_ECONNABORTED,4,2               ## @ECONNABORTED
	.comm	_MB_MSYSTEM,4,2                 ## @MB_MSYSTEM
	.comm	_NBST_RETARGET,4,2              ## @NBST_RETARGET
	.no_dead_strip	_nbssn_rq_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nbssn_rq_request
_nbssn_rq_request:                      ; @nbssn_rq_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _M_NBDATA@GOTPAGE
Lloh1:
	ldr	x25, [x25, _M_NBDATA@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh2:
	adrp	x19, _M_WAITOK@GOTPAGE
Lloh3:
	ldr	x19, [x19, _M_WAITOK@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	w0, #4
	bl	_malloc
	mov	x23, x0
	ldr	w1, [x25]
	ldr	w2, [x19]
	mov	w0, #4
	bl	_malloc
	mov	x19, x0
	mov	x0, x23
	bl	_mb_init
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	b	LBB0_4
LBB0_2:
	mov	x0, x23
	mov	w1, #0
	bl	_mb_put_uint32le
	ldr	w1, [x20, #24]
	mov	x0, x23
	bl	_nb_put_name
	ldr	w1, [x20, #20]
	mov	x0, x23
	bl	_nb_put_name
	ldr	w22, [x23]
Lloh4:
	adrp	x8, _NB_SSN_REQUEST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NB_SSN_REQUEST@GOTPAGEOFF]
Lloh6:
	ldr	w24, [x8]
	mov	x0, x23
	bl	_mb_fixhdr
	sub	x2, x0, #4
	mov	x0, x22
	mov	x1, x24
	bl	_nb_sethdr
	ldr	w0, [x20, #12]
	ldr	w1, [x23]
	mov	w2, #0
	mov	x3, x21
	bl	_nb_sosend
	cbz	w0, LBB0_7
; %bb.3:
	mov	x22, x0
	mov	x0, x23
	bl	_mb_detach
	mov	x0, x23
	bl	_mb_done
LBB0_4:
	ldr	w1, [x25]
	mov	x0, x23
	bl	_free
LBB0_5:
	ldr	w1, [x25]
	mov	x0, x19
	bl	_free
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
Lloh7:
	adrp	x8, _NBST_RQSENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NBST_RQSENT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	mov	x0, x23
	bl	_mb_detach
	mov	x0, x23
	bl	_mb_done
	ldr	w1, [x25]
	mov	x0, x23
	bl	_free
	add	x1, x20, #16
	add	x0, sp, #48
	bl	_TIMESPEC_TO_TIMEVAL
	ldr	w0, [x20, #12]
Lloh10:
	adrp	x8, _POLLIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #48
	mov	x3, x21
	bl	_selsocket
Lloh13:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.8:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_NBDEBUG
	ldr	w1, [x25]
	mov	x0, x19
	bl	_free
Lloh18:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh20:
	ldr	w22, [x8]
	b	LBB0_6
LBB0_9:
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.10:
	add	x1, sp, #56
	add	x2, sp, #20
	add	x3, sp, #24
	mov	x0, x20
	mov	x4, x21
	bl	_nbssn_recv
	cbz	w0, LBB0_12
; %bb.11:
	mov	x22, x0
	str	x22, [sp]
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_NBDEBUG
	b	LBB0_5
LBB0_12:
	ldr	x1, [sp, #56]
	cbz	x1, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_md_initm
LBB0_14:
	ldr	x8, [sp, #24]
Lloh23:
	adrp	x9, _NB_SSN_POSRESP@GOTPAGE
Lloh24:
	ldr	x9, [x9, _NB_SSN_POSRESP@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	mov	w22, #0
Lloh26:
	adrp	x8, _NBST_SESSION@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NBST_SESSION@GOTPAGEOFF]
Lloh28:
	adrp	x9, _NBF_CONNECTED@GOTPAGE
Lloh29:
	ldr	x9, [x9, _NBF_CONNECTED@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	ldr	w9, [x9]
	ldr	w10, [x20, #8]
	orr	w9, w10, w9
	stp	w8, w9, [x20, #4]
	b	LBB0_22
LBB0_16:
Lloh32:
	adrp	x9, _NB_SSN_RTGRESP@GOTPAGE
Lloh33:
	ldr	x9, [x9, _NB_SSN_RTGRESP@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.17:
	ldr	w8, [sp, #20]
	cmp	w8, #6
	b.ne	LBB0_21
; %bb.18:
	add	x8, sp, #40
	orr	w1, w8, #0x4
Lloh35:
	adrp	x8, _MB_MSYSTEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MB_MSYSTEM@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	_md_get_mem
	add	x1, sp, #36
	mov	x0, x19
	bl	_md_get_uint16
	ldr	w8, [sp, #36]
	str	w8, [sp, #40]
Lloh38:
	adrp	x8, _NBST_RETARGET@GOTPAGE
Lloh39:
	ldr	x8, [x8, _NBST_RETARGET@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	ldr	w0, [x20]
	mov	x1, x21
	bl	_smb_nbst_disconnect
	add	x1, sp, #40
	mov	x0, x20
	mov	x2, x21
	bl	_nb_connect_in
	mov	x22, x0
	cbnz	w0, LBB0_20
; %bb.19:
	mov	x0, x20
	mov	x1, x21
	bl	_nbssn_rq_request
	mov	x22, x0
	cbz	w0, LBB0_22
LBB0_20:
	ldr	w0, [x20]
	mov	x1, x21
	bl	_smb_nbst_disconnect
	b	LBB0_22
LBB0_21:
Lloh41:
	adrp	x8, _ECONNABORTED@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ECONNABORTED@GOTPAGEOFF]
Lloh43:
	ldr	w22, [x8]
LBB0_22:
	ldr	x8, [sp, #56]
	cbz	x8, LBB0_5
; %bb.23:
	mov	x0, x19
	bl	_md_done
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh30
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_M_NBDATA,4,2                   ; @M_NBDATA
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_NB_SSN_REQUEST,4,2             ; @NB_SSN_REQUEST
	.comm	_NBST_RQSENT,4,2                ; @NBST_RQSENT
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"initial request timeout\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"recv() error %d\n"

	.comm	_NB_SSN_POSRESP,8,3             ; @NB_SSN_POSRESP
	.comm	_NBST_SESSION,4,2               ; @NBST_SESSION
	.comm	_NBF_CONNECTED,4,2              ; @NBF_CONNECTED
	.comm	_NB_SSN_RTGRESP,8,3             ; @NB_SSN_RTGRESP
	.comm	_ECONNABORTED,4,2               ; @ECONNABORTED
	.comm	_MB_MSYSTEM,4,2                 ; @MB_MSYSTEM
	.comm	_NBST_RETARGET,4,2              ; @NBST_RETARGET
	.no_dead_strip	_nbssn_rq_request
.subsections_via_symbols
