	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dr_actions_convert_modify_header
_dr_actions_convert_modify_header:      ## @dr_actions_convert_modify_header
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %rcx
	movq	_MLX5DR_ACTION_MDFY_HW_FLD_RESERVED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_MLX5DR_ACTION_MDFY_HW_HDR_L3_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_MLX5DR_ACTION_MDFY_HW_HDR_L4_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$0, (%rcx)
	movl	$0, %r14d
	testl	%edx, %edx
	jle	LBB0_19
## %bb.1:
	movl	%edx, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-64(%rbp), %eax
	movslq	%r14d, %r14
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r14,4)
	incl	%r14d
	addq	$4, %rbx
	decq	%r13
	je	LBB0_19
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_dr_action_modify_check_field_limitation
	testl	%eax, %eax
	jne	LBB0_24
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rbp), %rax
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_dr_action_modify_check_is_ttl_modify
	movq	16(%rbp), %rcx
	movl	%eax, (%rcx)
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	leaq	-64(%rbp), %rdx
	leaq	-88(%rbp), %rcx
	callq	_dr_action_modify_sw_to_hw
	testl	%eax, %eax
	jne	LBB0_24
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rax
	movl	(%rax), %ecx
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r15d, %ecx
	jne	LBB0_20
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%ecx, %ecx
	cmovnel	%ecx, %r15d
	movl	4(%rax), %ecx
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r12d, %ecx
	jne	LBB0_21
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%ecx, %ecx
	cmovnel	%ecx, %r12d
	movq	8(%rax), %rax
	testb	$1, %r14b
	je	LBB0_2
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rax, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_2
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	leal	(%r14,%r13), %eax
	incl	%eax
	cmpl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	incl	%r14d
	jmp	LBB0_3
LBB0_19:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_20:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_23
LBB0_21:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_23
LBB0_22:
	leaq	L_.str.2(%rip), %rsi
LBB0_23:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlx5dr_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_24:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5DR_ACTION_MDFY_HW_FLD_RESERVED,8,3 ## @MLX5DR_ACTION_MDFY_HW_FLD_RESERVED
	.comm	_MLX5DR_ACTION_MDFY_HW_HDR_L3_NONE,4,2 ## @MLX5DR_ACTION_MDFY_HW_HDR_L3_NONE
	.comm	_MLX5DR_ACTION_MDFY_HW_HDR_L4_NONE,4,2 ## @MLX5DR_ACTION_MDFY_HW_HDR_L4_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Action list can't support two different L3 types\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Action list can't support two different L4 types\n"

L_.str.2:                               ## @.str.2
	.asciz	"Modify header action number exceeds HW limit\n"

	.no_dead_strip	_dr_actions_convert_modify_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dr_actions_convert_modify_header
_dr_actions_convert_modify_header:      ; @dr_actions_convert_modify_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x5, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _MLX5DR_ACTION_MDFY_HW_FLD_RESERVED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5DR_ACTION_MDFY_HW_FLD_RESERVED@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
Lloh3:
	adrp	x8, _MLX5DR_ACTION_MDFY_HW_HDR_L3_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5DR_ACTION_MDFY_HW_HDR_L3_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
Lloh6:
	adrp	x8, _MLX5DR_ACTION_MDFY_HW_HDR_L4_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX5DR_ACTION_MDFY_HW_HDR_L4_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w27, [x8]
	str	wzr, [x6]
	cmp	w2, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x21, x6
	mov	x22, x4
	mov	x23, x3
	mov	x24, x1
	mov	x20, x0
	mov	w28, #0
	mov	w19, w2
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #20]
	str	w8, [x22, w28, sxtw #2]
	add	w28, w28, #1
	add	x23, x23, #4
	subs	x19, x19, #1
	b.eq	LBB0_17
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_dr_action_modify_check_field_limitation
	cbnz	w0, LBB0_22
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	cbnz	w8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_dr_action_modify_check_is_ttl_modify
	str	w0, [x21]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #20
	add	x3, sp, #24
	mov	x0, x20
	mov	x1, x23
	bl	_dr_action_modify_sw_to_hw
	cbnz	w0, LBB0_22
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #24]
	ldr	w9, [x8]
	cbz	w25, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #0
	ccmp	w9, w25, #4, ne
	b.ne	LBB0_18
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #0
	csel	w25, w25, w9, eq
	ldr	w9, [x8, #4]
	cbz	w27, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #0
	ccmp	w9, w27, #4, ne
	b.ne	LBB0_19
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #0
	csel	w27, w27, w9, eq
	ldr	x8, [x8, #8]
	tbz	w28, #0, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x26, x8
	b.ne	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w19, w28
	add	w8, w8, #1
	cmp	w8, w24
	b.ge	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w28, w28, #1
	b	LBB0_3
LBB0_16:
	mov	w28, #0
LBB0_17:
	mov	w0, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	w28, [x8]
	b	LBB0_22
LBB0_18:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_21
LBB0_19:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_21:
	mov	x0, x20
	bl	_mlx5dr_dbg
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_22:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5DR_ACTION_MDFY_HW_FLD_RESERVED,8,3 ; @MLX5DR_ACTION_MDFY_HW_FLD_RESERVED
	.comm	_MLX5DR_ACTION_MDFY_HW_HDR_L3_NONE,4,2 ; @MLX5DR_ACTION_MDFY_HW_HDR_L3_NONE
	.comm	_MLX5DR_ACTION_MDFY_HW_HDR_L4_NONE,4,2 ; @MLX5DR_ACTION_MDFY_HW_HDR_L4_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Action list can't support two different L3 types\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Action list can't support two different L4 types\n"

l_.str.2:                               ; @.str.2
	.asciz	"Modify header action number exceeds HW limit\n"

	.no_dead_strip	_dr_actions_convert_modify_header
.subsections_via_symbols
