	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_eswitch_set_rule_source_port
_mlx5_eswitch_set_rule_source_port:     ## @mlx5_eswitch_set_rule_source_port
	.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	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_mlx5_eswitch_vport_match_metadata_enabled
	movq	_fte_match_param@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	12(%r13), %esi
	testq	%rax, %rax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	_misc_parameters_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_ADDR_OF
	movq	%rax, %r12
	movq	_fte_match_set_misc2@GOTPCREL(%rip), %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rcx
	movq	%r13, %r15
	movl	(%rax), %r13d
	movq	_metadata_reg_c_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movl	(%rcx), %edi
	movq	(%rax), %rsi
	callq	_mlx5_eswitch_get_vport_metadata_for_match
	movl	%r13d, %edi
	movq	%r15, %r13
	movq	%r12, %rsi
	movl	%r14d, %edx
	movq	%rax, %rcx
	callq	_MLX5_SET
	movl	(%rbx), %edi
	movl	8(%r15), %esi
	movq	_misc_parameters_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_ADDR_OF
	movq	_fte_match_set_misc2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_metadata_reg_c_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rsi
	callq	_MLX5_SET_TO_ONES
	movq	_MLX5_MATCH_MISC_PARAMETERS_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
	movl	(%rbx), %edi
	movl	8(%r15), %esi
	movq	_misc_parameters@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_ADDR_OF
	movq	%rax, %rbx
	movq	_fte_match_set_misc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_BYTES
	movq	%rbx, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memchr_inv
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_7
LBB0_2:
	movq	_misc_parameters@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_ADDR_OF
	movq	%rax, %r12
	movq	_fte_match_set_misc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_source_port@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r15), %rax
	movq	(%rax), %rcx
	movq	%r12, %rsi
	callq	_MLX5_SET
	movl	(%r14), %edi
	movq	_merged_eswitch@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_ESW
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_fte_match_set_misc@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_source_eswitch_owner_vhca_id@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	8(%r15), %rdi
	movq	_vhca_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	movl	%r14d, %edi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	_fte_match_param@GOTPCREL(%rip), %rbx
	movq	%rax, %rcx
	callq	_MLX5_SET
LBB0_4:
	movl	(%rbx), %edi
	movl	8(%r13), %esi
	movq	_misc_parameters@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_ADDR_OF
	movq	%rax, %r12
	movq	_fte_match_set_misc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_source_port@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_MLX5_SET_TO_ONES
	movl	(%r14), %edi
	movq	_merged_eswitch@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_ESW
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_fte_match_set_misc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_source_eswitch_owner_vhca_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_MLX5_SET_TO_ONES
LBB0_6:
	leaq	4(%r13), %rax
	movq	_MLX5_MATCH_MISC_PARAMETERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_7:
	movl	(%r14), %edi
	movq	_flow_source@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_ESW_FLOWTABLE
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_MLX5_VPORT_UPLINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	_MLX5_FLOW_CONTEXT_FLOW_SOURCE_UPLINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fte_match_param,4,2            ## @fte_match_param
	.comm	_misc_parameters_2,4,2          ## @misc_parameters_2
	.comm	_fte_match_set_misc2,4,2        ## @fte_match_set_misc2
	.comm	_metadata_reg_c_0,4,2           ## @metadata_reg_c_0
	.comm	_MLX5_MATCH_MISC_PARAMETERS_2,4,2 ## @MLX5_MATCH_MISC_PARAMETERS_2
	.comm	_misc_parameters,4,2            ## @misc_parameters
	.comm	_fte_match_set_misc,4,2         ## @fte_match_set_misc
	.comm	_MLX5_MATCH_MISC_PARAMETERS,4,2 ## @MLX5_MATCH_MISC_PARAMETERS
	.comm	_source_port,4,2                ## @source_port
	.comm	_merged_eswitch,4,2             ## @merged_eswitch
	.comm	_source_eswitch_owner_vhca_id,4,2 ## @source_eswitch_owner_vhca_id
	.comm	_vhca_id,4,2                    ## @vhca_id
	.comm	_flow_source,4,2                ## @flow_source
	.comm	_MLX5_VPORT_UPLINK,8,3          ## @MLX5_VPORT_UPLINK
	.comm	_MLX5_FLOW_CONTEXT_FLOW_SOURCE_UPLINK,4,2 ## @MLX5_FLOW_CONTEXT_FLOW_SOURCE_UPLINK
	.no_dead_strip	_mlx5_eswitch_set_rule_source_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_eswitch_set_rule_source_port
_mlx5_eswitch_set_rule_source_port:     ; @mlx5_eswitch_set_rule_source_port
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_mlx5_eswitch_vport_match_metadata_enabled
	mov	x8, x0
Lloh0:
	adrp	x25, _fte_match_param@GOTPAGE
Lloh1:
	ldr	x25, [x25, _fte_match_param@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	w1, [x19, #12]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x26, _misc_parameters_2@GOTPAGE
Lloh3:
	ldr	x26, [x26, _misc_parameters_2@GOTPAGEOFF]
	ldr	w2, [x26]
	bl	_MLX5_ADDR_OF
	mov	x22, x0
Lloh4:
	adrp	x27, _fte_match_set_misc2@GOTPAGE
Lloh5:
	ldr	x27, [x27, _fte_match_set_misc2@GOTPAGEOFF]
Lloh6:
	adrp	x28, _metadata_reg_c_0@GOTPAGE
Lloh7:
	ldr	x28, [x28, _metadata_reg_c_0@GOTPAGEOFF]
	ldr	w23, [x27]
	ldr	w24, [x28]
	ldp	x9, x8, [x20]
	ldr	w0, [x8]
	ldr	x1, [x9]
	bl	_mlx5_eswitch_get_vport_metadata_for_match
	mov	x3, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_MLX5_SET
	ldr	w0, [x25]
	ldr	w1, [x19, #8]
	ldr	w2, [x26]
	bl	_MLX5_ADDR_OF
	mov	x1, x0
	ldr	w0, [x27]
	ldr	w2, [x28]
	bl	_MLX5_SET_TO_ONES
Lloh8:
	adrp	x8, _MLX5_MATCH_MISC_PARAMETERS_2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX5_MATCH_MISC_PARAMETERS_2@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	x23, x19
	ldr	w9, [x23, #4]!
	orr	w8, w9, w8
	str	w8, [x23]
	ldr	w0, [x25]
	ldr	w1, [x19, #8]
Lloh11:
	adrp	x8, _misc_parameters@GOTPAGE
Lloh12:
	ldr	x8, [x8, _misc_parameters@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_MLX5_ADDR_OF
	mov	x22, x0
Lloh14:
	adrp	x8, _fte_match_set_misc@GOTPAGE
Lloh15:
	ldr	x8, [x8, _fte_match_set_misc@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_MLX5_ST_SZ_BYTES
	mov	x2, x0
	mov	x0, x22
	mov	w1, #0
	bl	_memchr_inv
	cbnz	x0, LBB0_7
	b	LBB0_8
LBB0_2:
Lloh17:
	adrp	x23, _misc_parameters@GOTPAGE
Lloh18:
	ldr	x23, [x23, _misc_parameters@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_MLX5_ADDR_OF
	mov	x22, x0
Lloh19:
	adrp	x26, _fte_match_set_misc@GOTPAGE
Lloh20:
	ldr	x26, [x26, _fte_match_set_misc@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh21:
	adrp	x28, _source_port@GOTPAGE
Lloh22:
	ldr	x28, [x28, _source_port@GOTPAGEOFF]
	ldr	w2, [x28]
	ldr	x8, [x20]
	ldr	x3, [x8]
	mov	x1, x22
	bl	_MLX5_SET
	ldr	w0, [x21]
Lloh23:
	adrp	x27, _merged_eswitch@GOTPAGE
Lloh24:
	ldr	x27, [x27, _merged_eswitch@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_MLX5_CAP_ESW
Lloh25:
	adrp	x24, _source_eswitch_owner_vhca_id@GOTPAGE
Lloh26:
	ldr	x24, [x24, _source_eswitch_owner_vhca_id@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w23, [x26]
	mov	x28, x24
	ldr	w24, [x24]
	ldr	x0, [x20, #8]
Lloh27:
	adrp	x8, _vhca_id@GOTPAGE
Lloh28:
	ldr	x8, [x8, _vhca_id@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
	mov	x3, x0
	mov	x0, x23
Lloh30:
	adrp	x23, _misc_parameters@GOTPAGE
Lloh31:
	ldr	x23, [x23, _misc_parameters@GOTPAGEOFF]
	mov	x1, x22
	mov	x2, x24
	mov	x24, x28
Lloh32:
	adrp	x28, _source_port@GOTPAGE
Lloh33:
	ldr	x28, [x28, _source_port@GOTPAGEOFF]
	bl	_MLX5_SET
LBB0_4:
	ldr	w0, [x25]
	ldr	w1, [x19, #8]
	ldr	w2, [x23]
	bl	_MLX5_ADDR_OF
	mov	x22, x0
	ldr	w0, [x26]
	ldr	w2, [x28]
	mov	x1, x22
	bl	_MLX5_SET_TO_ONES
	ldr	w0, [x21]
	ldr	w1, [x27]
	bl	_MLX5_CAP_ESW
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x26]
	ldr	w2, [x24]
	mov	x1, x22
	bl	_MLX5_SET_TO_ONES
LBB0_6:
	add	x23, x19, #4
LBB0_7:
Lloh34:
	adrp	x8, _MLX5_MATCH_MISC_PARAMETERS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MLX5_MATCH_MISC_PARAMETERS@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [x23]
	orr	w8, w9, w8
	str	w8, [x23]
LBB0_8:
	ldr	w0, [x21]
Lloh37:
	adrp	x8, _flow_source@GOTPAGE
Lloh38:
	ldr	x8, [x8, _flow_source@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_MLX5_CAP_ESW_FLOWTABLE
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh40:
	adrp	x9, _MLX5_VPORT_UPLINK@GOTPAGE
Lloh41:
	ldr	x9, [x9, _MLX5_VPORT_UPLINK@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
Lloh43:
	adrp	x8, _MLX5_FLOW_CONTEXT_FLOW_SOURCE_UPLINK@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MLX5_FLOW_CONTEXT_FLOW_SOURCE_UPLINK@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_fte_match_param,4,2            ; @fte_match_param
	.comm	_misc_parameters_2,4,2          ; @misc_parameters_2
	.comm	_fte_match_set_misc2,4,2        ; @fte_match_set_misc2
	.comm	_metadata_reg_c_0,4,2           ; @metadata_reg_c_0
	.comm	_MLX5_MATCH_MISC_PARAMETERS_2,4,2 ; @MLX5_MATCH_MISC_PARAMETERS_2
	.comm	_misc_parameters,4,2            ; @misc_parameters
	.comm	_fte_match_set_misc,4,2         ; @fte_match_set_misc
	.comm	_MLX5_MATCH_MISC_PARAMETERS,4,2 ; @MLX5_MATCH_MISC_PARAMETERS
	.comm	_source_port,4,2                ; @source_port
	.comm	_merged_eswitch,4,2             ; @merged_eswitch
	.comm	_source_eswitch_owner_vhca_id,4,2 ; @source_eswitch_owner_vhca_id
	.comm	_vhca_id,4,2                    ; @vhca_id
	.comm	_flow_source,4,2                ; @flow_source
	.comm	_MLX5_VPORT_UPLINK,8,3          ; @MLX5_VPORT_UPLINK
	.comm	_MLX5_FLOW_CONTEXT_FLOW_SOURCE_UPLINK,4,2 ; @MLX5_FLOW_CONTEXT_FLOW_SOURCE_UPLINK
	.no_dead_strip	_mlx5_eswitch_set_rule_source_port
.subsections_via_symbols
