	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__NgDebugMsg                    ## -- Begin function _NgDebugMsg
	.p2align	4, 0x90
__NgDebugMsg:                           ## @_NgDebugMsg
	.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	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ARGS_BUFSIZE@GOTPCREL(%rip), %r13
	movslq	(%r13), %r14
	leaq	256(,%r14,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	$-1, -52(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_NGLOGX
	movl	4(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_NGLOGX
	movl	8(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_NGLOGX
	movl	12(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_NGLOGX
	movl	16(%rbx), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_NGLOGX
	movl	28(%rbx), %edi
	callq	_NgCookie
	movl	28(%rbx), %edx
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_NGLOGX
	movq	__gNgDebugLevel@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_6
## %bb.1:
	movq	%r12, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	leaq	-52(%rbp), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_NgMkSockNode
	testq	%rax, %rax
	js	LBB0_5
## %bb.3:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %eax
	movl	(%r13), %r15d
	cmpl	%r15d, %eax
	cmovll	%eax, %r15d
	leal	32(%r15), %r13d
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movl	%r15d, 8
	movq	_RECURSIVE_DEBUG_ADJUST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	__gNgDebugLevel@GOTPCREL(%rip), %r15
	subl	%eax, (%r15)
	movl	-52(%rbp), %edi
	movq	_NGM_GENERIC_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NGM_BINARY2ASCII@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	movl	%r13d, %r9d
	callq	_NgSendMsg
	testq	%rax, %rax
	js	LBB0_4
## %bb.7:
	addq	$64, %r14
	movl	-52(%rbp), %edi
	shll	$2, %r14d
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_NgRecvMsg
	movq	_RECURSIVE_DEBUG_ADJUST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, (%r15)
	testq	%rax, %rax
	js	LBB0_5
## %bb.8:
	movl	20, %edx
	movl	24, %esi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_NGLOGX
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_NGLOGX
	jmp	LBB0_9
LBB0_4:
	movq	_RECURSIVE_DEBUG_ADJUST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, (%r15)
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.8(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_NGLOGX
LBB0_6:
	movl	20(%rbx), %esi
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_NGLOGX
	movl	8(%rbx), %esi
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_NGLOGX
	movslq	(%rbx), %rdi
	movl	8(%rbx), %esi
	callq	__NgDebugBytes
LBB0_9:
	movl	-52(%rbp), %edi
	cmpl	$-1, %edi
	je	LBB0_11
## %bb.10:
	callq	_close
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ARGS_BUFSIZE,4,2               ## @ARGS_BUFSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NG_MESG :"

L_.str.1:                               ## @.str.1
	.asciz	"  vers   %d"

L_.str.2:                               ## @.str.2
	.asciz	"  arglen %u"

L_.str.3:                               ## @.str.3
	.asciz	"  flags  %x"

L_.str.4:                               ## @.str.4
	.asciz	"  token  %u"

L_.str.5:                               ## @.str.5
	.asciz	"  cookie %s (%u)"

	.comm	__gNgDebugLevel,4,2             ## @_gNgDebugLevel
	.comm	_RECURSIVE_DEBUG_ADJUST,8,3     ## @RECURSIVE_DEBUG_ADJUST
	.comm	_NGM_GENERIC_COOKIE,4,2         ## @NGM_GENERIC_COOKIE
	.comm	_NGM_BINARY2ASCII,4,2           ## @NGM_BINARY2ASCII
L_.str.6:                               ## @.str.6
	.asciz	"  cmd    %s (%d)"

L_.str.7:                               ## @.str.7
	.asciz	"  args   %s"

L_.str.8:                               ## @.str.8
	.asciz	"  [error decoding message: %s]"

	.comm	_errno,4,2                      ## @errno
L_.str.9:                               ## @.str.9
	.asciz	"  cmd    %d"

L_.str.10:                              ## @.str.10
	.asciz	"  args (%d bytes)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__NgDebugMsg                    ; -- Begin function _NgDebugMsg
	.p2align	2
__NgDebugMsg:                           ; @_NgDebugMsg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x22, _ARGS_BUFSIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ARGS_BUFSIZE@GOTPAGEOFF]
	ldrsw	x8, [x22]
	add	x23, x8, #64
	lsl	x8, x23, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xfffffffffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mov	w8, #-1
	stur	w8, [x29, #-76]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_NGLOGX
	ldr	w8, [x19, #4]
	str	x8, [sp, #-16]!
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_NGLOGX
	add	sp, sp, #16
	ldr	w8, [x19, #8]
	str	x8, [sp, #-16]!
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_NGLOGX
	add	sp, sp, #16
	ldr	w8, [x19, #12]
	str	x8, [sp, #-16]!
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_NGLOGX
	add	sp, sp, #16
	ldr	w8, [x19, #16]
	str	x8, [sp, #-16]!
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_NGLOGX
	add	sp, sp, #16
	ldr	w0, [x19, #28]
	bl	_NgCookie
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19, #28]
	stp	x0, x8, [sp, #-16]!
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_NGLOGX
	add	sp, sp, #16
Lloh19:
	adrp	x24, __gNgDebugLevel@GOTPAGE
Lloh20:
	ldr	x24, [x24, __gNgDebugLevel@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #3
	b.lt	LBB0_8
; %bb.1:
	mov	x0, x21
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_8
; %bb.2:
	sub	x1, x29, #76
	mov	x0, #0
	mov	x2, #0
	bl	_NgMkSockNode
	tbnz	x0, #63, LBB0_7
; %bb.3:
	ldr	w8, [x19, #8]
	ldr	w9, [x22]
	cmp	w8, w9
	csel	w26, w8, w9, lt
	add	w22, w26, #32
	mov	x0, #0
	mov	x1, x19
	mov	x2, x22
	bl	_memcpy
	mov	w8, #8
Lloh21:
	adrp	x25, _RECURSIVE_DEBUG_ADJUST@GOTPAGE
Lloh22:
	ldr	x25, [x25, _RECURSIVE_DEBUG_ADJUST@GOTPAGEOFF]
	str	w26, [x8]
	ldr	w8, [x25]
	ldr	w9, [x24]
	sub	w8, w9, w8
	str	w8, [x24]
	ldur	w0, [x29, #-76]
Lloh23:
	adrp	x8, _NGM_GENERIC_COOKIE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NGM_GENERIC_COOKIE@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x8, _NGM_BINARY2ASCII@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NGM_BINARY2ASCII@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	mov	x1, x21
	mov	x4, #0
	mov	x5, x22
	bl	_NgSendMsg
	tbnz	x0, #63, LBB0_6
; %bb.4:
	ldur	w0, [x29, #-76]
	lsl	w2, w23, #2
	mov	x1, x20
	mov	x3, #0
	bl	_NgRecvMsg
	ldr	w8, [x25]
	ldr	w9, [x24]
	add	w8, w9, w8
	str	w8, [x24]
	tbnz	x0, #63, LBB0_7
; %bb.5:
	mov	w8, #24
	ldr	w8, [x8]
	mov	w9, #20
	ldr	w9, [x9]
	stp	x8, x9, [sp, #-16]!
Lloh29:
	adrp	x0, l_.str.6@PAGE
Lloh30:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_NGLOGX
	add	sp, sp, #16
	sub	sp, sp, #16
Lloh31:
	adrp	x0, l_.str.7@PAGE
Lloh32:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_NGLOGX
	add	sp, sp, #16
	b	LBB0_9
LBB0_6:
	ldr	w8, [x25]
	ldr	w9, [x24]
	add	w8, w9, w8
	str	w8, [x24]
LBB0_7:
Lloh33:
	adrp	x8, _errno@GOTPAGE
Lloh34:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh36:
	adrp	x0, l_.str.8@PAGE
Lloh37:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_NGLOGX
	add	sp, sp, #16
LBB0_8:
	ldr	w8, [x19, #20]
	str	x8, [sp, #-16]!
Lloh38:
	adrp	x0, l_.str.9@PAGE
Lloh39:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_NGLOGX
	add	sp, sp, #16
	ldr	w8, [x19, #8]
	str	x8, [sp, #-16]!
Lloh40:
	adrp	x0, l_.str.10@PAGE
Lloh41:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_NGLOGX
	add	sp, sp, #16
	ldrsw	x0, [x19]
	ldr	w1, [x19, #8]
	bl	__NgDebugBytes
LBB0_9:
	ldur	w0, [x29, #-76]
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.10:
	bl	_close
LBB0_11:
	ldur	x8, [x29, #-72]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_ARGS_BUFSIZE,4,2               ; @ARGS_BUFSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NG_MESG :"

l_.str.1:                               ; @.str.1
	.asciz	"  vers   %d"

l_.str.2:                               ; @.str.2
	.asciz	"  arglen %u"

l_.str.3:                               ; @.str.3
	.asciz	"  flags  %x"

l_.str.4:                               ; @.str.4
	.asciz	"  token  %u"

l_.str.5:                               ; @.str.5
	.asciz	"  cookie %s (%u)"

	.comm	__gNgDebugLevel,4,2             ; @_gNgDebugLevel
	.comm	_RECURSIVE_DEBUG_ADJUST,8,3     ; @RECURSIVE_DEBUG_ADJUST
	.comm	_NGM_GENERIC_COOKIE,4,2         ; @NGM_GENERIC_COOKIE
	.comm	_NGM_BINARY2ASCII,4,2           ; @NGM_BINARY2ASCII
l_.str.6:                               ; @.str.6
	.asciz	"  cmd    %s (%d)"

l_.str.7:                               ; @.str.7
	.asciz	"  args   %s"

l_.str.8:                               ; @.str.8
	.asciz	"  [error decoding message: %s]"

	.comm	_errno,4,2                      ; @errno
l_.str.9:                               ; @.str.9
	.asciz	"  cmd    %d"

l_.str.10:                              ; @.str.10
	.asciz	"  args (%d bytes)"

.subsections_via_symbols
