	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_iface_constructor
_ng_iface_constructor:                  ## @ng_iface_constructor
	.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	%edi, %r14d
	movq	_M_NETGRAPH_IFACE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$24, %edi
	callq	_malloc
	movq	%rax, %r15
	movq	_IFT_PROPVIRTUAL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_if_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, %rdi
	addq	$16, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_rm_init
	movq	%r15, 56(%rbx)
	movq	%rbx, 8(%r15)
	movq	_V_ng_iface_unit@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_alloc_unr
	movl	%eax, (%r15)
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_NG_NODE_SET_PRIVATE
	movl	%r14d, 4(%r15)
	movq	_NG_IFACE_IFACE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_if_initname
	movq	_ng_iface_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_ng_iface_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_ng_iface_ioctl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_NG_IFACE_MTU_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_IFF_SIMPLEX@GOTPCREL(%rip), %rax
	movq	_IFF_POINTOPOINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IFF_NOARP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	(%r12), %eax
	movl	%eax, 32(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movl	$64000, 4(%rbx)                 ## imm = 0xFA00
	movq	%rbx, %r15
	addq	$12, %r15
	movq	_ifqmaxlen@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_IFQ_SET_MAXLEN
	movl	(%r12), %eax
	movl	%eax, 12(%rbx)
	movq	%r15, %rdi
	callq	_IFQ_SET_READY
	movl	8(%rbx), %esi
	movl	%r14d, %edi
	callq	_ng_name_node
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_log
LBB0_4:
	movq	%rbx, %rdi
	callq	_if_attach
	movq	_DLT_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_bpfattach
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_NETGRAPH_IFACE,4,2           ## @M_NETGRAPH_IFACE
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_IFT_PROPVIRTUAL,4,2            ## @IFT_PROPVIRTUAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ng_iface private rmlock"

	.comm	_V_ng_iface_unit,4,2            ## @V_ng_iface_unit
	.comm	_NG_IFACE_IFACE_NAME,4,2        ## @NG_IFACE_IFACE_NAME
	.comm	_ng_iface_output,4,2            ## @ng_iface_output
	.comm	_ng_iface_start,4,2             ## @ng_iface_start
	.comm	_ng_iface_ioctl,4,2             ## @ng_iface_ioctl
	.comm	_NG_IFACE_MTU_DEFAULT,4,2       ## @NG_IFACE_MTU_DEFAULT
	.comm	_IFF_SIMPLEX,4,2                ## @IFF_SIMPLEX
	.comm	_IFF_POINTOPOINT,4,2            ## @IFF_POINTOPOINT
	.comm	_IFF_NOARP,4,2                  ## @IFF_NOARP
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_ifqmaxlen,4,2                  ## @ifqmaxlen
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"%s: can't acquire netgraph name\n"

	.comm	_DLT_NULL,4,2                   ## @DLT_NULL
	.no_dead_strip	_ng_iface_constructor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_iface_constructor
_ng_iface_constructor:                  ; @ng_iface_constructor
	.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
	mov	x20, x0
Lloh0:
	adrp	x23, _M_NETGRAPH_IFACE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _M_NETGRAPH_IFACE@GOTPAGEOFF]
Lloh2:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #24
	bl	_malloc
	mov	x21, x0
Lloh8:
	adrp	x22, _IFT_PROPVIRTUAL@GOTPAGE
Lloh9:
	ldr	x22, [x22, _IFT_PROPVIRTUAL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_if_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x0, x21, #16
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_rm_init
	str	x21, [x19, #56]
	str	x19, [x21, #8]
Lloh12:
	adrp	x8, _V_ng_iface_unit@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V_ng_iface_unit@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_alloc_unr
	str	w0, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_NG_NODE_SET_PRIVATE
	str	w20, [x21, #4]
Lloh15:
	adrp	x8, _NG_IFACE_IFACE_NAME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NG_IFACE_IFACE_NAME@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_if_initname
Lloh18:
	adrp	x8, _ng_iface_output@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ng_iface_output@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh21:
	adrp	x8, _ng_iface_start@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ng_iface_start@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _ng_iface_ioctl@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ng_iface_ioctl@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
Lloh27:
	adrp	x8, _NG_IFACE_MTU_DEFAULT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NG_IFACE_MTU_DEFAULT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _IFF_SIMPLEX@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IFF_SIMPLEX@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x10, _IFF_POINTOPOINT@GOTPAGE
Lloh34:
	ldr	x10, [x10, _IFF_POINTOPOINT@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh36:
	adrp	x10, _IFF_NOARP@GOTPAGE
Lloh37:
	ldr	x10, [x10, _IFF_NOARP@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh39:
	adrp	x10, _IFF_MULTICAST@GOTPAGE
Lloh40:
	ldr	x10, [x10, _IFF_MULTICAST@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	orr	w9, w9, w10
	mov	w10, #64000
	stp	w9, w10, [x19]
	ldr	w9, [x22]
	stp	w9, w8, [x19, #32]
	stp	xzr, xzr, [x19, #16]
	add	x21, x19, #12
Lloh42:
	adrp	x22, _ifqmaxlen@GOTPAGE
Lloh43:
	ldr	x22, [x22, _ifqmaxlen@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_IFQ_SET_MAXLEN
	ldr	w8, [x22]
	str	w8, [x19, #12]
	mov	x0, x21
	bl	_IFQ_SET_READY
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_ng_name_node
	cbz	x0, LBB0_3
; %bb.2:
Lloh44:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh45:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
Lloh47:
	adrp	x1, l_.str.1@PAGE
Lloh48:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_log
LBB0_3:
	mov	x0, x19
	bl	_if_attach
Lloh49:
	adrp	x8, _DLT_NULL@GOTPAGE
Lloh50:
	ldr	x8, [x8, _DLT_NULL@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	_bpfattach
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	w1, [x23]
	mov	x0, x21
	bl	_free
Lloh52:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_M_NETGRAPH_IFACE,4,2           ; @M_NETGRAPH_IFACE
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_IFT_PROPVIRTUAL,4,2            ; @IFT_PROPVIRTUAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ng_iface private rmlock"

	.comm	_V_ng_iface_unit,4,2            ; @V_ng_iface_unit
	.comm	_NG_IFACE_IFACE_NAME,4,2        ; @NG_IFACE_IFACE_NAME
	.comm	_ng_iface_output,4,2            ; @ng_iface_output
	.comm	_ng_iface_start,4,2             ; @ng_iface_start
	.comm	_ng_iface_ioctl,4,2             ; @ng_iface_ioctl
	.comm	_NG_IFACE_MTU_DEFAULT,4,2       ; @NG_IFACE_MTU_DEFAULT
	.comm	_IFF_SIMPLEX,4,2                ; @IFF_SIMPLEX
	.comm	_IFF_POINTOPOINT,4,2            ; @IFF_POINTOPOINT
	.comm	_IFF_NOARP,4,2                  ; @IFF_NOARP
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_ifqmaxlen,4,2                  ; @ifqmaxlen
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"%s: can't acquire netgraph name\n"

	.comm	_DLT_NULL,4,2                   ; @DLT_NULL
	.no_dead_strip	_ng_iface_constructor
.subsections_via_symbols
