	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NgSendMsg                      ## -- Begin function NgSendMsg
	.p2align	4, 0x90
_NgSendMsg:                             ## @NgSendMsg
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rsi, %r12
	movl	%edi, %ebx
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_NG_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	%r14d, -72(%rbp)
	movq	_gMsgId@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_fetch_add
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, -68(%rbp)
	movq	_NGF_ORIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	%r13d, -64(%rbp)
	movq	-56(%rbp), %rdi
	movq	_NG_CMDSTRSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %ecx
	callq	_snprintf
	movl	%ebx, %edi
	movq	%r12, %rsi
	leaq	-72(%rbp), %rdx
	movq	%r15, %rcx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_NgDeliverMsg
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	js	LBB0_2
## %bb.1:
	movl	-68(%rbp), %eax
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_VERSION,4,2                 ## @NG_VERSION
	.comm	_gMsgId,4,2                     ## @gMsgId
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_NGF_ORIG,4,2                   ## @NGF_ORIG
	.comm	_NG_CMDSTRSIZ,4,2               ## @NG_CMDSTRSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmd%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NgSendMsg                      ; -- Begin function NgSendMsg
	.p2align	2
_NgSendMsg:                             ; @NgSendMsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh0:
	adrp	x8, _NG_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NG_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #28]
	str	w22, [sp]
Lloh3:
	adrp	x0, _gMsgId@GOTPAGE
Lloh4:
	ldr	x0, [x0, _gMsgId@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_fetch_add
Lloh5:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh8:
	adrp	x9, _NGF_ORIG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NGF_ORIG@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	str	w9, [sp, #24]
	stp	w8, w21, [sp, #4]
	ldr	x0, [sp, #16]
Lloh11:
	adrp	x8, _NG_CMDSTRSIZ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NG_CMDSTRSIZ@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x21
	bl	_snprintf
	mov	x2, sp
	mov	x0, x24
	mov	x1, x23
	mov	x3, x20
	mov	x4, x19
	bl	_NgDeliverMsg
	ldr	w8, [sp, #4]
	cmp	x0, #0
	csinv	w0, w8, wzr, ge
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_VERSION,4,2                 ; @NG_VERSION
	.comm	_gMsgId,4,2                     ; @gMsgId
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_NGF_ORIG,4,2                   ; @NGF_ORIG
	.comm	_NG_CMDSTRSIZ,4,2               ; @NG_CMDSTRSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd%d"

.subsections_via_symbols
