	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dr_ste_build_eth_l2_src_des_bit_mask
_dr_ste_build_eth_l2_src_des_bit_mask:  ## @dr_ste_build_eth_l2_src_des_bit_mask
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	leaq	24(%rdi), %rbx
	testl	%esi, %esi
	cmoveq	%rdi, %rbx
	movq	_eth_l2_src_dst@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_dmac_47_16@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	movq	%rbx, %rcx
	movl	%edx, %r8d
	callq	_DR_STE_SET_MASK_V
	movl	(%r15), %edi
	movq	_dmac_15_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	movq	%rbx, %rcx
	movl	%edx, %r8d
	callq	_DR_STE_SET_MASK_V
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	jne	LBB0_2
## %bb.1:
	cmpl	$0, 4(%rbx)
	je	LBB0_3
LBB0_2:
	movq	_ste_eth_l2_src_dst@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_smac_47_32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	sarl	$16, %ecx
	movq	%r14, %rsi
	callq	_MLX5_SET
	movl	(%r12), %edi
	movq	_smac_31_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	shll	$16, %ecx
	orl	4(%rbx), %ecx
	movq	%r14, %rsi
	callq	_MLX5_SET
	movq	$0, (%rbx)
LBB0_3:
	movl	(%r15), %edi
	movq	_first_vlan_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_first_vid@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rsi
	movq	%rbx, %rcx
	callq	_DR_STE_SET_MASK_V
	movl	(%r15), %edi
	movq	_first_cfi@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	movq	%rbx, %rcx
	movl	%edx, %r8d
	callq	_DR_STE_SET_MASK_V
	movl	(%r15), %edi
	movq	_first_priority@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_first_prio@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rsi
	movq	%rbx, %rcx
	callq	_DR_STE_SET_MASK_V
	movl	(%r15), %edi
	movq	_l3_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ip_version@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rsi
	movq	%rbx, %rcx
	callq	_DR_STE_SET_MASK
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.7:
	movq	_ste_eth_l2_src_dst@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_first_vlan_qualifier@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	movl	$-1, %ecx
	callq	_MLX5_SET
	movq	$0, 16(%rbx)
	cmpq	$0, 8(%rbx)
	jne	LBB0_6
## %bb.8:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_4:
	xorl	%r15d, %r15d
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.5:
	movq	_ste_eth_l2_src_dst@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_first_vlan_qualifier@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	movl	$-1, %ecx
	callq	_MLX5_SET
	movq	$0, 8(%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_eth_l2_src_dst,4,2             ## @eth_l2_src_dst
	.comm	_dmac_47_16,4,2                 ## @dmac_47_16
	.comm	_dmac_15_0,4,2                  ## @dmac_15_0
	.comm	_ste_eth_l2_src_dst,4,2         ## @ste_eth_l2_src_dst
	.comm	_smac_47_32,4,2                 ## @smac_47_32
	.comm	_smac_31_0,4,2                  ## @smac_31_0
	.comm	_first_vlan_id,4,2              ## @first_vlan_id
	.comm	_first_vid,4,2                  ## @first_vid
	.comm	_first_cfi,4,2                  ## @first_cfi
	.comm	_first_priority,4,2             ## @first_priority
	.comm	_first_prio,4,2                 ## @first_prio
	.comm	_l3_type,4,2                    ## @l3_type
	.comm	_ip_version,4,2                 ## @ip_version
	.comm	_first_vlan_qualifier,4,2       ## @first_vlan_qualifier
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid c/svlan mask configuration\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dr_ste_build_eth_l2_src_des_bit_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dr_ste_build_eth_l2_src_des_bit_mask
_dr_ste_build_eth_l2_src_des_bit_mask:  ; @dr_ste_build_eth_l2_src_des_bit_mask
	.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
	mov	x20, x2
	add	x8, x0, #24
	cmp	w1, #0
	csel	x19, x0, x8, eq
Lloh0:
	adrp	x21, _eth_l2_src_dst@GOTPAGE
Lloh1:
	ldr	x21, [x21, _eth_l2_src_dst@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _dmac_47_16@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dmac_47_16@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x20
	mov	x3, x19
	mov	x4, x2
	bl	_DR_STE_SET_MASK_V
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _dmac_15_0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dmac_15_0@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, x20
	mov	x3, x19
	mov	x4, x2
	bl	_DR_STE_SET_MASK_V
	ldr	w8, [x19]
Lloh8:
	adrp	x22, _ste_eth_l2_src_dst@GOTPAGE
Lloh9:
	ldr	x22, [x22, _ste_eth_l2_src_dst@GOTPAGEOFF]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w9, [x19, #4]
	cbz	w9, LBB0_3
LBB0_2:
	ldr	w0, [x22]
Lloh10:
	adrp	x9, _smac_47_32@GOTPAGE
Lloh11:
	ldr	x9, [x9, _smac_47_32@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x9]
	asr	w3, w8, #16
	mov	x1, x20
	bl	_MLX5_SET
	ldr	w0, [x22]
Lloh13:
	adrp	x8, _smac_31_0@GOTPAGE
Lloh14:
	ldr	x8, [x8, _smac_31_0@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldp	w8, w9, [x19]
	orr	w3, w9, w8, lsl #16
	mov	x1, x20
	bl	_MLX5_SET
	str	xzr, [x19]
LBB0_3:
	ldr	w0, [x21]
Lloh16:
	adrp	x8, _first_vlan_id@GOTPAGE
Lloh17:
	ldr	x8, [x8, _first_vlan_id@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _first_vid@GOTPAGE
Lloh20:
	ldr	x8, [x8, _first_vid@GOTPAGEOFF]
Lloh21:
	ldr	w4, [x8]
	mov	x1, x20
	mov	x3, x19
	bl	_DR_STE_SET_MASK_V
	ldr	w0, [x21]
Lloh22:
	adrp	x8, _first_cfi@GOTPAGE
Lloh23:
	ldr	x8, [x8, _first_cfi@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x1, x20
	mov	x3, x19
	mov	x4, x2
	bl	_DR_STE_SET_MASK_V
	ldr	w0, [x21]
Lloh25:
	adrp	x8, _first_priority@GOTPAGE
Lloh26:
	ldr	x8, [x8, _first_priority@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x8, _first_prio@GOTPAGE
Lloh29:
	ldr	x8, [x8, _first_prio@GOTPAGEOFF]
Lloh30:
	ldr	w4, [x8]
	mov	x1, x20
	mov	x3, x19
	bl	_DR_STE_SET_MASK_V
	ldr	w0, [x21]
Lloh31:
	adrp	x8, _l3_type@GOTPAGE
Lloh32:
	ldr	x8, [x8, _l3_type@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x8, _ip_version@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ip_version@GOTPAGEOFF]
Lloh36:
	ldr	w4, [x8]
	mov	x1, x20
	mov	x3, x19
	bl	_DR_STE_SET_MASK
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x22]
Lloh37:
	adrp	x8, _first_vlan_qualifier@GOTPAGE
Lloh38:
	ldr	x8, [x8, _first_vlan_qualifier@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x1, x20
	mov	w3, #-1
	bl	_MLX5_SET
	str	xzr, [x19, #16]
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_7
	b	LBB0_8
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	w0, [x22]
Lloh40:
	adrp	x8, _first_vlan_qualifier@GOTPAGE
Lloh41:
	ldr	x8, [x8, _first_vlan_qualifier@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x1, x20
	mov	w3, #-1
	bl	_MLX5_SET
	str	xzr, [x19, #8]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
LBB0_7:
Lloh43:
	adrp	x0, l_.str@PAGE
Lloh44:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh45:
	adrp	x8, _EINVAL@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_eth_l2_src_dst,4,2             ; @eth_l2_src_dst
	.comm	_dmac_47_16,4,2                 ; @dmac_47_16
	.comm	_dmac_15_0,4,2                  ; @dmac_15_0
	.comm	_ste_eth_l2_src_dst,4,2         ; @ste_eth_l2_src_dst
	.comm	_smac_47_32,4,2                 ; @smac_47_32
	.comm	_smac_31_0,4,2                  ; @smac_31_0
	.comm	_first_vlan_id,4,2              ; @first_vlan_id
	.comm	_first_vid,4,2                  ; @first_vid
	.comm	_first_cfi,4,2                  ; @first_cfi
	.comm	_first_priority,4,2             ; @first_priority
	.comm	_first_prio,4,2                 ; @first_prio
	.comm	_l3_type,4,2                    ; @l3_type
	.comm	_ip_version,4,2                 ; @ip_version
	.comm	_first_vlan_qualifier,4,2       ; @first_vlan_qualifier
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid c/svlan mask configuration\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dr_ste_build_eth_l2_src_des_bit_mask
.subsections_via_symbols
