	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_bt3c_rcvdata
_ng_bt3c_rcvdata:                       ## @ng_bt3c_rcvdata
	.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
	movq	%rdi, %rbx
	callq	_NG_HOOK_NODE
	movl	%eax, %edi
	callq	_NG_NODE_PRIVATE
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movslq	%eax, %r15
	cmpq	%rbx, (%r15)
	jne	LBB0_3
## %bb.4:
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_NGI_GET_M
	leaq	12(%r15), %rbx
	movq	%rbx, %rdi
	callq	_IF_LOCK
	movq	%rbx, %rdi
	callq	__IF_QFULL
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	20(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_NG_BT3C_ERR
	movl	16(%r15), %edi
	callq	_NG_BT3C_STAT_OERROR
	xorl	%edi, %edi
	callq	_NG_FREE_M
	jmp	LBB0_7
LBB0_1:
	movq	_EHOSTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	__IF_ENQUEUE
LBB0_7:
	movq	%rbx, %rdi
	callq	_IF_UNLOCK
	movl	8(%r15), %edi
	movq	_bt3c_send@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ng_send_fn
	movl	%eax, %ebx
LBB0_8:
	movl	%r14d, %edi
	callq	_NG_FREE_ITEM
	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	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Outgoing queue is full. Dropping mbuf, len=%d\n"

	.comm	_bt3c_send,4,2                  ## @bt3c_send
	.no_dead_strip	_ng_bt3c_rcvdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_bt3c_rcvdata
_ng_bt3c_rcvdata:                       ; @ng_bt3c_rcvdata
	.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_HOOK_NODE
	bl	_NG_NODE_PRIVATE
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_4
; %bb.1:
	sxtw	x21, w0
	ldr	x8, [x21]
	cmp	x8, x20
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, #0
	bl	_NGI_GET_M
	add	x20, x21, #12
	mov	x0, x20
	bl	_IF_LOCK
	mov	x0, x20
	bl	__IF_QFULL
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w0, [x21, #20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_NG_BT3C_ERR
	ldr	w0, [x21, #16]
	bl	_NG_BT3C_STAT_OERROR
	mov	x0, #0
	bl	_NG_FREE_M
	b	LBB0_7
LBB0_4:
Lloh2:
	adrp	x8, _EHOSTDOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EHOSTDOWN@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	mov	x1, #0
	bl	__IF_ENQUEUE
LBB0_7:
	mov	x0, x20
	bl	_IF_UNLOCK
	ldr	w0, [x21, #8]
Lloh8:
	adrp	x8, _bt3c_send@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bt3c_send@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x1, #0
	mov	x3, #0
	mov	w4, #0
	bl	_ng_send_fn
	mov	x20, x0
LBB0_8:
	mov	x0, x19
	bl	_NG_FREE_ITEM
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EHOSTDOWN,4,2                  ; @EHOSTDOWN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Outgoing queue is full. Dropping mbuf, len=%d\n"

	.comm	_bt3c_send,4,2                  ; @bt3c_send
	.no_dead_strip	_ng_bt3c_rcvdata
.subsections_via_symbols
