	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_sppp_constructor
_ng_sppp_constructor:                   ## @ng_sppp_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_M_NETGRAPH_SPPP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$16, %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	_IFT_PPP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_if_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IFP2SP
	movq	%rax, %r15
	movq	%rbx, 16(%r12)
	movq	%r12, 8(%rbx)
	movq	%rbx, %rdi
	callq	_ng_sppp_get_unit
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_NG_NODE_SET_PRIVATE
	movl	%r14d, 4(%rbx)
	movq	%r15, %rdi
	callq	_SP2IFP
	movq	_NG_SPPP_IFACE_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rbx), %edx
	movq	%rax, %rdi
	callq	_if_initname
	movq	_ng_sppp_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_ng_sppp_ioctl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_IFF_POINTOPOINT@GOTPCREL(%rip), %rax
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r12)
	movq	%r15, %rdi
	callq	_SP2IFP
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_ng_name_node
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_SP2IFP
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_log
LBB0_4:
	movq	%r12, %rdi
	callq	_sppp_attach
	movq	%r12, %rdi
	callq	_if_attach
	movq	_DLT_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_bpfattach
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_free
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_NETGRAPH_SPPP,4,2            ## @M_NETGRAPH_SPPP
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_IFT_PPP,4,2                    ## @IFT_PPP
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_NG_SPPP_IFACE_NAME,4,2         ## @NG_SPPP_IFACE_NAME
	.comm	_ng_sppp_start,4,2              ## @ng_sppp_start
	.comm	_ng_sppp_ioctl,4,2              ## @ng_sppp_ioctl
	.comm	_IFF_POINTOPOINT,4,2            ## @IFF_POINTOPOINT
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: can't acquire netgraph name\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_sppp_constructor
_ng_sppp_constructor:                   ; @ng_sppp_constructor
	.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	x20, x0
Lloh0:
	adrp	x21, _M_NETGRAPH_SPPP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _M_NETGRAPH_SPPP@GOTPAGEOFF]
Lloh2:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
	ldr	w1, [x21]
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, #16
	bl	_malloc
	mov	x22, x0
Lloh8:
	adrp	x8, _IFT_PPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IFT_PPP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_if_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_IFP2SP
	mov	x21, x0
	str	x22, [x19, #16]
	str	x19, [x22, #8]
	mov	x0, x22
	bl	_ng_sppp_get_unit
	mov	x0, x20
	mov	x1, x22
	bl	_NG_NODE_SET_PRIVATE
	str	w20, [x22, #4]
	mov	x0, x21
	bl	_SP2IFP
Lloh11:
	adrp	x8, _NG_SPPP_IFACE_NAME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NG_SPPP_IFACE_NAME@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x22]
	bl	_if_initname
Lloh14:
	adrp	x8, _ng_sppp_start@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ng_sppp_start@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh17:
	adrp	x8, _ng_sppp_ioctl@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ng_sppp_ioctl@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _IFF_POINTOPOINT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IFF_POINTOPOINT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _IFF_MULTICAST@GOTPAGE
Lloh24:
	ldr	x10, [x10, _IFF_MULTICAST@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w9, w10, w9
	stp	w9, w8, [x19]
	mov	x0, x21
	bl	_SP2IFP
	ldr	w1, [x0]
	mov	x0, x20
	bl	_ng_name_node
	cbz	x0, LBB0_3
; %bb.2:
Lloh26:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh27:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh28:
	ldr	w20, [x8]
	mov	x0, x21
	bl	_SP2IFP
	ldr	w2, [x0]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_log
LBB0_3:
	mov	x0, x19
	bl	_sppp_attach
	mov	x0, x19
	bl	_if_attach
Lloh31:
	adrp	x8, _DLT_NULL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DLT_NULL@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	_bpfattach
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	w1, [x21]
	mov	x0, x22
	bl	_free
Lloh34:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
LBB0_5:
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_M_NETGRAPH_SPPP,4,2            ; @M_NETGRAPH_SPPP
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_IFT_PPP,4,2                    ; @IFT_PPP
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_NG_SPPP_IFACE_NAME,4,2         ; @NG_SPPP_IFACE_NAME
	.comm	_ng_sppp_start,4,2              ; @ng_sppp_start
	.comm	_ng_sppp_ioctl,4,2              ; @ng_sppp_ioctl
	.comm	_IFF_POINTOPOINT,4,2            ; @IFF_POINTOPOINT
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: can't acquire netgraph name\n"

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