	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vxge_get_vpath_no
_vxge_get_vpath_no:                     ## @vxge_get_vpath_no
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %r15
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	xorl	%r12d, %r12d
	cmpq	%rax, %r15
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_ip_hdr
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ip_is_fragment
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movslq	(%r15), %rbx
	movslq	(%r14), %r13
	movl	4(%r15,%rbx,4), %edi
	callq	_ntohs
	movl	%eax, %r12d
	movl	(%r15,%rbx,4), %edi
	callq	_ntohs
	addl	%r12d, %eax
	movq	8(%r14), %rcx
	andl	-4(%rcx,%r13,4), %eax
	movq	%r13, %r12
	decq	%r12
	cmpl	%r13d, %eax
	cmovll	%eax, %r12d
LBB0_3:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.no_dead_strip	_vxge_get_vpath_no
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vxge_get_vpath_no
_vxge_get_vpath_no:                     ; @vxge_get_vpath_no
	.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, x1
	mov	x19, x0
	ldr	x21, [x1]
Lloh0:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	cmp	x21, x0
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ip_hdr
	mov	x20, x0
	bl	_ip_is_fragment
	cbz	w0, LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldrsw	x8, [x20]
	add	x21, x20, x8, lsl #2
	ldr	w22, [x19]
	ldr	w0, [x21, #4]
	bl	_ntohs
	mov	x20, x0
	ldr	w0, [x21]
	bl	_ntohs
	ldr	x8, [x19, #8]
	sub	w9, w22, #1
	ldr	w8, [x8, w9, sxtw #2]
	add	w10, w0, w20
	and	w8, w8, w10
	cmp	w8, w22
	csel	w0, w8, w9, lt
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.no_dead_strip	_vxge_get_vpath_no
.subsections_via_symbols
