	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NgRecvMsg                      ## -- Begin function NgRecvMsg
	.p2align	4, 0x90
_NgRecvMsg:                             ## @NgRecvMsg
	.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, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r12
	movl	%edi, %ebx
	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), %r14d
	addl	(%rcx), %r14d
	leaq	(,%r14,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	shll	$2, %r14d
	movl	%r14d, -52(%rbp)
	leaq	-52(%rbp), %r9
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_recvfrom
	testl	%eax, %eax
	js	LBB0_1
## %bb.4:
	movl	%eax, %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movl	(%r15), %esi
	movq	_NG_PATHSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
LBB0_6:
	movq	__gNgDebugLevel@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_8
## %bb.7:
	movq	_NGF_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %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	%r15, %rdi
	callq	__NgDebugSockaddr
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	__NgDebugMsg
	jmp	LBB0_8
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	__gNgDebugLevel@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_NGLOG
LBB0_3:
	movl	%ebx, (%r14)
	movl	$-1, %ebx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	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	"recvfrom"

L_.str.1:                               ## @.str.1
	.asciz	"RECEIVED %s:"

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NgRecvMsg                      ; -- Begin function NgRecvMsg
	.p2align	2
_NgRecvMsg:                             ; @NgRecvMsg
	.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	x22, x3
	mov	x19, x1
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	x23, _NG_PATHSIZ@GOTPAGE
Lloh4:
	ldr	x23, [x23, _NG_PATHSIZ@GOTPAGEOFF]
Lloh5:
	adrp	x8, _NGSA_OVERHEAD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NGSA_OVERHEAD@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh7:
	ldr	w8, [x8]
	add	w8, w8, w9
	lsl	x9, x8, #2
	add	x10, x9, #15
	and	x12, x10, #0x7fffffff0
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x12
	mov	sp, x21
	lsl	w8, w8, #2
	stur	w8, [x29, #-60]
	sub	x5, x29, #60
	mov	w3, #0
	mov	x4, x21
	bl	_recvfrom
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x20, x0
	cbz	x22, LBB0_3
; %bb.2:
	ldr	w1, [x21]
	ldr	w2, [x23]
	mov	x0, x22
	bl	_strlcpy
LBB0_3:
Lloh10:
	adrp	x8, __gNgDebugLevel@GOTPAGE
Lloh11:
	ldr	x8, [x8, __gNgDebugLevel@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.4:
	ldr	w8, [x19]
Lloh13:
	adrp	x9, _NGF_RESP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NGF_RESP@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, l_.str.2@PAGE
Lloh17:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh18:
	adrp	x11, l_.str.3@PAGE
Lloh19:
	add	x11, x11, l_.str.3@PAGEOFF
	tst	w9, w8
	csel	x1, x11, x10, eq
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_NGLOGX
	mov	x0, x21
	bl	__NgDebugSockaddr
	ldr	w1, [x21]
	mov	x0, x19
	bl	__NgDebugMsg
	b	LBB0_8
LBB0_5:
Lloh22:
	adrp	x19, _errno@GOTPAGE
Lloh23:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	ldr	w20, [x19]
Lloh24:
	adrp	x8, __gNgDebugLevel@GOTPAGE
Lloh25:
	ldr	x8, [x8, __gNgDebugLevel@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.6:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_NGLOG
LBB0_7:
	str	w20, [x19]
	mov	w20, #-1
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	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_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.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	"recvfrom"

l_.str.1:                               ; @.str.1
	.asciz	"RECEIVED %s:"

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

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

.subsections_via_symbols
