	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_iface_send
_ng_iface_send:                         ## @ng_iface_send
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	4(%rdi), %r12d
	movl	%edx, %edi
	callq	_get_iffam_from_af
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	leaq	-48(%rbp), %rsi
	movl	%r12d, %edi
	callq	_PRIV_RLOCK
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_get_hook_from_iffam
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_NG_HOOK_REF
	leaq	-48(%rbp), %rsi
	movl	%r12d, %edi
	callq	_PRIV_RUNLOCK
	xorl	%eax, %eax
	callq	_NG_OUTBOUND_THREAD_REF
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_NG_SEND_DATA_ONLY
	xorl	%eax, %eax
	callq	_NG_OUTBOUND_THREAD_UNREF
	movq	%r15, %rdi
	callq	_NG_HOOK_UNREF
                                        ## implicit-def: $eax
	jmp	LBB0_6
LBB0_3:
	movq	%r14, %rdi
	callq	_m_freem
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	callq	_log
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	callq	_NG_FREE_M
	leaq	-48(%rbp), %rsi
	movl	%r12d, %edi
	callq	_PRIV_RUNLOCK
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: can't handle af%d\n"

	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.comm	_IFCOUNTER_OBYTES,4,2           ## @IFCOUNTER_OBYTES
	.comm	_IFCOUNTER_OPACKETS,4,2         ## @IFCOUNTER_OPACKETS
	.no_dead_strip	_ng_iface_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_iface_send
_ng_iface_send:                         ; @ng_iface_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w20, [x0, #4]
	mov	x0, x2
	bl	_get_iffam_from_af
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, x0
	add	x1, sp, #8
	mov	x0, x20
	bl	_PRIV_RLOCK
	mov	x0, x20
	mov	x1, x23
	bl	_get_hook_from_iffam
	ldr	x21, [x0]
	cbz	x21, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_NG_HOOK_REF
	add	x1, sp, #8
	mov	x0, x20
	bl	_PRIV_RUNLOCK
	bl	_NG_OUTBOUND_THREAD_REF
	mov	x1, x21
	mov	x2, x19
	bl	_NG_SEND_DATA_ONLY
	bl	_NG_OUTBOUND_THREAD_UNREF
	mov	x0, x21
	bl	_NG_HOOK_UNREF
                                        ; implicit-def: $w0
	b	LBB0_6
LBB0_3:
	mov	x0, x19
	bl	_m_freem
Lloh0:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x22]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x21
	bl	_log
Lloh5:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_NG_FREE_M
	add	x1, sp, #8
	mov	x0, x20
	bl	_PRIV_RUNLOCK
Lloh7:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: can't handle af%d\n"

	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.comm	_IFCOUNTER_OBYTES,4,2           ; @IFCOUNTER_OBYTES
	.comm	_IFCOUNTER_OPACKETS,4,2         ; @IFCOUNTER_OPACKETS
	.no_dead_strip	_ng_iface_send
.subsections_via_symbols
