	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function NgDeliverMsg
_NgDeliverMsg:                          ## @NgDeliverMsg
	.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	%r8, %r14
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NG_PATHSIZ@GOTPCREL(%rip), %rcx
	movq	_NGSA_OVERHEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%rcx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	testq	%r13, %r13
	cmoveq	%r13, %r14
	leal	24(%r14), %edi
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	callq	_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movups	(%r12), %xmm0
	movups	%xmm0, (%r15)
	movq	16(%r12), %rdi
	movq	%rdi, 16(%r15)
	movq	%r14, (%r15)
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	movq	_AF_NETGRAPH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_NG_PATHSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_strlcpy
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	_NGSA_OVERHEAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rax,%rcx), %r9d
	incl	%r9d
	movl	%r9d, (%rbx)
	movq	__gNgDebugLevel@GOTPCREL(%rip), %r13
	cmpl	$2, (%r13)
	jl	LBB0_5
## %bb.4:
	movq	_NGF_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%r15), %eax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_NGLOGX
	movq	%rbx, %rdi
	callq	__NgDebugSockaddr
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	__NgDebugMsg
	movl	(%rbx), %r9d
LBB0_5:
	xorl	%r14d, %r14d
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_sendto
	testq	%rax, %rax
	js	LBB0_6
## %bb.8:
	movq	_NGM_HASREPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r15)
	je	LBB0_9
## %bb.10:
	movq	_NGF_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$0, %r12d
	testl	%eax, 8(%r15)
	jne	LBB0_15
## %bb.11:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -88(%rbp)
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	$0, -80(%rbp)
	movq	_INFTIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-88(%rbp), %rdi
	movl	$1, %esi
	callq	_poll
	xorl	%r14d, %r14d
	movl	$0, %r12d
	cmpl	$-1, %eax
	jne	LBB0_15
## %bb.12:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$-1, %r12d
	cmpl	$0, (%r13)
	jle	LBB0_15
## %bb.13:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_14
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	__gNgDebugLevel@GOTPCREL(%rip), %rax
	movl	$-1, %r12d
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.2:
	leaq	L_.str(%rip), %rdi
LBB0_14:
	xorl	%eax, %eax
	callq	_NGLOG
	jmp	LBB0_15
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$-1, %r12d
	cmpl	$0, (%r13)
	jle	LBB0_15
## %bb.7:
	movl	4(%rbx), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_NGLOG
	jmp	LBB0_15
LBB0_9:
	xorl	%r12d, %r12d
LBB0_15:
	movq	%r15, %rdi
	callq	_free
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_PATHSIZ,4,2                 ## @NG_PATHSIZ
	.comm	_NGSA_OVERHEAD,4,2              ## @NGSA_OVERHEAD
	.comm	_errno,4,2                      ## @errno
	.comm	__gNgDebugLevel,4,2             ## @_gNgDebugLevel
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc"

	.comm	_AF_NETGRAPH,4,2                ## @AF_NETGRAPH
L_.str.1:                               ## @.str.1
	.asciz	"SENDING %s:"

	.comm	_NGF_RESP,4,2                   ## @NGF_RESP
L_.str.2:                               ## @.str.2
	.asciz	"RESPONSE"

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

L_.str.4:                               ## @.str.4
	.asciz	"sendto(%s)"

	.comm	_NGM_HASREPLY,4,2               ## @NGM_HASREPLY
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_INFTIM,4,2                     ## @INFTIM
L_.str.5:                               ## @.str.5
	.asciz	"poll"

	.no_dead_strip	_NgDeliverMsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function NgDeliverMsg
_NgDeliverMsg:                          ; @NgDeliverMsg
	.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, #32
	mov	x24, x3
	mov	x25, x2
	mov	x23, x1
	mov	x20, x0
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	x27, _NG_PATHSIZ@GOTPAGE
Lloh4:
	ldr	x27, [x27, _NG_PATHSIZ@GOTPAGEOFF]
Lloh5:
	adrp	x28, _NGSA_OVERHEAD@GOTPAGE
Lloh6:
	ldr	x28, [x28, _NGSA_OVERHEAD@GOTPAGEOFF]
	ldr	w8, [x27]
	ldr	w9, [x28]
	add	w8, w9, w8
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0x7fffffff0
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x8
	mov	sp, x21
	cmp	x3, #0
	csel	x26, xzr, x4, eq
	add	w22, w26, #24
	mov	x0, x22
	bl	_malloc
	mov	x19, x0
Lloh9:
	adrp	x9, _errno@GOTPAGE
Lloh10:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x0, [x25, #16]
	ldr	q0, [x25]
	str	q0, [x19]
	str	x0, [x19, #16]
	str	x26, [x19]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x24
	mov	x2, x26
	bl	_memcpy
Lloh11:
	adrp	x8, _AF_NETGRAPH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AF_NETGRAPH@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	ldr	w2, [x27]
	mov	x1, x23
	bl	_strlcpy
	bl	_strlen
	ldr	w8, [x28]
	add	w8, w0, w8
	add	w5, w8, #1
	str	w5, [x21]
Lloh14:
	adrp	x23, __gNgDebugLevel@GOTPAGE
Lloh15:
	ldr	x23, [x23, __gNgDebugLevel@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.2:
	ldr	w8, [x19, #8]
Lloh16:
	adrp	x9, _NGF_RESP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NGF_RESP@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, l_.str.2@PAGE
Lloh20:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh21:
	adrp	x11, l_.str.3@PAGE
Lloh22:
	add	x11, x11, l_.str.3@PAGEOFF
	tst	w9, w8
	csel	x1, x11, x10, eq
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_NGLOGX
	mov	x0, x21
	bl	__NgDebugSockaddr
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	__NgDebugMsg
	ldr	w5, [x21]
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	w3, #0
	mov	x4, x21
	bl	_sendto
Lloh25:
	adrp	x24, _errno@GOTPAGE
Lloh26:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	tbnz	x0, #63, LBB0_11
; %bb.4:
	ldr	w8, [x19, #12]
Lloh27:
	adrp	x9, _NGM_HASREPLY@GOTPAGE
Lloh28:
	ldr	x9, [x9, _NGM_HASREPLY@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x19, #8]
Lloh30:
	adrp	x9, _NGF_RESP@GOTPAGE
Lloh31:
	ldr	x9, [x9, _NGF_RESP@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
	stur	w20, [x29, #-112]
Lloh33:
	adrp	x8, _POLLIN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	stur	w8, [x29, #-96]
	stur	xzr, [x29, #-104]
Lloh36:
	adrp	x8, _INFTIM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _INFTIM@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	sub	x0, x29, #112
	mov	w1, #1
	bl	_poll
	cmn	w0, #1
	b.eq	LBB0_16
LBB0_7:
	mov	w22, #0
	mov	w20, #0
	b	LBB0_14
LBB0_8:
	ldr	w22, [x9]
Lloh39:
	adrp	x8, __gNgDebugLevel@GOTPAGE
Lloh40:
	ldr	x8, [x8, __gNgDebugLevel@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cmp	w8, #1
	mov	x24, x9
	b.lt	LBB0_13
; %bb.9:
Lloh42:
	adrp	x0, l_.str@PAGE
Lloh43:
	add	x0, x0, l_.str@PAGEOFF
LBB0_10:
	bl	_NGLOG
	b	LBB0_13
LBB0_11:
	ldr	w22, [x24]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.12:
	ldr	w8, [x21, #4]
	str	x8, [sp, #-16]!
Lloh44:
	adrp	x0, l_.str.4@PAGE
Lloh45:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_NGLOG
	add	sp, sp, #16
LBB0_13:
	mov	w20, #-1
LBB0_14:
	mov	x0, x19
	bl	_free
	str	w22, [x24]
	ldur	x8, [x29, #-88]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.15:
	mov	x0, x20
	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_16:
	ldr	w22, [x24]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.17:
Lloh49:
	adrp	x0, l_.str.5@PAGE
Lloh50:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_PATHSIZ,4,2                 ; @NG_PATHSIZ
	.comm	_NGSA_OVERHEAD,4,2              ; @NGSA_OVERHEAD
	.comm	_errno,4,2                      ; @errno
	.comm	__gNgDebugLevel,4,2             ; @_gNgDebugLevel
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc"

	.comm	_AF_NETGRAPH,4,2                ; @AF_NETGRAPH
l_.str.1:                               ; @.str.1
	.asciz	"SENDING %s:"

	.comm	_NGF_RESP,4,2                   ; @NGF_RESP
l_.str.2:                               ; @.str.2
	.asciz	"RESPONSE"

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

l_.str.4:                               ; @.str.4
	.asciz	"sendto(%s)"

	.comm	_NGM_HASREPLY,4,2               ; @NGM_HASREPLY
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_INFTIM,4,2                     ; @INFTIM
l_.str.5:                               ; @.str.5
	.asciz	"poll"

	.no_dead_strip	_NgDeliverMsg
.subsections_via_symbols
