	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb4_validate_flow_match
_cxgb4_validate_flow_match:             ## @cxgb4_validate_flow_match
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_flow_cls_offload_flow_rule
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r15
	movl	(%r15), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_FLOW_DISSECTOR_KEY_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_FLOW_DISSECTOR_KEY_BASIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r12d
	orl	%ebx, %r12d
	movq	_FLOW_DISSECTOR_KEY_IPV4_ADDRS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r13d
	movq	_FLOW_DISSECTOR_KEY_IPV6_ADDRS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r14d
	orl	%r13d, %r14d
	orl	%r12d, %r14d
	movq	_FLOW_DISSECTOR_KEY_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r12d
	movq	_FLOW_DISSECTOR_KEY_ENC_KEYID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r13d
	orl	%r12d, %r13d
	movq	_FLOW_DISSECTOR_KEY_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r13d, %ebx
	orl	%r14d, %ebx
	movq	_FLOW_DISSECTOR_KEY_IP@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_BIT
	orl	%ebx, %eax
	notl	%eax
	testl	%eax, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_netdev_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	movq	_FLOW_DISSECTOR_KEY_BASIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_flow_rule_match_key
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	_flow_rule_match_basic
	movq	-64(%rbp), %rax
	movl	(%rax), %edi
	callq	_ntohs
	movq	%rax, %r12
	movq	-72(%rbp), %rax
	movl	(%rax), %edi
	callq	_ntohs
	movq	%rax, %r13
	jmp	LBB0_5
LBB0_3:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
LBB0_5:
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_flow_rule_match_key
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	andq	%r13, %r12
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_9
## %bb.7:
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	_flow_rule_match_ip
	movq	-72(%rbp), %rax
	cmpq	$0, (%rax)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_13
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLOW_DISSECTOR_KEY_CONTROL,4,2 ## @FLOW_DISSECTOR_KEY_CONTROL
	.comm	_FLOW_DISSECTOR_KEY_BASIC,4,2   ## @FLOW_DISSECTOR_KEY_BASIC
	.comm	_FLOW_DISSECTOR_KEY_IPV4_ADDRS,4,2 ## @FLOW_DISSECTOR_KEY_IPV4_ADDRS
	.comm	_FLOW_DISSECTOR_KEY_IPV6_ADDRS,4,2 ## @FLOW_DISSECTOR_KEY_IPV6_ADDRS
	.comm	_FLOW_DISSECTOR_KEY_PORTS,4,2   ## @FLOW_DISSECTOR_KEY_PORTS
	.comm	_FLOW_DISSECTOR_KEY_ENC_KEYID,4,2 ## @FLOW_DISSECTOR_KEY_ENC_KEYID
	.comm	_FLOW_DISSECTOR_KEY_VLAN,4,2    ## @FLOW_DISSECTOR_KEY_VLAN
	.comm	_FLOW_DISSECTOR_KEY_IP,4,2      ## @FLOW_DISSECTOR_KEY_IP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported key used: 0x%x\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ETH_P_IP,8,3                   ## @ETH_P_IP
	.comm	_ETH_P_IPV6,8,3                 ## @ETH_P_IPV6
L_.str.1:                               ## @.str.1
	.asciz	"IP Key supported only with IPv4/v6"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"ttl match unsupported for offload"

	.no_dead_strip	_cxgb4_validate_flow_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb4_validate_flow_match
_cxgb4_validate_flow_match:             ; @cxgb4_validate_flow_match
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	mov	x0, x1
	bl	_flow_cls_offload_flow_rule
	mov	x20, x0
	ldr	x22, [x0]
	ldr	w23, [x22]
Lloh0:
	adrp	x8, _FLOW_DISSECTOR_KEY_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLOW_DISSECTOR_KEY_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	mov	x21, x0
Lloh3:
	adrp	x24, _FLOW_DISSECTOR_KEY_BASIC@GOTPAGE
Lloh4:
	ldr	x24, [x24, _FLOW_DISSECTOR_KEY_BASIC@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_BIT
	orr	w21, w0, w21
Lloh5:
	adrp	x8, _FLOW_DISSECTOR_KEY_IPV4_ADDRS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FLOW_DISSECTOR_KEY_IPV4_ADDRS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_BIT
	orr	w21, w21, w0
Lloh8:
	adrp	x8, _FLOW_DISSECTOR_KEY_IPV6_ADDRS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FLOW_DISSECTOR_KEY_IPV6_ADDRS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_BIT
	orr	w21, w21, w0
Lloh11:
	adrp	x8, _FLOW_DISSECTOR_KEY_PORTS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FLOW_DISSECTOR_KEY_PORTS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_BIT
	orr	w21, w21, w0
Lloh14:
	adrp	x8, _FLOW_DISSECTOR_KEY_ENC_KEYID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FLOW_DISSECTOR_KEY_ENC_KEYID@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_BIT
	orr	w21, w21, w0
Lloh17:
	adrp	x8, _FLOW_DISSECTOR_KEY_VLAN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FLOW_DISSECTOR_KEY_VLAN@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_BIT
	orr	w21, w21, w0
Lloh20:
	adrp	x25, _FLOW_DISSECTOR_KEY_IP@GOTPAGE
Lloh21:
	ldr	x25, [x25, _FLOW_DISSECTOR_KEY_IP@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_BIT
	orr	w8, w21, w0
	bics	wzr, w23, w8
	b.eq	LBB0_5
; %bb.1:
	ldr	w8, [x22]
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_netdev_warn
Lloh24:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #112
	ret
LBB0_5:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_flow_rule_match_key
	cbz	x0, LBB0_7
; %bb.6:
	add	x1, sp, #16
	mov	x0, x20
	bl	_flow_rule_match_basic
	ldr	x8, [sp, #24]
	ldr	w0, [x8]
	bl	_ntohs
	mov	x21, x0
	ldr	x8, [sp, #16]
	ldr	w0, [x8]
	bl	_ntohs
	mov	x22, x0
	b	LBB0_8
LBB0_7:
	mov	x22, #0
	mov	x21, #0
LBB0_8:
	ldr	w1, [x25]
	mov	x0, x20
	bl	_flow_rule_match_key
	cbz	x0, LBB0_4
; %bb.9:
	and	x8, x21, x22
Lloh26:
	adrp	x9, _ETH_P_IP@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ETH_P_IP@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.10:
Lloh29:
	adrp	x9, _ETH_P_IPV6@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ETH_P_IPV6@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.11:
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_12:
	add	x1, sp, #16
	mov	x0, x20
	bl	_flow_rule_match_ip
	ldr	x8, [sp, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.13:
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_14:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_FLOW_DISSECTOR_KEY_CONTROL,4,2 ; @FLOW_DISSECTOR_KEY_CONTROL
	.comm	_FLOW_DISSECTOR_KEY_BASIC,4,2   ; @FLOW_DISSECTOR_KEY_BASIC
	.comm	_FLOW_DISSECTOR_KEY_IPV4_ADDRS,4,2 ; @FLOW_DISSECTOR_KEY_IPV4_ADDRS
	.comm	_FLOW_DISSECTOR_KEY_IPV6_ADDRS,4,2 ; @FLOW_DISSECTOR_KEY_IPV6_ADDRS
	.comm	_FLOW_DISSECTOR_KEY_PORTS,4,2   ; @FLOW_DISSECTOR_KEY_PORTS
	.comm	_FLOW_DISSECTOR_KEY_ENC_KEYID,4,2 ; @FLOW_DISSECTOR_KEY_ENC_KEYID
	.comm	_FLOW_DISSECTOR_KEY_VLAN,4,2    ; @FLOW_DISSECTOR_KEY_VLAN
	.comm	_FLOW_DISSECTOR_KEY_IP,4,2      ; @FLOW_DISSECTOR_KEY_IP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported key used: 0x%x\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ETH_P_IP,8,3                   ; @ETH_P_IP
	.comm	_ETH_P_IPV6,8,3                 ; @ETH_P_IPV6
l_.str.1:                               ; @.str.1
	.asciz	"IP Key supported only with IPv4/v6"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"ttl match unsupported for offload"

	.no_dead_strip	_cxgb4_validate_flow_match
.subsections_via_symbols
