	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_ppp_config_valid
_ng_ppp_config_valid:                   ## @ng_ppp_config_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_NG_NODE_PRIVATE
	movq	_NG_PPP_MAX_LINKS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	testl	%r11d, %r11d
	jle	LBB0_8
## %bb.1:
	movq	16(%r14), %rdi
	movq	_MP_MIN_LINK_MRU@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	movq	_NG_PPP_MAX_BANDWIDTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movq	_NG_PPP_MAX_LATENCY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	shlq	$3, %r11
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %rbx
	cmpq	%rbx, %r11
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%rdi,%rbx,4)
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rax), %rcx
	cmpq	$1, (%rcx,%rbx)
	sbbl	$-1, %edx
	xorl	%ecx, %ecx
	cmpq	%r10, (%rdi,%rbx,4)
	jl	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rdi,%rbx,4), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r8, %rsi
	jg	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r9, 16(%rdi,%rbx,4)
	jle	LBB0_2
	jmp	LBB0_16
LBB0_8:
	xorl	%edx, %edx
LBB0_14:
	movl	(%r14), %esi
LBB0_15:
	testl	%esi, %esi
	setne	%al
	cmpl	$2, %edx
	setl	%cl
	orb	%al, %cl
	movzbl	%cl, %ecx
LBB0_16:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	cmpq	$0, (%rax)
	jle	LBB0_14
## %bb.10:
	testl	%edx, %edx
	jle	LBB0_14
## %bb.11:
	cmpl	$0, 16(%rax)
	setne	%dil
	movl	(%r14), %esi
	testl	%esi, %esi
	sete	%bl
	xorl	%ecx, %ecx
	cmpb	%bl, %dil
	je	LBB0_16
## %bb.12:
	cmpl	$0, 12(%rax)
	setne	%dil
	cmpl	$0, 8(%r14)
	sete	%bl
	cmpb	%bl, %dil
	je	LBB0_16
## %bb.13:
	cmpl	$0, 8(%rax)
	setne	%al
	cmpl	$0, 4(%r14)
	sete	%bl
	cmpb	%bl, %al
	jne	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_PPP_MAX_LINKS,4,2           ## @NG_PPP_MAX_LINKS
	.comm	_MP_MIN_LINK_MRU,8,3            ## @MP_MIN_LINK_MRU
	.comm	_NG_PPP_MAX_BANDWIDTH,8,3       ## @NG_PPP_MAX_BANDWIDTH
	.comm	_NG_PPP_MAX_LATENCY,8,3         ## @NG_PPP_MAX_LATENCY
	.no_dead_strip	_ng_ppp_config_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_ppp_config_valid
_ng_ppp_config_valid:                   ; @ng_ppp_config_valid
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_NG_NODE_PRIVATE
Lloh0:
	adrp	x8, _NG_PPP_MAX_LINKS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NG_PPP_MAX_LINKS@GOTPAGEOFF]
Lloh2:
	ldr	w14, [x8]
	cmp	w14, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x9, #0
	mov	w8, #0
	ldr	x13, [x19, #16]
Lloh3:
	adrp	x10, _MP_MIN_LINK_MRU@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MP_MIN_LINK_MRU@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _NG_PPP_MAX_BANDWIDTH@GOTPAGE
Lloh7:
	ldr	x11, [x11, _NG_PPP_MAX_BANDWIDTH@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
Lloh9:
	adrp	x12, _NG_PPP_MAX_LATENCY@GOTPAGE
Lloh10:
	ldr	x12, [x12, _NG_PPP_MAX_LATENCY@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
	add	x13, x13, #16
	lsl	x14, x14, #3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x13, x13, #32
	add	x9, x9, #8
	cmp	x14, x9
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x13, #8]
	cbz	x15, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x15, [x0, #24]
	ldr	x15, [x15, x9]
	cmp	x15, #0
	cinc	w8, w8, ne
	ldur	x15, [x13, #-16]
	cmp	x15, x10
	b.lt	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x15, [x13, #-8]
	cmp	x15, #0
	ccmp	x15, x11, #0, ne
	b.gt	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x15, [x13]
	cmp	x15, x12
	b.le	LBB0_2
	b	LBB0_14
LBB0_7:
	mov	w8, #0
	b	LBB0_9
LBB0_8:
	ldr	x9, [x0]
	cmp	x9, #1
	ccmp	w8, #0, #4, ge
	b.gt	LBB0_11
LBB0_9:
	ldr	w9, [x19]
LBB0_10:
	cmp	w9, #0
	ccmp	w8, #2, #8, eq
	cset	w0, lt
	b	LBB0_15
LBB0_11:
	ldr	w9, [x0, #16]
	cmp	w9, #0
	cset	w10, ne
	ldr	w9, [x19]
	cmp	w9, #0
	cset	w11, eq
	cmp	w10, w11
	b.eq	LBB0_14
; %bb.12:
	ldr	w10, [x0, #12]
	cmp	w10, #0
	cset	w10, ne
	ldr	w11, [x19, #8]
	cmp	w11, #0
	cset	w11, eq
	cmp	w10, w11
	b.eq	LBB0_14
; %bb.13:
	ldr	w10, [x0, #8]
	cmp	w10, #0
	cset	w10, ne
	ldr	w11, [x19, #4]
	cmp	w11, #0
	cset	w11, eq
	cmp	w10, w11
	b.ne	LBB0_10
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_PPP_MAX_LINKS,4,2           ; @NG_PPP_MAX_LINKS
	.comm	_MP_MIN_LINK_MRU,8,3            ; @MP_MIN_LINK_MRU
	.comm	_NG_PPP_MAX_BANDWIDTH,8,3       ; @NG_PPP_MAX_BANDWIDTH
	.comm	_NG_PPP_MAX_LATENCY,8,3         ; @NG_PPP_MAX_LATENCY
	.no_dead_strip	_ng_ppp_config_valid
.subsections_via_symbols
