	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_flower_parse_ports
_mlxsw_sp_flower_parse_ports:           ## @mlxsw_sp_flower_parse_ports
	.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
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	%rdx, %rdi
	callq	_flow_cls_offload_flow_rule
	movq	%rax, %r14
	movq	_FLOW_DISSECTOR_KEY_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_flow_rule_match_key
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_NL_SET_ERR_MSG_MOD
	movq	(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_5
LBB0_4:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_flow_rule_match_ports
	movq	_MLXSW_AFK_ELEMENT_DST_L4_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-48(%rbp), %rax
	movl	4(%rax), %edi
	callq	_ntohs
	movl	%eax, %r15d
	movq	-56(%rbp), %rax
	movl	4(%rax), %edi
	callq	_ntohs
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_mlxsw_sp_acl_rulei_keymask_u32
	movq	_MLXSW_AFK_ELEMENT_SRC_L4_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-48(%rbp), %rax
	movl	(%rax), %edi
	callq	_ntohs
	movl	%eax, %r15d
	movq	-56(%rbp), %rax
	movl	(%rax), %edi
	callq	_ntohs
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_mlxsw_sp_acl_rulei_keymask_u32
LBB0_5:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLOW_DISSECTOR_KEY_PORTS,4,2   ## @FLOW_DISSECTOR_KEY_PORTS
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_IPPROTO_UDP,8,3                ## @IPPROTO_UDP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Only UDP and TCP keys are supported"

L_.str.1:                               ## @.str.1
	.asciz	"Only UDP and TCP keys are supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLXSW_AFK_ELEMENT_DST_L4_PORT,4,2 ## @MLXSW_AFK_ELEMENT_DST_L4_PORT
	.comm	_MLXSW_AFK_ELEMENT_SRC_L4_PORT,4,2 ## @MLXSW_AFK_ELEMENT_SRC_L4_PORT
	.no_dead_strip	_mlxsw_sp_flower_parse_ports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_flower_parse_ports
_mlxsw_sp_flower_parse_ports:           ; @mlxsw_sp_flower_parse_ports
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	_flow_cls_offload_flow_rule
	mov	x22, x0
Lloh0:
	adrp	x8, _FLOW_DISSECTOR_KEY_PORTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLOW_DISSECTOR_KEY_PORTS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_flow_rule_match_key
	cbz	w0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x23
	ccmp	x9, x23, #4, ne
	b.ne	LBB0_3
; %bb.2:
	mov	x1, sp
	mov	x0, x22
	bl	_flow_rule_match_ports
Lloh9:
	adrp	x8, _MLXSW_AFK_ELEMENT_DST_L4_PORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLXSW_AFK_ELEMENT_DST_L4_PORT@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #4]
	bl	_ntohs
	mov	x21, x0
	ldr	x8, [sp]
	ldr	w0, [x8, #4]
	bl	_ntohs
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mlxsw_sp_acl_rulei_keymask_u32
Lloh12:
	adrp	x8, _MLXSW_AFK_ELEMENT_SRC_L4_PORT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLXSW_AFK_ELEMENT_SRC_L4_PORT@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	bl	_ntohs
	mov	x21, x0
	ldr	x8, [sp]
	ldr	w0, [x8]
	bl	_ntohs
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mlxsw_sp_acl_rulei_keymask_u32
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	w0, [x21]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_NL_SET_ERR_MSG_MOD
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_FLOW_DISSECTOR_KEY_PORTS,4,2   ; @FLOW_DISSECTOR_KEY_PORTS
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_IPPROTO_UDP,8,3                ; @IPPROTO_UDP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Only UDP and TCP keys are supported"

l_.str.1:                               ; @.str.1
	.asciz	"Only UDP and TCP keys are supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLXSW_AFK_ELEMENT_DST_L4_PORT,4,2 ; @MLXSW_AFK_ELEMENT_DST_L4_PORT
	.comm	_MLXSW_AFK_ELEMENT_SRC_L4_PORT,4,2 ; @MLXSW_AFK_ELEMENT_SRC_L4_PORT
	.no_dead_strip	_mlxsw_sp_flower_parse_ports
.subsections_via_symbols
