	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smb_nbst_connect
_smb_nbst_connect:                      ## @smb_nbst_connect
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdi), %r13
	leaq	L_.str(%rip), %rdi
	callq	_NBDEBUG
	cmpq	$0, 32(%r13)
	je	LBB0_2
## %bb.1:
	movq	_EISCONN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	cmpq	$0, 24(%r13)
	je	LBB0_4
## %bb.3:
	movl	(%r12), %eax
	movq	_NB_MINSALEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	movq	_M_SONAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
	movq	$0, 16(%r13)
LBB0_9:
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sodupsockaddr
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	%rax, 16(%r13)
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_getnanotime
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_nb_connect_in
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.11:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_getnanotime
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	callq	_timespecsub
	cmpl	$0, -64(%rbp)
	jne	LBB0_13
## %bb.12:
	movl	$1, -64(%rbp)
	movq	$0, -56(%rbp)
LBB0_13:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_timespecadd
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_timespecadd
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_timespecadd
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_nbssn_rq_request
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_smb_nbst_disconnect
	jmp	LBB0_6
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_EISCONN,4,2                    ## @EISCONN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NB_MINSALEN,4,2                ## @NB_MINSALEN
	.comm	_M_SONAME,4,2                   ## @M_SONAME
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_smb_nbst_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smb_nbst_connect
_smb_nbst_connect:                      ; @smb_nbst_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_NBDEBUG
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EISCONN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EISCONN@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x22]
Lloh4:
	adrp	x9, _NB_MINSALEN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NB_MINSALEN@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_7
LBB0_4:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w22, [x8]
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _M_SONAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _M_SONAME@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_free
	str	xzr, [x21, #16]
LBB0_9:
Lloh12:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_sodupsockaddr
	cbz	x0, LBB0_15
; %bb.10:
	str	x0, [x21, #16]
	ldr	w8, [x0]
	str	w8, [sp, #40]
	add	x0, sp, #24
	bl	_getnanotime
	add	x1, sp, #40
	mov	x0, x21
	mov	x2, x19
	bl	_nb_connect_in
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.11:
	add	x0, sp, #8
	bl	_getnanotime
	add	x0, sp, #8
	add	x1, sp, #24
	add	x2, sp, #8
	bl	_timespecsub
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [sp, #8]
	str	xzr, [sp, #16]
LBB0_13:
	add	x0, sp, #8
	add	x1, sp, #8
	mov	x2, x21
	bl	_timespecadd
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x21
	bl	_timespecadd
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x21
	bl	_timespecadd
	mov	x0, x21
	mov	x1, x19
	bl	_nbssn_rq_request
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.14:
	mov	x0, x20
	mov	x1, x19
	bl	_smb_nbst_disconnect
	b	LBB0_6
LBB0_15:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_EISCONN,4,2                    ; @EISCONN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NB_MINSALEN,4,2                ; @NB_MINSALEN
	.comm	_M_SONAME,4,2                   ; @M_SONAME
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_smb_nbst_connect
.subsections_via_symbols
