	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dr_action_verify_reformat_params
_dr_action_verify_reformat_params:      ## @dr_action_verify_reformat_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rcx, %rcx
	sete	%al
	testq	%rdx, %rdx
	setne	%cl
	cmpb	%al, %cl
	je	LBB0_2
## %bb.1:
	movq	_DR_ACTION_TYP_L2_TO_TNL_L3@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%edi, %ecx
	jae	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rax
LBB0_12:
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_mlx5dr_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	popq	%rbp
	retq
LBB0_3:
	movq	(%rsi), %r9
	movq	_MLX5DR_DOMAIN_TYPE_FDB@GOTPCREL(%rip), %r8
	xorl	%eax, %eax
	cmpq	(%r8), %r9
	je	LBB0_13
## %bb.4:
	movq	_MLX5DR_DOMAIN_TYPE_NIC_RX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r9
	jne	LBB0_8
## %bb.5:
	movq	_DR_ACTION_TYP_TNL_L2_TO_L2@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	je	LBB0_13
## %bb.6:
	movq	_DR_ACTION_TYP_TNL_L3_TO_L2@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	je	LBB0_13
## %bb.7:
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movq	_MLX5DR_DOMAIN_TYPE_NIC_TX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r9
	jne	LBB0_13
## %bb.9:
	movq	_DR_ACTION_TYP_L2_TO_TNL_L2@GOTPCREL(%rip), %rdx
	cmpl	%edi, (%rdx)
	je	LBB0_13
## %bb.10:
	cmpl	%edi, %ecx
	je	LBB0_13
## %bb.11:
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_DR_ACTION_TYP_L2_TO_TNL_L3,4,2 ## @DR_ACTION_TYP_L2_TO_TNL_L3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid reformat parameter!\n"

	.comm	_MLX5DR_DOMAIN_TYPE_FDB,8,3     ## @MLX5DR_DOMAIN_TYPE_FDB
	.comm	_MLX5DR_DOMAIN_TYPE_NIC_RX,8,3  ## @MLX5DR_DOMAIN_TYPE_NIC_RX
	.comm	_DR_ACTION_TYP_TNL_L2_TO_L2,4,2 ## @DR_ACTION_TYP_TNL_L2_TO_L2
	.comm	_DR_ACTION_TYP_TNL_L3_TO_L2,4,2 ## @DR_ACTION_TYP_TNL_L3_TO_L2
L_.str.1:                               ## @.str.1
	.asciz	"Action reformat type not support on RX domain\n"

	.comm	_MLX5DR_DOMAIN_TYPE_NIC_TX,8,3  ## @MLX5DR_DOMAIN_TYPE_NIC_TX
	.comm	_DR_ACTION_TYP_L2_TO_TNL_L2,4,2 ## @DR_ACTION_TYP_L2_TO_TNL_L2
L_.str.2:                               ## @.str.2
	.asciz	"Action reformat type not support on TX domain\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dr_action_verify_reformat_params
_dr_action_verify_reformat_params:      ; @dr_action_verify_reformat_params
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	x3, #0
	cset	w8, eq
	cmp	x2, #0
	cset	w9, ne
	cmp	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _DR_ACTION_TYP_L2_TO_TNL_L3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DR_ACTION_TYP_L2_TO_TNL_L3@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.hs	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x1
	mov	x1, x8
	bl	_mlx5dr_dbg
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x9, [x1]
Lloh8:
	adrp	x10, _MLX5DR_DOMAIN_TYPE_FDB@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MLX5DR_DOMAIN_TYPE_FDB@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_9
; %bb.5:
Lloh11:
	adrp	x10, _MLX5DR_DOMAIN_TYPE_NIC_RX@GOTPAGE
Lloh12:
	ldr	x10, [x10, _MLX5DR_DOMAIN_TYPE_NIC_RX@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.6:
Lloh14:
	adrp	x8, _DR_ACTION_TYP_TNL_L2_TO_L2@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DR_ACTION_TYP_TNL_L2_TO_L2@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _DR_ACTION_TYP_TNL_L3_TO_L2@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DR_ACTION_TYP_TNL_L3_TO_L2@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	b.eq	LBB0_9
; %bb.7:
Lloh20:
	adrp	x8, l_.str.1@PAGE
Lloh21:
	add	x8, x8, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_8:
Lloh22:
	adrp	x10, _MLX5DR_DOMAIN_TYPE_NIC_TX@GOTPAGE
Lloh23:
	ldr	x10, [x10, _MLX5DR_DOMAIN_TYPE_NIC_TX@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
Lloh25:
	adrp	x11, _DR_ACTION_TYP_L2_TO_TNL_L2@GOTPAGE
Lloh26:
	ldr	x11, [x11, _DR_ACTION_TYP_L2_TO_TNL_L2@GOTPAGEOFF]
Lloh27:
	ldr	w11, [x11]
	cmp	x9, x10
	ccmp	w11, w0, #4, eq
	ccmp	w8, w0, #4, ne
	b.ne	LBB0_10
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh28:
	adrp	x8, l_.str.2@PAGE
Lloh29:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_DR_ACTION_TYP_L2_TO_TNL_L3,4,2 ; @DR_ACTION_TYP_L2_TO_TNL_L3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid reformat parameter!\n"

	.comm	_MLX5DR_DOMAIN_TYPE_FDB,8,3     ; @MLX5DR_DOMAIN_TYPE_FDB
	.comm	_MLX5DR_DOMAIN_TYPE_NIC_RX,8,3  ; @MLX5DR_DOMAIN_TYPE_NIC_RX
	.comm	_DR_ACTION_TYP_TNL_L2_TO_L2,4,2 ; @DR_ACTION_TYP_TNL_L2_TO_L2
	.comm	_DR_ACTION_TYP_TNL_L3_TO_L2,4,2 ; @DR_ACTION_TYP_TNL_L3_TO_L2
l_.str.1:                               ; @.str.1
	.asciz	"Action reformat type not support on RX domain\n"

	.comm	_MLX5DR_DOMAIN_TYPE_NIC_TX,8,3  ; @MLX5DR_DOMAIN_TYPE_NIC_TX
	.comm	_DR_ACTION_TYP_L2_TO_TNL_L2,4,2 ; @DR_ACTION_TYP_L2_TO_TNL_L2
l_.str.2:                               ; @.str.2
	.asciz	"Action reformat type not support on TX domain\n"

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