	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_bt3c_rcvmsg
_ng_bt3c_rcvmsg:                        ## @ng_bt3c_rcvmsg
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %r15d
	callq	_NG_NODE_PRIVATE
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_NGI_GET_MSG
	cmpl	$128, 8
	jne	LBB0_3
## %bb.4:
	movq	_NG_TEXTRESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_NG_MKRESPONSE
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movl	%r14d, %edi
	callq	_NG_FREE_ITEM
	movq	_EHOSTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ebx
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_NG_RESPOND_MSG
	xorl	%edi, %edi
	callq	_NG_FREE_MSG
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EHOSTDOWN,4,2                  ## @EHOSTDOWN
	.comm	_NG_TEXTRESPONSE,4,2            ## @NG_TEXTRESPONSE
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NG_BT3C_HOOK,8,3               ## @NG_BT3C_HOOK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.no_dead_strip	_ng_bt3c_rcvmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_bt3c_rcvmsg
_ng_bt3c_rcvmsg:                        ; @ng_bt3c_rcvmsg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_NG_NODE_PRIVATE
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, #0
	bl	_NGI_GET_MSG
	mov	w8, #8
	ldr	w8, [x8]
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _NG_TEXTRESPONSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NG_TEXTRESPONSE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, #0
	bl	_NG_MKRESPONSE
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_NG_FREE_ITEM
Lloh8:
	adrp	x8, _EHOSTDOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EHOSTDOWN@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w21, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, #0
	bl	_NG_RESPOND_MSG
	mov	x0, #0
	bl	_NG_FREE_MSG
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EHOSTDOWN,4,2                  ; @EHOSTDOWN
	.comm	_NG_TEXTRESPONSE,4,2            ; @NG_TEXTRESPONSE
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NG_BT3C_HOOK,8,3               ; @NG_BT3C_HOOK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.no_dead_strip	_ng_bt3c_rcvmsg
.subsections_via_symbols
