	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_valid_ethertype
_is_valid_ethertype:                    ## @is_valid_ethertype
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	_ft_field_support@GOTPCREL(%rip), %rax
	leaq	4(%rax), %rcx
	testl	%edx, %edx
	cmoveq	%rax, %rcx
	movl	(%rcx), %esi
	callq	_MLX5_CAP_FLOWTABLE_NIC_RX
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movq	_IB_FLOW_SPEC_INNER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_2:
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_16
## %bb.3:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	4(%r14), %r13
	xorl	%eax, %eax
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_IB_FLOW_SPEC_ETH@GOTPCREL(%rip), %rdx
	movq	_IB_FLOW_SPEC_IPV4@GOTPCREL(%rip), %r9
	xorl	%r15d, %r15d
	xorl	%r8d, %r8d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movslq	%esi, %rsi
	addq	%rsi, %r13
	incl	%r15d
	cmpl	%ecx, %r15d
	jae	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	(%rdx), %edi
	orl	%r12d, %edi
	cmpl	%edi, %esi
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r13), %r14
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rdx, %rbx
	callq	_htons
	xorl	%ecx, %ecx
	cmpq	%rax, %r14
	sete	%cl
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %edi
	callq	_ntohs
	movq	%rbx, %rdx
	movq	_IB_FLOW_SPEC_IPV4@GOTPCREL(%rip), %r9
	movl	(%r13), %esi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	movl	$1, %r8d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r9), %edi
	orl	%r12d, %edi
	cmpl	%edi, %esi
	je	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_IB_FLOW_SPEC_IPV6@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	%r12d, %edi
	cmpl	%edi, %esi
	je	LBB0_4
	jmp	LBB0_5
LBB0_11:
	testl	%r8d, %r8d
	sete	%sil
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	testl	%r8d, %r8d
	sete	%cl
	orb	%sil, %cl
	cmpb	$1, %cl
	je	LBB0_17
## %bb.12:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.13:
	movq	_ETH_P_IP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%sil
	movl	(%r9), %edx
	orl	%r12d, %edx
	cmpl	%edx, %r8d
	sete	%cl
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%dl
	movq	_IB_FLOW_SPEC_IPV6@GOTPCREL(%rip), %rdi
	orl	(%rdi), %r12d
	cmpl	%r12d, %r8d
	sete	%bl
	testb	%cl, %sil
	jne	LBB0_16
## %bb.14:
	movb	$1, %cl
	andb	%bl, %dl
	jne	LBB0_17
## %bb.15:
	movq	_ETH_P_MPLS_UC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_ETH_P_MPLS_MC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	setne	%cl
	andb	%al, %cl
	jmp	LBB0_17
LBB0_16:
	movb	$1, %cl
LBB0_17:
	movzbl	%cl, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ft_field_support,8,2           ## @ft_field_support
	.comm	_IB_FLOW_SPEC_INNER,4,2         ## @IB_FLOW_SPEC_INNER
	.comm	_IB_FLOW_SPEC_ETH,4,2           ## @IB_FLOW_SPEC_ETH
	.comm	_IB_FLOW_SPEC_IPV4,4,2          ## @IB_FLOW_SPEC_IPV4
	.comm	_IB_FLOW_SPEC_IPV6,4,2          ## @IB_FLOW_SPEC_IPV6
	.comm	_ETH_P_IP,8,3                   ## @ETH_P_IP
	.comm	_ETH_P_IPV6,8,3                 ## @ETH_P_IPV6
	.comm	_ETH_P_MPLS_UC,8,3              ## @ETH_P_MPLS_UC
	.comm	_ETH_P_MPLS_MC,8,3              ## @ETH_P_MPLS_MC
	.no_dead_strip	_is_valid_ethertype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_valid_ethertype
_is_valid_ethertype:                    ; @is_valid_ethertype
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _ft_field_support@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ft_field_support@GOTPAGEOFF]
	add	x9, x8, #4
	cmp	w2, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	bl	_MLX5_CAP_FLOWTABLE_NIC_RX
Lloh2:
	adrp	x8, _IB_FLOW_SPEC_INNER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_FLOW_SPEC_INNER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w21, #0
	csel	w21, wzr, w8, eq
	ldr	w8, [x20]
	cbz	w8, LBB0_14
; %bb.1:
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, #0
	mov	w25, #0
	mov	w9, #0
	mov	w22, #0
	add	x26, x20, #4
	mov	w27, #1
Lloh5:
	adrp	x28, _IB_FLOW_SPEC_ETH@GOTPAGE
Lloh6:
	ldr	x28, [x28, _IB_FLOW_SPEC_ETH@GOTPAGEOFF]
Lloh7:
	adrp	x24, _IB_FLOW_SPEC_IPV4@GOTPAGE
Lloh8:
	ldr	x24, [x24, _IB_FLOW_SPEC_IPV4@GOTPAGEOFF]
Lloh9:
	adrp	x23, _IB_FLOW_SPEC_IPV6@GOTPAGE
Lloh10:
	ldr	x23, [x23, _IB_FLOW_SPEC_IPV6@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x10
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, w10, sxtw
	add	w25, w25, #1
	cmp	w25, w8
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x26]
	ldr	w11, [x28]
	orr	w11, w11, w21
	cmp	w10, w11
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x19, [x26, #8]
	cbz	x19, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #65535
	bl	_htons
	cmp	x19, x0
	cset	w27, eq
	ldr	w0, [x26]
	bl	_ntohs
	ldr	w10, [x26]
	ldr	w8, [x20]
	mov	w9, #1
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x24]
	orr	w11, w11, w21
	cmp	w10, w11
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x23]
	orr	w11, w11, w21
	cmp	w10, w11
	b.eq	LBB0_2
	b	LBB0_3
LBB0_9:
	cmp	w9, #0
	ccmp	w22, #0, #4, ne
	cset	w8, eq
	b.eq	LBB0_15
; %bb.10:
	cbz	w27, LBB0_15
; %bb.11:
Lloh11:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w9, [x24]
	orr	w10, w9, w21
Lloh14:
	adrp	x9, _ETH_P_IPV6@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ETH_P_IPV6@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x0, x9
	ldr	w9, [x23]
	orr	w9, w9, w21
	ccmp	w22, w9, #0, eq
	cset	w9, eq
	cmp	w22, w10
	ccmp	x0, x8, #0, eq
	mov	w8, #1
	b.eq	LBB0_15
; %bb.12:
	tbnz	w9, #0, LBB0_15
; %bb.13:
Lloh17:
	adrp	x8, _ETH_P_MPLS_UC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ETH_P_MPLS_UC@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
Lloh20:
	adrp	x8, _ETH_P_MPLS_MC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETH_P_MPLS_MC@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ccmp	x0, x8, #4, ne
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	ccmp	w8, #0, #4, eq
	cset	w8, ne
	b	LBB0_15
LBB0_14:
	mov	w8, #1
LBB0_15:
	mov	x0, x8
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ft_field_support,8,2           ; @ft_field_support
	.comm	_IB_FLOW_SPEC_INNER,4,2         ; @IB_FLOW_SPEC_INNER
	.comm	_IB_FLOW_SPEC_ETH,4,2           ; @IB_FLOW_SPEC_ETH
	.comm	_IB_FLOW_SPEC_IPV4,4,2          ; @IB_FLOW_SPEC_IPV4
	.comm	_IB_FLOW_SPEC_IPV6,4,2          ; @IB_FLOW_SPEC_IPV6
	.comm	_ETH_P_IP,8,3                   ; @ETH_P_IP
	.comm	_ETH_P_IPV6,8,3                 ; @ETH_P_IPV6
	.comm	_ETH_P_MPLS_UC,8,3              ; @ETH_P_MPLS_UC
	.comm	_ETH_P_MPLS_MC,8,3              ; @ETH_P_MPLS_MC
	.no_dead_strip	_is_valid_ethertype
.subsections_via_symbols
