	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NgSendData                     ## -- Begin function NgSendData
	.p2align	4, 0x90
_NgSendData:                            ## @NgSendData
	.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	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r13
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NG_HOOKSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_NGSA_OVERHEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_AF_NETGRAPH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_strlcpy
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	_NGSA_OVERHEAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	incl	%eax
	movl	%eax, (%rbx)
	movq	__gNgDebugLevel@GOTPCREL(%rip), %r12
	cmpl	$2, (%r12)
	jl	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_NGLOGX
	movq	%rbx, %rdi
	callq	__NgDebugSockaddr
	cmpl	$3, (%r12)
	jl	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	__NgDebugBytes
LBB0_3:
	movl	(%rbx), %r9d
	xorl	%r13d, %r13d
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_sendto
	testq	%rax, %rax
	jns	LBB0_7
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	cmpl	$0, (%r12)
	jle	LBB0_6
## %bb.5:
	movl	4(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_NGLOG
LBB0_6:
	movl	%r15d, (%r14)
	movl	$-1, %r13d
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_HOOKSIZ,4,2                 ## @NG_HOOKSIZ
	.comm	_NGSA_OVERHEAD,4,2              ## @NGSA_OVERHEAD
	.comm	_AF_NETGRAPH,4,2                ## @AF_NETGRAPH
	.comm	__gNgDebugLevel,4,2             ## @_gNgDebugLevel
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WRITE PACKET to hook \"%s\" (%d bytes)"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"sendto(%s)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NgSendData                     ; -- Begin function NgSendData
	.p2align	2
_NgSendData:                            ; @NgSendData
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _NG_HOOKSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NG_HOOKSIZ@GOTPAGEOFF]
Lloh5:
	adrp	x24, _NGSA_OVERHEAD@GOTPAGE
Lloh6:
	ldr	x24, [x24, _NGSA_OVERHEAD@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldr	w8, [x24]
	add	w8, w8, w2
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0x7fffffff0
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x19, x9, x8
	mov	sp, x19
Lloh10:
	adrp	x8, _AF_NETGRAPH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AF_NETGRAPH@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	bl	_strlcpy
	bl	_strlen
	ldr	w8, [x24]
	add	w8, w0, w8
	add	w8, w8, #1
	str	w8, [x19]
Lloh13:
	adrp	x24, __gNgDebugLevel@GOTPAGE
Lloh14:
	ldr	x24, [x24, __gNgDebugLevel@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.1:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x20
	bl	_NGLOGX
	mov	x0, x19
	bl	__NgDebugSockaddr
	ldr	w8, [x24]
	cmp	w8, #3
	b.lt	LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	bl	__NgDebugBytes
LBB0_3:
	ldr	w5, [x19]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	mov	x4, x19
	bl	_sendto
	mov	x8, x0
	mov	w0, #0
	tbz	x8, #63, LBB0_7
; %bb.4:
Lloh17:
	adrp	x20, _errno@GOTPAGE
Lloh18:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.5:
	ldr	w1, [x19, #4]
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_NGLOG
LBB0_6:
	str	w21, [x20]
	mov	w0, #-1
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_HOOKSIZ,4,2                 ; @NG_HOOKSIZ
	.comm	_NGSA_OVERHEAD,4,2              ; @NGSA_OVERHEAD
	.comm	_AF_NETGRAPH,4,2                ; @AF_NETGRAPH
	.comm	__gNgDebugLevel,4,2             ; @_gNgDebugLevel
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WRITE PACKET to hook \"%s\" (%d bytes)"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"sendto(%s)"

.subsections_via_symbols
