	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_iface_output
_ng_iface_output:                       ## @ng_iface_output
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r12
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	je	LBB0_4
## %bb.2:
	movq	%rdx, %r15
	movq	_NGM_IFACE_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_V_ng_iface_max_nest@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_if_tunnel_check_nesting
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_m_freem
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	callq	_m_freem
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r15), %rdx
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_9
## %bb.8:
	movl	8(%r15), %edi
	leaq	-40(%rbp), %rsi
	movl	$8, %edx
	callq	_bcopy
	movq	-40(%rbp), %rdx
	jmp	LBB0_10
LBB0_9:
	movq	%rdx, -40(%rbp)
LBB0_10:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_ng_iface_bpftap
	leaq	16(%r12), %rdi
	callq	_ALTQ_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_M_PREPEND
	testq	%r14, %r14
	je	LBB0_15
## %bb.12:
	movq	-40(%rbp), %rax
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	*8(%r12)
	jmp	LBB0_14
LBB0_13:
	movq	-40(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_ng_iface_send
LBB0_14:
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_15:
	movq	_IFCOUNTER_OQDROPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_if_inc_counter
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_IFF_DRV_RUNNING,4,2            ## @IFF_DRV_RUNNING
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.comm	_NGM_IFACE_COOKIE,4,2           ## @NGM_IFACE_COOKIE
	.comm	_V_ng_iface_max_nest,4,2        ## @V_ng_iface_max_nest
	.comm	_AF_UNSPEC,8,3                  ## @AF_UNSPEC
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_IFCOUNTER_OQDROPS,4,2          ## @IFCOUNTER_OQDROPS
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.no_dead_strip	_ng_iface_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_iface_output
_ng_iface_output:                       ; @ng_iface_output
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0, #4]
Lloh3:
	adrp	x9, _IFF_DRV_RUNNING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	mov	x21, x2
Lloh6:
	adrp	x8, _NGM_IFACE_COOKIE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NGM_IFACE_COOKIE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _V_ng_iface_max_nest@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V_ng_iface_max_nest@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_if_tunnel_check_nesting
	cbz	w0, LBB0_7
; %bb.3:
	mov	x22, x0
	mov	x0, x19
	bl	_m_freem
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_m_freem
Lloh12:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
LBB0_5:
	ldr	w22, [x8]
LBB0_6:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
LBB0_7:
	ldr	x2, [x21]
Lloh14:
	adrp	x8, _AF_UNSPEC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AF_UNSPEC@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x21, #8]
	add	x1, sp, #8
	mov	w2, #8
	bl	_bcopy
	ldr	x2, [sp, #8]
	b	LBB0_10
LBB0_9:
	str	x2, [sp, #8]
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_ng_iface_bpftap
	add	x0, x20, #16
	bl	_ALTQ_IS_ENABLED
	cbz	x0, LBB0_13
; %bb.11:
Lloh17:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #8
	bl	_M_PREPEND
	cbz	x19, LBB0_15
; %bb.12:
	ldr	x8, [sp, #8]
	ldr	x9, [x19]
	str	x8, [x9]
	ldr	x8, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	b	LBB0_14
LBB0_13:
	ldr	x2, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_ng_iface_send
LBB0_14:
	mov	x22, x0
	b	LBB0_6
LBB0_15:
Lloh20:
	adrp	x8, _IFCOUNTER_OQDROPS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IFCOUNTER_OQDROPS@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_if_inc_counter
Lloh23:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_IFF_DRV_RUNNING,4,2            ; @IFF_DRV_RUNNING
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.comm	_NGM_IFACE_COOKIE,4,2           ; @NGM_IFACE_COOKIE
	.comm	_V_ng_iface_max_nest,4,2        ; @V_ng_iface_max_nest
	.comm	_AF_UNSPEC,8,3                  ; @AF_UNSPEC
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_IFCOUNTER_OQDROPS,4,2          ; @IFCOUNTER_OQDROPS
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.no_dead_strip	_ng_iface_output
.subsections_via_symbols
