	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nb_connect_in
_nb_connect_in:                         ## @nb_connect_in
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	4(%r12), %r8d
	leaq	-48(%rbp), %rsi
	movq	%r12, %r9
	callq	_socreate
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	movq	-48(%rbp), %rdi
	movq	%rdi, 16(%r14)
	addq	$20, %rdi
	callq	_SOCKBUF_LOCK
	movq	-48(%rbp), %rdi
	movq	_SO_RCV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_nb_upcall@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	callq	_soupcall_set
	movq	-48(%rbp), %rdi
	addq	$20, %rdi
	callq	_SOCKBUF_UNLOCK
	movq	_SBT_1S@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %eax
	movq	-48(%rbp), %rdi
	movl	%eax, 20(%rdi)
	movl	%eax, 12(%rdi)
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	callq	_soreserve
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.2:
	movq	-48(%rbp), %rdi
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_KEEPALIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_nb_setsockopt_int
	movq	-48(%rbp), %rdi
	movl	(%r13), %esi
	movq	_TCP_NODELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_nb_setsockopt_int
	movq	-48(%rbp), %rdi
	addq	$20, %rdi
	callq	_SOCKBUF_LOCK
	movq	_SB_NOINTR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	notl	%eax
	movq	-48(%rbp), %rdi
	andl	%eax, 24(%rdi)
	addq	$20, %rdi
	callq	_SOCKBUF_UNLOCK
	movq	-48(%rbp), %rdi
	addq	$12, %rdi
	callq	_SOCKBUF_LOCK
	movl	(%rbx), %eax
	notl	%eax
	movq	-48(%rbp), %rdi
	andl	%eax, 16(%rdi)
	addq	$12, %rdi
	callq	_SOCKBUF_UNLOCK
	movq	-48(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_soconnect
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:
	xorl	%eax, %eax
	callq	_splnet
	movq	-48(%rbp), %rdi
	movq	_SS_ISCONNECTING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	testl	%ecx, (%rdi)
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_11
## %bb.4:
	movq	_PSOCK@GOTPCREL(%rip), %r13
	movq	_hz@GOTPCREL(%rip), %r15
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 4(%rdi)
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %rdi
	movl	(%r13), %esi
	movl	(%r15), %ecx
	addl	%ecx, %ecx
	leaq	L_.str(%rip), %rdx
	callq	_tsleep
	movq	-48(%rbp), %rdi
	movl	(%rbx), %eax
	testl	%eax, (%rdi)
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %eax
	cmpl	$0, 4(%rdi)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %r14
	movl	(%r12), %esi
	callq	_nb_intr
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdi
	movl	(%r14), %eax
	andl	(%rdi), %eax
	movq	%r14, %rbx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_11:
	movl	4(%rdi), %ebx
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.12:
	movl	$0, 4(%rdi)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
LBB0_15:
	callq	_splx
LBB0_16:
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_smb_nbst_disconnect
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_splx
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_14:
	movl	%eax, %ebx
	movl	(%r14), %eax
	notl	%eax
	movq	-48(%rbp), %rcx
	andl	%eax, (%rcx)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_SO_RCV,4,2                     ## @SO_RCV
	.comm	_nb_upcall,4,2                  ## @nb_upcall
	.comm	_SBT_1S,4,2                     ## @SBT_1S
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_KEEPALIVE,4,2               ## @SO_KEEPALIVE
	.comm	_TCP_NODELAY,4,2                ## @TCP_NODELAY
	.comm	_SB_NOINTR,4,2                  ## @SB_NOINTR
	.comm	_SS_ISCONNECTING,4,2            ## @SS_ISCONNECTING
	.comm	_PSOCK,4,2                      ## @PSOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nbcon"

	.comm	_hz,4,2                         ## @hz
	.no_dead_strip	_nb_connect_in
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nb_connect_in
_nb_connect_in:                         ; @nb_connect_in
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	ldr	w2, [x9]
Lloh6:
	adrp	x22, _IPPROTO_TCP@GOTPAGE
Lloh7:
	ldr	x22, [x22, _IPPROTO_TCP@GOTPAGEOFF]
	ldr	w3, [x22]
	ldr	w4, [x19, #4]
	add	x1, sp, #8
	mov	x5, x19
	bl	_socreate
	mov	x23, x0
	cbnz	w0, LBB0_15
; %bb.1:
	ldr	x8, [sp, #8]
	str	x8, [x20, #16]
	add	x0, x8, #20
	bl	_SOCKBUF_LOCK
	ldr	x0, [sp, #8]
Lloh8:
	adrp	x8, _SO_RCV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SO_RCV@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _nb_upcall@GOTPAGE
Lloh12:
	ldr	x8, [x8, _nb_upcall@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x3, x20
	bl	_soupcall_set
	ldr	x8, [sp, #8]
	add	x0, x8, #20
	bl	_SOCKBUF_UNLOCK
Lloh14:
	adrp	x8, _SBT_1S@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SBT_1S@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #2
	ldr	x0, [sp, #8]
	str	w8, [x0, #20]
	str	w8, [x0, #12]
	ldp	w2, w1, [x20, #4]
	bl	_soreserve
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.2:
	ldr	x0, [sp, #8]
Lloh17:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _SO_KEEPALIVE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SO_KEEPALIVE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_nb_setsockopt_int
	ldr	x0, [sp, #8]
	ldr	w1, [x22]
Lloh23:
	adrp	x8, _TCP_NODELAY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TCP_NODELAY@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_nb_setsockopt_int
	ldr	x8, [sp, #8]
	add	x0, x8, #20
	bl	_SOCKBUF_LOCK
Lloh26:
	adrp	x22, _SB_NOINTR@GOTPAGE
Lloh27:
	ldr	x22, [x22, _SB_NOINTR@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	x9, [sp, #8]
	add	x0, x9, #20
	ldr	w10, [x9, #24]
	bic	w8, w10, w8
	str	w8, [x9, #24]
	bl	_SOCKBUF_UNLOCK
	ldr	x8, [sp, #8]
	add	x0, x8, #12
	bl	_SOCKBUF_LOCK
	ldr	w8, [x22]
	ldr	x9, [sp, #8]
	add	x0, x9, #12
	ldr	w10, [x9, #16]
	bic	w8, w10, w8
	str	w8, [x9, #16]
	bl	_SOCKBUF_UNLOCK
	ldr	x0, [sp, #8]
	mov	x1, x21
	mov	x2, x19
	bl	_soconnect
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.3:
	bl	_splnet
	mov	x21, x0
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
Lloh28:
	adrp	x24, _SS_ISCONNECTING@GOTPAGE
Lloh29:
	ldr	x24, [x24, _SS_ISCONNECTING@GOTPAGEOFF]
	ldr	w10, [x24]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.4:
Lloh30:
	adrp	x25, _PSOCK@GOTPAGE
Lloh31:
	ldr	x25, [x25, _PSOCK@GOTPAGEOFF]
Lloh32:
	adrp	x26, _hz@GOTPAGE
Lloh33:
	ldr	x26, [x26, _hz@GOTPAGEOFF]
Lloh34:
	adrp	x22, l_.str@PAGE
Lloh35:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w9, #1
	cbz	w9, LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8, #4]
	cbnz	w9, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x8, #8
	ldr	w1, [x25]
	ldr	w8, [x26]
	lsl	w3, w8, #1
	mov	x2, x22
	bl	_tsleep
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	ldr	w10, [x24]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x8, #4]
	cbnz	w9, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x19]
	mov	x0, x20
	bl	_nb_intr
	cbnz	w0, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	ldr	w10, [x24]
	and	w9, w10, w9
	cbnz	w9, LBB0_6
LBB0_11:
	ldr	w23, [x8, #4]
	cbz	w23, LBB0_16
; %bb.12:
	str	wzr, [x8, #4]
LBB0_13:
	mov	x0, x21
	bl	_splx
LBB0_14:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_smb_nbst_disconnect
LBB0_15:
	mov	x0, x23
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	mov	x0, x21
	bl	_splx
	b	LBB0_15
LBB0_17:
	mov	x23, x0
	ldr	w8, [x24]
	ldr	x9, [sp, #8]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_SO_RCV,4,2                     ; @SO_RCV
	.comm	_nb_upcall,4,2                  ; @nb_upcall
	.comm	_SBT_1S,4,2                     ; @SBT_1S
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_KEEPALIVE,4,2               ; @SO_KEEPALIVE
	.comm	_TCP_NODELAY,4,2                ; @TCP_NODELAY
	.comm	_SB_NOINTR,4,2                  ; @SB_NOINTR
	.comm	_SS_ISCONNECTING,4,2            ; @SS_ISCONNECTING
	.comm	_PSOCK,4,2                      ; @PSOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nbcon"

	.comm	_hz,4,2                         ; @hz
	.no_dead_strip	_nb_connect_in
.subsections_via_symbols
