	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_l2tp_seq_adjust
_ng_l2tp_seq_adjust:                    ## @ng_l2tp_seq_adjust
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$0, 8(%rsi)
	je	LBB0_4
## %bb.1:
	movq	(%rsi), %rcx
	movq	_L2TP_MAX_XWIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	cmovlq	%rcx, %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	cmpq	(%rdi), %rax
	jge	LBB0_7
## %bb.3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	callq	_ng_l2tp_seq_reset
	jmp	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_7:
	movq	%rax, (%rdi)
LBB0_8:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_L2TP_MAX_XWIN,8,3              ## @L2TP_MAX_XWIN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_ng_l2tp_seq_adjust
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_l2tp_seq_adjust
_ng_l2tp_seq_adjust:                    ; @ng_l2tp_seq_adjust
	.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
	ldr	w8, [x1, #8]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _L2TP_MAX_XWIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _L2TP_MAX_XWIN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x9, x8, x9, lt
	cbz	x9, LBB0_5
; %bb.2:
	ldr	x8, [x0]
	cmp	x9, x8
	b.ge	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	b	LBB0_7
LBB0_4:
	bl	_ng_l2tp_seq_reset
	mov	w8, #0
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	b	LBB0_7
LBB0_6:
	mov	w8, #0
	str	x9, [x0]
LBB0_7:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_L2TP_MAX_XWIN,8,3              ; @L2TP_MAX_XWIN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_ng_l2tp_seq_adjust
.subsections_via_symbols
