	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_ppp_link_xmit
_ng_ppp_link_xmit:                      ## @ng_ppp_link_xmit
	.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	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_NG_NODE_PRIVATE
	movq	%rax, %r13
	movq	_NG_PPP_MAX_LINKS@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	ja	LBB0_2
## %bb.1:
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERROUT
LBB0_2:
	movq	40(%r13), %r14
	leaq	(%rbx,%rbx,4), %r15
	cmpq	$0, 16(%r14,%r15,8)
	jne	LBB0_4
## %bb.3:
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERROUT
LBB0_4:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_NGI_GET_M
	movl	36(%r14,%r15,8), %edx
	movq	%r12, %rsi
	callq	_ng_ppp_addproto
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERROUT
LBB0_6:
	movq	_PROT_LCP@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	je	LBB0_8
## %bb.7:
	cmpl	$0, 32(%r14,%r15,8)
	jne	LBB0_9
LBB0_8:
	movq	_ng_ppp_acf@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_ng_ppp_prepend
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_12
LBB0_9:
	leaq	(%r14,%r15,8), %rax
	addq	$16, %rax
	movl	(%rbx), %r12d
	movq	(%rax), %rdx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rcx
	callq	_NG_FWD_NEW_DATA
	movq	%r13, %rdi
	callq	_mtx_lock
	incl	12(%r14,%r15,8)
	addl	%r12d, 8(%r14,%r15,8)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_11
## %bb.10:
	incl	32(%r13)
	addl	%eax, 28(%r13)
LBB0_11:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
LBB0_12:
	callq	_ng_ppp_link_xmit.cold.1
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function ng_ppp_link_xmit.cold.1
_ng_ppp_link_xmit.cold.1:               ## @ng_ppp_link_xmit.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERROUT
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_PPP_MAX_LINKS,8,3           ## @NG_PPP_MAX_LINKS
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_PROT_LCP,8,3                   ## @PROT_LCP
	.comm	_ng_ppp_acf,4,2                 ## @ng_ppp_acf
	.comm	_MP_AVERAGE_LINK_OVERHEAD,8,3   ## @MP_AVERAGE_LINK_OVERHEAD
	.no_dead_strip	_ng_ppp_link_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_ppp_link_xmit
_ng_ppp_link_xmit:                      ; @ng_ppp_link_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	bl	_NG_NODE_PRIVATE
	mov	x20, x0
Lloh0:
	adrp	x8, _NG_PPP_MAX_LINKS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NG_PPP_MAX_LINKS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x21
	b.hi	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_ERROUT
LBB0_2:
	ldr	x25, [x20, #40]
	mov	w8, #40
	madd	x26, x21, x8, x25
	ldr	x8, [x26, #16]!
	cbnz	x8, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_ERROUT
LBB0_4:
	mov	x0, x22
	bl	_NGI_GET_M
	mov	w8, #40
	madd	x8, x21, x8, x25
	ldr	w2, [x8, #36]
	mov	x1, x23
	bl	_ng_ppp_addproto
	mov	x24, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_ERROUT
LBB0_6:
Lloh12:
	adrp	x8, _PROT_LCP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PROT_LCP@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x8, x23
	b.eq	LBB0_8
; %bb.7:
	mov	w8, #40
	madd	x8, x21, x8, x25
	ldr	w8, [x8, #32]
	cbnz	w8, LBB0_9
LBB0_8:
Lloh15:
	adrp	x1, _ng_ppp_acf@GOTPAGE
Lloh16:
	ldr	x1, [x1, _ng_ppp_acf@GOTPAGEOFF]
	mov	x0, x24
	mov	w2, #2
	bl	_ng_ppp_prepend
	mov	x24, x0
	cbz	x0, LBB0_12
LBB0_9:
	ldr	x2, [x26]
	movi.2s	v0, #1
	ld1.s	{ v0 }[0], [x24]
	str	q0, [sp]                        ; 16-byte Folded Spill
	mov	x1, x22
	mov	x3, x24
	bl	_NG_FWD_NEW_DATA
	mov	x0, x20
	bl	_mtx_lock
	mov	w8, #40
	madd	x8, x21, x8, x25
	ldr	d0, [x8, #8]
	ldr	q1, [sp]                        ; 16-byte Folded Reload
	add.2s	v0, v0, v1
	str	d0, [x8, #8]
	cmp	w19, #1
	b.lt	LBB0_11
; %bb.10:
	ldur	d0, [x20, #28]
	movi.2s	v1, #1
	mov.s	v1[0], w19
	add.2s	v0, v0, v1
	stur	d0, [x20, #28]
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_mtx_unlock
LBB0_12:
	bl	_ng_ppp_link_xmit.cold.1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function ng_ppp_link_xmit.cold.1
_ng_ppp_link_xmit.cold.1:               ; @ng_ppp_link_xmit.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh17:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_ERROUT
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_PPP_MAX_LINKS,8,3           ; @NG_PPP_MAX_LINKS
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_PROT_LCP,8,3                   ; @PROT_LCP
	.comm	_ng_ppp_acf,4,2                 ; @ng_ppp_acf
	.comm	_MP_AVERAGE_LINK_OVERHEAD,8,3   ; @MP_AVERAGE_LINK_OVERHEAD
	.no_dead_strip	_ng_ppp_link_xmit
.subsections_via_symbols
