	.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_tag
_dr_ste_build_eth_l2_src_des_tag:       ## @dr_ste_build_eth_l2_src_des_tag
	.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
	cmpq	$0, (%rsi)
	leaq	32(%rdi), %rbx
	cmoveq	%rdi, %rbx
	movq	(%rdx), %r14
	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_TAG
	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_TAG
	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:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	_IP_VERSION_IPV4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_STE_IPV4@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_IP_VERSION_IPV6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.7:
	movq	_STE_IPV6@GOTPCREL(%rip), %rax
LBB0_8:
	movq	_ste_eth_l2_src_dst@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_l3_type@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_MLX5_SET
	movq	$0, 8(%rbx)
LBB0_9:
	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_TAG
	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_TAG
	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_TAG
	cmpq	$0, 24(%rbx)
	je	LBB0_11
## %bb.10:
	movq	_ste_eth_l2_src_dst@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_first_vlan_qualifier@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DR_STE_CVLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_MLX5_SET
	movq	$0, 24(%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_11:
	xorl	%r15d, %r15d
	cmpq	$0, 16(%rbx)
	je	LBB0_13
## %bb.12:
	movq	_ste_eth_l2_src_dst@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_first_vlan_qualifier@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DR_STE_SVLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_MLX5_SET
	movq	$0, 16(%rbx)
	jmp	LBB0_13
LBB0_14:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_13:
	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	_IP_VERSION_IPV4,8,3            ## @IP_VERSION_IPV4
	.comm	_l3_type,4,2                    ## @l3_type
	.comm	_STE_IPV4,4,2                   ## @STE_IPV4
	.comm	_IP_VERSION_IPV6,8,3            ## @IP_VERSION_IPV6
	.comm	_STE_IPV6,4,2                   ## @STE_IPV6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported ip_version value\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.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	_first_vlan_qualifier,4,2       ## @first_vlan_qualifier
	.comm	_DR_STE_CVLAN,4,2               ## @DR_STE_CVLAN
	.comm	_DR_STE_SVLAN,4,2               ## @DR_STE_SVLAN
	.no_dead_strip	_dr_ste_build_eth_l2_src_des_tag
.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_tag
_dr_ste_build_eth_l2_src_des_tag:       ; @dr_ste_build_eth_l2_src_des_tag
	.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]
	add	x9, x0, #32
	cmp	x8, #0
	csel	x19, x0, x9, eq
	ldr	x20, [x2]
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_TAG
	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_TAG
	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	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.4:
Lloh16:
	adrp	x9, _IP_VERSION_IPV4@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IP_VERSION_IPV4@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh19:
	adrp	x8, _STE_IPV4@GOTPAGE
Lloh20:
	ldr	x8, [x8, _STE_IPV4@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh21:
	adrp	x9, _IP_VERSION_IPV6@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IP_VERSION_IPV6@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.7:
Lloh24:
	adrp	x8, _STE_IPV6@GOTPAGE
Lloh25:
	ldr	x8, [x8, _STE_IPV6@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x22]
Lloh26:
	adrp	x9, _l3_type@GOTPAGE
Lloh27:
	ldr	x9, [x9, _l3_type@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x9]
	ldr	w3, [x8]
	mov	x1, x20
	bl	_MLX5_SET
	str	xzr, [x19, #8]
LBB0_9:
	ldr	w0, [x21]
Lloh29:
	adrp	x8, _first_vlan_id@GOTPAGE
Lloh30:
	ldr	x8, [x8, _first_vlan_id@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x8, _first_vid@GOTPAGE
Lloh33:
	ldr	x8, [x8, _first_vid@GOTPAGEOFF]
Lloh34:
	ldr	w4, [x8]
	mov	x1, x20
	mov	x3, x19
	bl	_DR_STE_SET_TAG
	ldr	w0, [x21]
Lloh35:
	adrp	x8, _first_cfi@GOTPAGE
Lloh36:
	ldr	x8, [x8, _first_cfi@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x1, x20
	mov	x3, x19
	mov	x4, x2
	bl	_DR_STE_SET_TAG
	ldr	w0, [x21]
Lloh38:
	adrp	x8, _first_priority@GOTPAGE
Lloh39:
	ldr	x8, [x8, _first_priority@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
Lloh41:
	adrp	x8, _first_prio@GOTPAGE
Lloh42:
	ldr	x8, [x8, _first_prio@GOTPAGEOFF]
Lloh43:
	ldr	w4, [x8]
	mov	x1, x20
	mov	x3, x19
	bl	_DR_STE_SET_TAG
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w0, [x22]
Lloh44:
	adrp	x8, _first_vlan_qualifier@GOTPAGE
Lloh45:
	ldr	x8, [x8, _first_vlan_qualifier@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
Lloh47:
	adrp	x8, _DR_STE_CVLAN@GOTPAGE
Lloh48:
	ldr	x8, [x8, _DR_STE_CVLAN@GOTPAGEOFF]
Lloh49:
	ldr	w3, [x8]
	mov	x1, x20
	bl	_MLX5_SET
	mov	w0, #0
	str	xzr, [x19, #24]
	b	LBB0_15
LBB0_11:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
; %bb.12:
	ldr	w0, [x22]
Lloh50:
	adrp	x8, _first_vlan_qualifier@GOTPAGE
Lloh51:
	ldr	x8, [x8, _first_vlan_qualifier@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
Lloh53:
	adrp	x8, _DR_STE_SVLAN@GOTPAGE
Lloh54:
	ldr	x8, [x8, _DR_STE_SVLAN@GOTPAGEOFF]
Lloh55:
	ldr	w3, [x8]
	mov	x1, x20
	bl	_MLX5_SET
	mov	w0, #0
	str	xzr, [x19, #16]
	b	LBB0_15
LBB0_13:
Lloh56:
	adrp	x0, l_.str@PAGE
Lloh57:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh58:
	adrp	x8, _EINVAL@GOTPAGE
Lloh59:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_14:
	mov	w0, #0
LBB0_15:
	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	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh56, Lloh57
	.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	_IP_VERSION_IPV4,8,3            ; @IP_VERSION_IPV4
	.comm	_l3_type,4,2                    ; @l3_type
	.comm	_STE_IPV4,4,2                   ; @STE_IPV4
	.comm	_IP_VERSION_IPV6,8,3            ; @IP_VERSION_IPV6
	.comm	_STE_IPV6,4,2                   ; @STE_IPV6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported ip_version value\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.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	_first_vlan_qualifier,4,2       ; @first_vlan_qualifier
	.comm	_DR_STE_CVLAN,4,2               ; @DR_STE_CVLAN
	.comm	_DR_STE_SVLAN,4,2               ; @DR_STE_SVLAN
	.no_dead_strip	_dr_ste_build_eth_l2_src_des_tag
.subsections_via_symbols
