	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NgMkSockNode                   ## -- Begin function NgMkSockNode
	.p2align	4, 0x90
_NgMkSockNode:                          ## @NgMkSockNode
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	movq	%rsi, -152(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NG_NODESIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	cmpb	$0, (%rbx)
	cmovneq	%rbx, %r15
LBB0_2:
	movq	_AF_NETGRAPH@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NG_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_socket
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_6
LBB0_3:
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_12
## %bb.4:
	movq	%rsp, -144(%rbp)                ## 8-byte Spill
	movq	_NGSA_OVERHEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NG_NODESIZ@GOTPCREL(%rip), %r12
	addl	(%r12), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	(%r12), %edx
	movq	%r15, %rsi
	callq	_strlcpy
	movq	(%rbx), %rax
	movq	%rax, 16(%r14)
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	_NGSA_OVERHEAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rax,%rcx), %edx
	incl	%edx
	movl	%edx, 8(%r14)
	movl	%r13d, %edi
	movq	%r14, %rsi
	callq	_bind
	testq	%rax, %rax
	js	LBB0_22
## %bb.5:
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strlcpy
	movq	-144(%rbp), %rsp                ## 8-byte Reload
	cmpq	$0, -136(%rbp)                  ## 8-byte Folded Reload
	jne	LBB0_16
	jmp	LBB0_19
LBB0_6:
	movq	%rbx, %r13
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_10
## %bb.7:
	movq	_NG_SOCKET_KLD@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_kldload
	testq	%rax, %rax
	js	LBB0_31
## %bb.8:
	movq	%r13, %rbx
	movq	(%r13), %rdi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	callq	_socket
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_3
## %bb.9:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_10:
	movq	__gNgDebugLevel@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_44
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_NGLOG
	jmp	LBB0_44
LBB0_12:
	cmpq	$0, -136(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_19
## %bb.13:
	movq	_NGM_GENERIC_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NGM_NODEINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	movl	%r13d, %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_NgSendMsg
	testq	%rax, %rax
	js	LBB0_33
## %bb.14:
	leaq	-112(%rbp), %rsi
	movl	%r13d, %edi
	movl	$64, %edx
	xorl	%ecx, %ecx
	callq	_NgRecvMsg
	testq	%rax, %rax
	js	LBB0_39
## %bb.15:
	leaq	L_.str.6(%rip), %rdx
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	-120(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_snprintf
LBB0_16:
	movq	%rsp, -120(%rbp)                ## 8-byte Spill
	movq	_NG_NODESIZ@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_NGSA_OVERHEAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	incl	%eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_AF_NETGRAPH@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NG_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_socket
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_29
## %bb.17:
	movl	(%r12), %esi
	incl	%esi
	leaq	L_.str.7(%rip), %rdx
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	callq	_snprintf
	movq	(%rbx), %rax
	movq	%rax, 16(%r14)
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	_NGSA_OVERHEAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rax,%rcx), %edx
	incl	%edx
	movl	%edx, 8(%r14)
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_connect
	testq	%rax, %rax
	js	LBB0_35
## %bb.18:
	movq	-120(%rbp), %rsp                ## 8-byte Reload
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_19:
	movl	$-1, %r15d
	movb	$1, %bl
LBB0_20:
	movq	-152(%rbp), %rax                ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_26
## %bb.21:
	movl	%r13d, (%rax)
	jmp	LBB0_27
LBB0_22:
	movq	-144(%rbp), %r15                ## 8-byte Reload
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	__gNgDebugLevel@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_24
## %bb.23:
	movq	(%r14), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_NGLOG
LBB0_24:
	movq	%r15, %rsp
	jmp	LBB0_42
LBB0_26:
	movl	%r13d, %edi
	callq	_close
LBB0_27:
	xorl	%eax, %eax
	testb	%bl, %bl
	jne	LBB0_45
## %bb.28:
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movl	%r15d, (%rcx)
	jmp	LBB0_45
LBB0_29:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	__gNgDebugLevel@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_37
## %bb.30:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_NGLOG
	jmp	LBB0_37
LBB0_31:
	movq	%rbx, %rcx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	__gNgDebugLevel@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_44
## %bb.32:
	movq	(%rcx), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_NGLOG
	jmp	LBB0_44
LBB0_33:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	__gNgDebugLevel@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_42
## %bb.34:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_41
LBB0_35:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	__gNgDebugLevel@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_37
## %bb.36:
	movq	(%r14), %rsi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_NGLOG
LBB0_37:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	%rax, %rsp
	movl	%r13d, %edi
	callq	_close
	testl	%r15d, %r15d
	js	LBB0_44
## %bb.38:
	movl	%r15d, %edi
	jmp	LBB0_43
LBB0_39:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	__gNgDebugLevel@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_42
## %bb.40:
	leaq	L_.str.5(%rip), %rdi
LBB0_41:
	xorl	%eax, %eax
	callq	_NGLOG
LBB0_42:
	movl	%r13d, %edi
LBB0_43:
	callq	_close
LBB0_44:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movl	$-1, %eax
LBB0_45:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_47
## %bb.46:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_47:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_NODESIZ,4,2                 ## @NG_NODESIZ
	.comm	_AF_NETGRAPH,8,3                ## @AF_NETGRAPH
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_NG_CONTROL,4,2                 ## @NG_CONTROL
	.comm	_errno,4,2                      ## @errno
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_NG_SOCKET_KLD,8,3              ## @NG_SOCKET_KLD
	.comm	__gNgDebugLevel,4,2             ## @_gNgDebugLevel
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't load %s"

L_.str.1:                               ## @.str.1
	.asciz	"socket"

	.comm	_NGSA_OVERHEAD,4,2              ## @NGSA_OVERHEAD
L_.str.2:                               ## @.str.2
	.asciz	"bind(%s)"

L_.str.3:                               ## @.str.3
	.asciz	"."

	.comm	_NGM_GENERIC_COOKIE,4,2         ## @NGM_GENERIC_COOKIE
	.comm	_NGM_NODEINFO,4,2               ## @NGM_NODEINFO
L_.str.4:                               ## @.str.4
	.asciz	"send nodeinfo"

L_.str.5:                               ## @.str.5
	.asciz	"recv nodeinfo"

L_.str.6:                               ## @.str.6
	.asciz	"[%lx]"

	.comm	_NG_DATA,4,2                    ## @NG_DATA
L_.str.7:                               ## @.str.7
	.asciz	"%s:"

L_.str.8:                               ## @.str.8
	.asciz	"connect(%s)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NgMkSockNode                   ; -- Begin function NgMkSockNode
	.p2align	2
_NgMkSockNode:                          ; @NgMkSockNode
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #96
	mov	x21, x2
	mov	x28, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x26, _NG_NODESIZ@GOTPAGE
Lloh4:
	ldr	x26, [x26, _NG_NODESIZ@GOTPAGEOFF]
	ldr	w23, [x26]
	mov	x9, x23
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	cbz	x0, LBB0_2
; %bb.1:
	ldrb	w8, [x0]
	cmp	w8, #0
	csel	x24, xzr, x0, eq
	b	LBB0_3
LBB0_2:
	mov	x24, #0
LBB0_3:
Lloh7:
	adrp	x27, _AF_NETGRAPH@GOTPAGE
Lloh8:
	ldr	x27, [x27, _AF_NETGRAPH@GOTPAGEOFF]
	ldr	x0, [x27]
Lloh9:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x25, _NG_CONTROL@GOTPAGE
Lloh13:
	ldr	x25, [x25, _NG_CONTROL@GOTPAGEOFF]
	ldr	w2, [x25]
	bl	_socket
	mov	x19, x0
	tbnz	w0, #31, LBB0_7
LBB0_4:
	cbz	x24, LBB0_13
; %bb.5:
	stp	x21, x28, [x29, #-168]          ; 16-byte Folded Spill
	mov	x28, sp
Lloh14:
	adrp	x21, _NGSA_OVERHEAD@GOTPAGE
Lloh15:
	ldr	x21, [x21, _NGSA_OVERHEAD@GOTPAGEOFF]
	ldr	w8, [x26]
	ldr	w9, [x21]
	add	w8, w9, w8
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0x7fffffff0
Lloh16:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh17:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x25, x9, x8
	mov	sp, x25
	ldr	w2, [x26]
	mov	x1, x24
	bl	_strlcpy
	mov	x20, x27
	ldr	x8, [x27]
	str	x8, [x25, #16]
	bl	_strlen
	ldr	w8, [x21]
	add	w8, w0, w8
	add	w2, w8, #1
	str	w2, [x25, #8]
	mov	x0, x19
	mov	x1, x25
	bl	_bind
	tbnz	x0, #63, LBB0_24
; %bb.6:
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	bl	_strlcpy
	mov	sp, x28
	ldp	x21, x28, [x29, #-168]          ; 16-byte Folded Reload
	mov	x27, x20
	cbnz	x21, LBB0_17
	b	LBB0_21
LBB0_7:
	mov	x26, x27
	mov	x27, x28
	mov	x28, x21
Lloh18:
	adrp	x20, _errno@GOTPAGE
Lloh19:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
Lloh20:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_11
; %bb.8:
Lloh23:
	adrp	x19, _NG_SOCKET_KLD@GOTPAGE
Lloh24:
	ldr	x19, [x19, _NG_SOCKET_KLD@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_kldload
	tbnz	x0, #63, LBB0_29
; %bb.9:
	ldr	x0, [x26]
Lloh25:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w2, [x25]
	bl	_socket
	mov	x19, x0
	mov	x21, x28
	mov	x28, x27
	mov	x27, x26
Lloh28:
	adrp	x26, _NG_NODESIZ@GOTPAGE
Lloh29:
	ldr	x26, [x26, _NG_NODESIZ@GOTPAGEOFF]
	tbz	w0, #31, LBB0_4
; %bb.10:
	ldr	w21, [x20]
LBB0_11:
Lloh30:
	adrp	x8, __gNgDebugLevel@GOTPAGE
Lloh31:
	ldr	x8, [x8, __gNgDebugLevel@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_42
; %bb.12:
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_NGLOG
	b	LBB0_42
LBB0_13:
	cbz	x21, LBB0_21
; %bb.14:
Lloh35:
	adrp	x8, _NGM_GENERIC_COOKIE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NGM_GENERIC_COOKIE@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x8, _NGM_NODEINFO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _NGM_NODEINFO@GOTPAGEOFF]
Lloh40:
	ldr	w3, [x8]
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x4, #0
	mov	w5, #0
	bl	_NgSendMsg
	tbnz	x0, #63, LBB0_31
; %bb.15:
	sub	x1, x29, #152
	mov	x0, x19
	mov	w2, #64
	mov	x3, #0
	bl	_NgRecvMsg
	tbnz	x0, #63, LBB0_37
; %bb.16:
Lloh43:
	adrp	x2, l_.str.6@PAGE
Lloh44:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	bl	_snprintf
LBB0_17:
	mov	x25, sp
	ldr	w8, [x26]
Lloh45:
	adrp	x20, _NGSA_OVERHEAD@GOTPAGE
Lloh46:
	ldr	x20, [x20, _NGSA_OVERHEAD@GOTPAGEOFF]
	ldr	w9, [x20]
	add	w8, w8, w9
	add	w8, w8, #1
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0x7fffffff0
Lloh47:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh48:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x24, x9, x8
	mov	sp, x24
	ldr	x0, [x27]
Lloh49:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
Lloh52:
	adrp	x8, _NG_DATA@GOTPAGE
Lloh53:
	ldr	x8, [x8, _NG_DATA@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	bl	_socket
	mov	x23, x0
	tbnz	w0, #31, LBB0_27
; %bb.18:
	ldr	w8, [x26]
	add	w1, w8, #1
Lloh55:
	adrp	x2, l_.str.7@PAGE
Lloh56:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x3, x22
	bl	_snprintf
	ldr	x8, [x27]
	str	x8, [x24, #16]
	bl	_strlen
	ldr	w8, [x20]
	add	w8, w0, w8
	add	w2, w8, #1
	str	w2, [x24, #8]
	mov	x0, x23
	mov	x1, x24
	bl	_connect
	tbnz	x0, #63, LBB0_33
; %bb.19:
	mov	sp, x25
	mov	w20, #0
	cbnz	x28, LBB0_22
LBB0_20:
	mov	x0, x19
	bl	_close
	mov	w0, #0
	tbnz	w20, #0, LBB0_43
	b	LBB0_23
LBB0_21:
	mov	w23, #-1
	mov	w20, #1
	cbz	x28, LBB0_20
LBB0_22:
	str	w19, [x28]
	mov	w0, #0
	tbnz	w20, #0, LBB0_43
LBB0_23:
	str	w23, [x21]
	b	LBB0_43
LBB0_24:
Lloh57:
	adrp	x8, _errno@GOTPAGE
Lloh58:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh59:
	ldr	w21, [x8]
Lloh60:
	adrp	x8, __gNgDebugLevel@GOTPAGE
Lloh61:
	ldr	x8, [x8, __gNgDebugLevel@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.25:
	ldr	x8, [x25]
	str	x8, [sp, #-16]!
Lloh63:
	adrp	x0, l_.str.2@PAGE
Lloh64:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_NGLOG
	add	sp, sp, #16
LBB0_26:
	mov	sp, x28
	b	LBB0_40
LBB0_27:
Lloh65:
	adrp	x8, _errno@GOTPAGE
Lloh66:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh67:
	ldr	w21, [x8]
Lloh68:
	adrp	x8, __gNgDebugLevel@GOTPAGE
Lloh69:
	ldr	x8, [x8, __gNgDebugLevel@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.28:
Lloh71:
	adrp	x0, l_.str.1@PAGE
Lloh72:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_NGLOG
	b	LBB0_35
LBB0_29:
	ldr	w21, [x20]
Lloh73:
	adrp	x8, __gNgDebugLevel@GOTPAGE
Lloh74:
	ldr	x8, [x8, __gNgDebugLevel@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_42
; %bb.30:
	ldr	x8, [x19]
	str	x8, [sp, #-16]!
Lloh76:
	adrp	x0, l_.str@PAGE
Lloh77:
	add	x0, x0, l_.str@PAGEOFF
	bl	_NGLOG
	add	sp, sp, #16
	b	LBB0_42
LBB0_31:
Lloh78:
	adrp	x8, _errno@GOTPAGE
Lloh79:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh80:
	ldr	w21, [x8]
Lloh81:
	adrp	x8, __gNgDebugLevel@GOTPAGE
Lloh82:
	ldr	x8, [x8, __gNgDebugLevel@GOTPAGEOFF]
Lloh83:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_40
; %bb.32:
Lloh84:
	adrp	x0, l_.str.4@PAGE
Lloh85:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_39
LBB0_33:
Lloh86:
	adrp	x8, _errno@GOTPAGE
Lloh87:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh88:
	ldr	w21, [x8]
Lloh89:
	adrp	x8, __gNgDebugLevel@GOTPAGE
Lloh90:
	ldr	x8, [x8, __gNgDebugLevel@GOTPAGEOFF]
Lloh91:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.34:
	ldr	x8, [x24]
	str	x8, [sp, #-16]!
Lloh92:
	adrp	x0, l_.str.8@PAGE
Lloh93:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_NGLOG
	add	sp, sp, #16
LBB0_35:
	mov	sp, x25
	mov	x0, x19
	bl	_close
	tbnz	w23, #31, LBB0_42
; %bb.36:
	mov	x0, x23
	b	LBB0_41
LBB0_37:
Lloh94:
	adrp	x8, _errno@GOTPAGE
Lloh95:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh96:
	ldr	w21, [x8]
Lloh97:
	adrp	x8, __gNgDebugLevel@GOTPAGE
Lloh98:
	ldr	x8, [x8, __gNgDebugLevel@GOTPAGEOFF]
Lloh99:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_40
; %bb.38:
Lloh100:
	adrp	x0, l_.str.5@PAGE
Lloh101:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_39:
	bl	_NGLOG
LBB0_40:
	mov	x0, x19
LBB0_41:
	bl	_close
LBB0_42:
Lloh102:
	adrp	x8, _errno@GOTPAGE
Lloh103:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh104:
	str	w21, [x8]
	mov	w0, #-1
LBB0_43:
	ldur	x8, [x29, #-88]
Lloh105:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh106:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh107:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_45
; %bb.44:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_45:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotStr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_NODESIZ,4,2                 ; @NG_NODESIZ
	.comm	_AF_NETGRAPH,8,3                ; @AF_NETGRAPH
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_NG_CONTROL,4,2                 ; @NG_CONTROL
	.comm	_errno,4,2                      ; @errno
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_NG_SOCKET_KLD,8,3              ; @NG_SOCKET_KLD
	.comm	__gNgDebugLevel,4,2             ; @_gNgDebugLevel
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't load %s"

l_.str.1:                               ; @.str.1
	.asciz	"socket"

	.comm	_NGSA_OVERHEAD,4,2              ; @NGSA_OVERHEAD
l_.str.2:                               ; @.str.2
	.asciz	"bind(%s)"

l_.str.3:                               ; @.str.3
	.asciz	"."

	.comm	_NGM_GENERIC_COOKIE,4,2         ; @NGM_GENERIC_COOKIE
	.comm	_NGM_NODEINFO,4,2               ; @NGM_NODEINFO
l_.str.4:                               ; @.str.4
	.asciz	"send nodeinfo"

l_.str.5:                               ; @.str.5
	.asciz	"recv nodeinfo"

l_.str.6:                               ; @.str.6
	.asciz	"[%lx]"

	.comm	_NG_DATA,4,2                    ; @NG_DATA
l_.str.7:                               ; @.str.7
	.asciz	"%s:"

l_.str.8:                               ; @.str.8
	.asciz	"connect(%s)"

.subsections_via_symbols
