	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __dn_connect
___dn_connect:                          ## @__dn_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rbx
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	16(%rdi), %r14
	callq	_DN_SK
	movq	(%r14), %rcx
	movq	_SS_CONNECTED@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r9
	cmpq	%r9, %rcx
	jne	LBB0_3
## %bb.1:
	movq	_EISCONN@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_21:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %r8
	movq	_SS_CONNECTING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.4:
	movq	(%rax), %rcx
	movq	_DN_RUN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	movq	%r9, (%r8)
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_10:
	movl	%r15d, %r10d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	subl	(%rcx), %r15d
	movq	(%rax), %rdx
	movq	_DN_O@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_21
## %bb.11:
	testq	%r13, %r13
	je	LBB0_21
## %bb.12:
	cmpl	$16, %r10d
	jne	LBB0_21
## %bb.13:
	movq	%r13, %r14
	movq	(%r13), %rdx
	movq	_AF_DECnet@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_21
## %bb.14:
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_SDF_WILD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	jne	LBB0_21
## %bb.15:
	movq	%r12, %r13
	movq	_SOCK_ZAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sock_flag
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	16(%r13), %rdi
	callq	_dn_auto_bind
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_21
LBB0_17:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	leaq	16(%r12), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	_EHOSTUNREACH@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	leaq	-104(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	12(%r13), %eax
	movl	%eax, -80(%rbp)
	movq	%rbx, %rdi
	callq	_dn_saddr2dn
	movq	%rax, -88(%rbp)
	movq	%r12, %rdi
	addq	$12, %rdi
	callq	_dn_saddr2dn
	movq	%rax, -96(%rbp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_dn_sk_ports_copy
	movq	_DNPROTO_NSP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	_SS_CONNECTING@GOTPCREL(%rip), %r14
	movq	%r13, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_dn_route_output_sock
	testq	%rax, %rax
	js	LBB0_21
## %bb.18:
	movq	(%r13), %rdi
	movq	(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	(%r14), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_DN_CI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, (%rbx)
	movq	_RTAX_ADVMSS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dst_metric
	movl	%eax, 8(%rbx)
	movq	_NSP_CI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dn_nsp_send_conninit
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	cmpq	$0, (%rsi)
	je	LBB0_19
## %bb.20:
	movq	%r13, %rdi
	callq	_dn_wait_run
	movl	%eax, %r15d
	jmp	LBB0_21
LBB0_6:
	movq	_DN_CI@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_9
## %bb.7:
	movq	_DN_CC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_9
## %bb.8:
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	_SS_UNCONNECTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r8)
	jmp	LBB0_21
LBB0_9:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dn_wait_run                    ## TAILCALL
LBB0_19:
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EISCONN,4,2                    ## @EISCONN
	.comm	_SS_CONNECTED,8,3               ## @SS_CONNECTED
	.comm	_SS_CONNECTING,8,3              ## @SS_CONNECTING
	.comm	_DN_RUN,8,3                     ## @DN_RUN
	.comm	_ECONNREFUSED,4,2               ## @ECONNREFUSED
	.comm	_DN_CI,8,3                      ## @DN_CI
	.comm	_DN_CC,8,3                      ## @DN_CC
	.comm	_SS_UNCONNECTED,8,3             ## @SS_UNCONNECTED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DN_O,8,3                       ## @DN_O
	.comm	_AF_DECnet,8,3                  ## @AF_DECnet
	.comm	_SDF_WILD,4,2                   ## @SDF_WILD
	.comm	_SOCK_ZAPPED,4,2                ## @SOCK_ZAPPED
	.comm	_EHOSTUNREACH,4,2               ## @EHOSTUNREACH
	.comm	_DNPROTO_NSP,4,2                ## @DNPROTO_NSP
	.comm	_RTAX_ADVMSS,4,2                ## @RTAX_ADVMSS
	.comm	_NSP_CI,4,2                     ## @NSP_CI
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.no_dead_strip	___dn_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __dn_connect
___dn_connect:                          ; @__dn_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x4
	mov	x19, x3
	mov	x24, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x25, [x0, #16]
	bl	_DN_SK
	ldr	x9, [x25]
Lloh0:
	adrp	x8, _SS_CONNECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SS_CONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _EISCONN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EISCONN@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_3:
	mov	x21, x0
Lloh5:
	adrp	x26, _SS_CONNECTING@GOTPAGE
Lloh6:
	ldr	x26, [x26, _SS_CONNECTING@GOTPAGEOFF]
	ldr	x10, [x26]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.4:
	ldr	x9, [x21]
Lloh7:
	adrp	x10, _DN_RUN@GOTPAGE
Lloh8:
	ldr	x10, [x10, _DN_RUN@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.5:
	mov	w0, #0
	b	LBB0_17
LBB0_6:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	ldr	x8, [x21]
Lloh13:
	adrp	x9, _DN_O@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DN_O@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	x23, #0, #4, eq
	ccmp	w24, #16, #0, ne
	b.ne	LBB0_18
; %bb.7:
	ldr	x8, [x23]
Lloh16:
	adrp	x9, _AF_DECnet@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AF_DECnet@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.8:
	ldr	w8, [x23, #8]
Lloh19:
	adrp	x9, _SDF_WILD@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SDF_WILD@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_18
; %bb.9:
Lloh22:
	adrp	x8, _SOCK_ZAPPED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SOCK_ZAPPED@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sock_flag
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x0, [x20, #16]
	bl	_dn_auto_bind
	cbnz	w0, LBB0_18
LBB0_11:
	add	x24, x21, #16
	mov	x0, x24
	mov	x1, x23
	mov	w2, #16
	bl	_memcpy
Lloh25:
	adrp	x8, _EHOSTUNREACH@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EHOSTUNREACH@GOTPAGEOFF]
Lloh27:
	ldr	w23, [x8]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w8, [x20, #12]
	str	w8, [sp, #24]
	mov	x0, x24
	bl	_dn_saddr2dn
	str	x0, [sp, #16]
	add	x0, x21, #12
	bl	_dn_saddr2dn
	str	x0, [sp, #8]
	mov	x0, sp
	mov	x1, x21
	bl	_dn_sk_ports_copy
Lloh28:
	adrp	x8, _DNPROTO_NSP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DNPROTO_NSP@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x1, sp
	mov	x0, x20
	mov	x2, x20
	mov	x3, x22
	bl	_dn_route_output_sock
	tbnz	x0, #63, LBB0_19
; %bb.12:
	ldr	x0, [x20]
	ldr	x8, [x0]
	ldr	w8, [x8]
	str	w8, [x20, #8]
	ldr	x8, [x26]
Lloh31:
	adrp	x9, _DN_CI@GOTPAGE
Lloh32:
	ldr	x9, [x9, _DN_CI@GOTPAGEOFF]
	str	x8, [x25]
Lloh33:
	ldr	x8, [x9]
	str	x8, [x21]
Lloh34:
	adrp	x8, _RTAX_ADVMSS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RTAX_ADVMSS@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	bl	_dst_metric
	str	w0, [x21, #8]
Lloh37:
	adrp	x8, _NSP_CI@GOTPAGE
Lloh38:
	ldr	x8, [x8, _NSP_CI@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dn_nsp_send_conninit
	ldr	x8, [x19]
	cbz	x8, LBB0_20
; %bb.13:
	mov	x0, x20
	mov	x1, x19
	bl	_dn_wait_run
	b	LBB0_18
LBB0_14:
Lloh40:
	adrp	x8, _DN_CI@GOTPAGE
Lloh41:
	ldr	x8, [x8, _DN_CI@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
Lloh43:
	adrp	x10, _DN_CC@GOTPAGE
Lloh44:
	ldr	x10, [x10, _DN_CC@GOTPAGEOFF]
Lloh45:
	ldr	x10, [x10]
	cmp	x9, x8
	ccmp	x9, x10, #4, ne
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_dn_wait_run
LBB0_16:
Lloh46:
	adrp	x8, _ECONNREFUSED@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ECONNREFUSED@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	neg	w0, w8
Lloh49:
	adrp	x8, _SS_UNCONNECTED@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SS_UNCONNECTED@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
LBB0_17:
	str	x8, [x25]
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_19:
	neg	w0, w23
	b	LBB0_18
LBB0_20:
Lloh52:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh53:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_EISCONN,4,2                    ; @EISCONN
	.comm	_SS_CONNECTED,8,3               ; @SS_CONNECTED
	.comm	_SS_CONNECTING,8,3              ; @SS_CONNECTING
	.comm	_DN_RUN,8,3                     ; @DN_RUN
	.comm	_ECONNREFUSED,4,2               ; @ECONNREFUSED
	.comm	_DN_CI,8,3                      ; @DN_CI
	.comm	_DN_CC,8,3                      ; @DN_CC
	.comm	_SS_UNCONNECTED,8,3             ; @SS_UNCONNECTED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DN_O,8,3                       ; @DN_O
	.comm	_AF_DECnet,8,3                  ; @AF_DECnet
	.comm	_SDF_WILD,4,2                   ; @SDF_WILD
	.comm	_SOCK_ZAPPED,4,2                ; @SOCK_ZAPPED
	.comm	_EHOSTUNREACH,4,2               ; @EHOSTUNREACH
	.comm	_DNPROTO_NSP,4,2                ; @DNPROTO_NSP
	.comm	_RTAX_ADVMSS,4,2                ; @RTAX_ADVMSS
	.comm	_NSP_CI,4,2                     ; @NSP_CI
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.no_dead_strip	___dn_connect
.subsections_via_symbols
