	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_validate_flow
_mlx4_en_validate_flow:                 ## @mlx4_en_validate_flow
	.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), %rax
	movq	_MAX_NUM_OF_FS_RULES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_30
## %bb.1:
	movq	%rsi, %r14
	movl	8(%rsi), %ecx
	movq	_FLOW_MAC_EXT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%ecx, %eax
	je	LBB0_4
## %bb.2:
	movl	32(%r14), %edi
	callq	_is_broadcast_ether_addr
	testl	%eax, %eax
	je	LBB0_30
## %bb.3:
	movl	8(%r14), %ecx
	movl	(%rbx), %eax
LBB0_4:
	movq	_FLOW_EXT@GOTPCREL(%rip), %rbx
	orl	(%rbx), %eax
	notl	%eax
	andl	%ecx, %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_10
## %bb.5:
	cmpl	$130, %eax
	je	LBB0_15
## %bb.6:
	cmpl	$131, %eax
	jne	LBB0_30
## %bb.7:
	movl	48(%r14), %edi
	callq	_is_zero_ether_addr
	testl	%eax, %eax
	je	LBB0_30
## %bb.8:
	movl	44(%r14), %edi
	callq	_is_broadcast_ether_addr
	testl	%eax, %eax
	je	LBB0_30
## %bb.9:
	movl	40(%r14), %edi
	jmp	LBB0_23
LBB0_10:
	cmpl	$0, 88(%r14)
	jne	LBB0_30
## %bb.11:
	movl	84(%r14), %edi
	callq	_all_zeros_or_all_ones
	testl	%eax, %eax
	je	LBB0_30
## %bb.12:
	movl	80(%r14), %edi
	callq	_all_zeros_or_all_ones
	testl	%eax, %eax
	je	LBB0_30
## %bb.13:
	movl	76(%r14), %edi
	callq	_all_zeros_or_all_ones
	testl	%eax, %eax
	je	LBB0_30
## %bb.14:
	movl	72(%r14), %edi
LBB0_23:
	callq	_all_zeros_or_all_ones
	testl	%eax, %eax
	je	LBB0_30
## %bb.24:
	movl	(%rbx), %eax
	xorl	%ebx, %ebx
	testl	%eax, 8(%r14)
	je	LBB0_31
## %bb.25:
	cmpq	$0, 24(%r14)
	jne	LBB0_30
## %bb.26:
	movl	16(%r14), %r15d
	movq	_VLAN_VID_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_cpu_to_be16
	testl	%r15d, %eax
	je	LBB0_28
## %bb.27:
	movl	16(%r14), %r13d
	movl	(%r12), %edi
	callq	_cpu_to_be16
	movl	%eax, %r15d
	andl	%r13d, %r15d
	movl	(%r12), %edi
	callq	_cpu_to_be16
	cmpl	%eax, %r15d
	jne	LBB0_30
LBB0_28:
	cmpl	$0, 16(%r14)
	je	LBB0_31
## %bb.29:
	movl	12(%r14), %edi
	callq	_be16_to_cpu
	movq	_VLAN_N_VID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_30
	jmp	LBB0_31
LBB0_15:
	cmpl	$0, 68(%r14)
	jne	LBB0_30
## %bb.16:
	cmpl	$0, 64(%r14)
	jne	LBB0_30
## %bb.17:
	cmpl	$0, 60(%r14)
	jne	LBB0_30
## %bb.18:
	movl	92(%r14), %eax
	movq	_ETH_RX_NFC_IP4@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_30
## %bb.19:
	movl	56(%r14), %edi
	testl	%edi, %edi
	jne	LBB0_21
## %bb.20:
	cmpl	$0, 52(%r14)
	je	LBB0_30
LBB0_21:
	callq	_all_zeros_or_all_ones
	testl	%eax, %eax
	je	LBB0_30
## %bb.22:
	movl	52(%r14), %edi
	jmp	LBB0_23
LBB0_30:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_31:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NUM_OF_FS_RULES,8,3        ## @MAX_NUM_OF_FS_RULES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FLOW_MAC_EXT,4,2               ## @FLOW_MAC_EXT
	.comm	_FLOW_EXT,4,2                   ## @FLOW_EXT
	.comm	_ETH_RX_NFC_IP4,4,2             ## @ETH_RX_NFC_IP4
	.comm	_VLAN_VID_MASK,4,2              ## @VLAN_VID_MASK
	.comm	_VLAN_N_VID,8,3                 ## @VLAN_N_VID
	.no_dead_strip	_mlx4_en_validate_flow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_validate_flow
_mlx4_en_validate_flow:                 ; @mlx4_en_validate_flow
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _MAX_NUM_OF_FS_RULES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_NUM_OF_FS_RULES@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_30
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1, #8]
Lloh3:
	adrp	x20, _FLOW_MAC_EXT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _FLOW_MAC_EXT@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x19, #32]
	bl	_is_broadcast_ether_addr
	cbz	w0, LBB0_30
; %bb.3:
	ldr	w8, [x19, #8]
	ldr	w9, [x20]
LBB0_4:
Lloh5:
	adrp	x20, _FLOW_EXT@GOTPAGE
Lloh6:
	ldr	x20, [x20, _FLOW_EXT@GOTPAGEOFF]
	ldr	w10, [x20]
	orr	w9, w9, w10
	bic	w8, w8, w9
	sub	w9, w8, #128
	cmp	w9, #2
	b.lo	LBB0_10
; %bb.5:
	cmp	w8, #130
	b.eq	LBB0_22
; %bb.6:
	cmp	w8, #131
	b.ne	LBB0_30
; %bb.7:
	ldr	w0, [x19, #48]
	bl	_is_zero_ether_addr
	cbz	w0, LBB0_30
; %bb.8:
	ldr	w0, [x19, #44]
	bl	_is_broadcast_ether_addr
	cbz	w0, LBB0_30
; %bb.9:
	ldr	w0, [x19, #40]
	bl	_all_zeros_or_all_ones
	cbnz	w0, LBB0_15
	b	LBB0_30
LBB0_10:
	ldr	w8, [x19, #88]
	cbnz	w8, LBB0_30
; %bb.11:
	ldr	w0, [x19, #84]
	bl	_all_zeros_or_all_ones
	cbz	w0, LBB0_30
; %bb.12:
	ldr	w0, [x19, #80]
	bl	_all_zeros_or_all_ones
	cbz	w0, LBB0_30
; %bb.13:
	ldr	w0, [x19, #76]
	bl	_all_zeros_or_all_ones
	cbz	w0, LBB0_30
; %bb.14:
	ldr	w0, [x19, #72]
	bl	_all_zeros_or_all_ones
	cbz	w0, LBB0_30
LBB0_15:
	ldr	w8, [x19, #8]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.16:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_30
; %bb.17:
	ldr	w21, [x19, #16]
Lloh7:
	adrp	x20, _VLAN_VID_MASK@GOTPAGE
Lloh8:
	ldr	x20, [x20, _VLAN_VID_MASK@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_cpu_to_be16
	tst	w0, w21
	b.eq	LBB0_19
; %bb.18:
	ldr	w21, [x19, #16]
	ldr	w0, [x20]
	bl	_cpu_to_be16
	and	w21, w0, w21
	ldr	w0, [x20]
	bl	_cpu_to_be16
	cmp	w21, w0
	b.ne	LBB0_30
LBB0_19:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_21
; %bb.20:
	ldr	w0, [x19, #12]
	bl	_be16_to_cpu
Lloh9:
	adrp	x8, _VLAN_N_VID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VLAN_N_VID@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_30
LBB0_21:
	mov	w0, #0
	b	LBB0_31
LBB0_22:
	ldr	w8, [x19, #68]
	cbnz	w8, LBB0_30
; %bb.23:
	ldr	w8, [x19, #64]
	cbnz	w8, LBB0_30
; %bb.24:
	ldr	w8, [x19, #60]
	cbnz	w8, LBB0_30
; %bb.25:
	ldr	w8, [x19, #92]
Lloh12:
	adrp	x9, _ETH_RX_NFC_IP4@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ETH_RX_NFC_IP4@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_30
; %bb.26:
	ldr	w0, [x19, #56]
	cbnz	w0, LBB0_28
; %bb.27:
	ldr	w8, [x19, #52]
	cbz	w8, LBB0_30
LBB0_28:
	bl	_all_zeros_or_all_ones
	cbz	w0, LBB0_30
; %bb.29:
	ldr	w0, [x19, #52]
	bl	_all_zeros_or_all_ones
	cbnz	w0, LBB0_15
LBB0_30:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_31:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NUM_OF_FS_RULES,8,3        ; @MAX_NUM_OF_FS_RULES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FLOW_MAC_EXT,4,2               ; @FLOW_MAC_EXT
	.comm	_FLOW_EXT,4,2                   ; @FLOW_EXT
	.comm	_ETH_RX_NFC_IP4,4,2             ; @ETH_RX_NFC_IP4
	.comm	_VLAN_VID_MASK,4,2              ; @VLAN_VID_MASK
	.comm	_VLAN_N_VID,8,3                 ; @VLAN_N_VID
	.no_dead_strip	_mlx4_en_validate_flow
.subsections_via_symbols
