	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dr_action_modify_sw_to_hw
_dr_action_modify_sw_to_hw:             ## @dr_action_modify_sw_to_hw
	.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	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_set_action_in@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_action_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_GET
	movq	%rax, %r12
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_MLX5_GET
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_MLX5_GET
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	movq	_field@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_MLX5_GET
	movq	%rax, %r15
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_MLX5_GET
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_dr_action_modify_get_hw_info
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r15d
	subl	4(%rax), %r15d
	incl	%r15d
	xorl	%r13d, %r13d
	cmpl	$129, %r12d
	je	LBB0_3
## %bb.6:
	cmpl	$128, %r12d
	jne	LBB0_12
## %bb.7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	movl	$32, %ecx
	cmovnel	%eax, %ecx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leal	(%rcx,%rbx), %eax
	cmpl	%r15d, %eax
	jle	LBB0_8
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_10:
	callq	_mlx5dr_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_3:
	movq	_MLX5DR_ACTION_MDFY_HW_OP_ADD@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	callq	_mlx5dr_info
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_5
LBB0_8:
	movq	_MLX5DR_ACTION_MDFY_HW_OP_SET@GOTPCREL(%rip), %rax
	movl	%ecx, %r15d
LBB0_4:
	movl	(%rax), %ecx
	movq	_dr_action_hw_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_opcode@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_MLX5_SET
	movq	_dr_action_hw_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_destination_field_code@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r14), %ecx
	movq	%r12, %rsi
	callq	_MLX5_SET
	movq	_dr_action_hw_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_destination_left_shifter@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	4(%r14), %ebx
	movq	%r12, %rsi
	movl	%ebx, %ecx
	callq	_MLX5_SET
	movq	_dr_action_hw_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_destination_length@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	$32, %r15d
	cmovel	%r13d, %r15d
	movq	%r12, %rsi
	movl	%r15d, %ecx
	callq	_MLX5_SET
	movq	_dr_action_hw_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_inline_data@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_MLX5_SET
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
LBB0_5:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_set_action_in,4,2              ## @set_action_in
	.comm	_action_type,4,2                ## @action_type
	.comm	_field,4,2                      ## @field
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Modify action invalid field given\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX5DR_ACTION_MDFY_HW_OP_SET,4,2 ## @MLX5DR_ACTION_MDFY_HW_OP_SET
L_.str.1:                               ## @.str.1
	.asciz	"Modify action length + offset exceeds limit\n"

	.comm	_MLX5DR_ACTION_MDFY_HW_OP_ADD,4,2 ## @MLX5DR_ACTION_MDFY_HW_OP_ADD
L_.str.2:                               ## @.str.2
	.asciz	"Unsupported action_type for modify action\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_dr_action_hw_set,4,2           ## @dr_action_hw_set
	.comm	_opcode,4,2                     ## @opcode
	.comm	_destination_field_code,4,2     ## @destination_field_code
	.comm	_destination_left_shifter,4,2   ## @destination_left_shifter
	.comm	_destination_length,4,2         ## @destination_length
	.comm	_inline_data,4,2                ## @inline_data
	.no_dead_strip	_dr_action_modify_sw_to_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dr_action_modify_sw_to_hw
_dr_action_modify_sw_to_hw:             ; @dr_action_modify_sw_to_hw
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x24, x0
Lloh0:
	adrp	x27, _set_action_in@GOTPAGE
Lloh1:
	ldr	x27, [x27, _set_action_in@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh2:
	adrp	x8, _action_type@GOTPAGE
Lloh3:
	ldr	x8, [x8, _action_type@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_MLX5_GET
	mov	x26, x0
	ldr	w0, [x27]
	mov	x1, x21
	bl	_MLX5_GET
	mov	x25, x0
	ldr	w0, [x27]
	mov	x1, x21
	bl	_MLX5_GET
	mov	x23, x0
	ldr	w0, [x27]
Lloh5:
	adrp	x8, _field@GOTPAGE
Lloh6:
	ldr	x8, [x8, _field@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_MLX5_GET
	mov	x22, x0
	ldr	w0, [x27]
	mov	x1, x21
	bl	_MLX5_GET
	mov	x21, x0
	mov	x0, x22
	bl	_dr_action_modify_get_hw_info
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	ldp	w8, w9, [x0]
	sub	w8, w8, w9
	add	w27, w8, #1
	cmp	w26, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w26, #128
	b.ne	LBB0_8
; %bb.3:
	mov	w8, #32
	cmp	w25, #0
	csel	w9, w8, w25, eq
	add	w8, w9, w23
	cmp	w8, w27
	b.le	LBB0_10
; %bb.4:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x24
	bl	_mlx5dr_dbg
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	w23, #0
Lloh14:
	adrp	x8, _MLX5DR_ACTION_MDFY_HW_OP_ADD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MLX5DR_ACTION_MDFY_HW_OP_ADD@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_mlx5dr_info
Lloh18:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_10:
Lloh20:
	adrp	x8, _MLX5DR_ACTION_MDFY_HW_OP_SET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MLX5DR_ACTION_MDFY_HW_OP_SET@GOTPAGEOFF]
	mov	x27, x9
LBB0_11:
	ldr	w3, [x8]
Lloh22:
	adrp	x24, _dr_action_hw_set@GOTPAGE
Lloh23:
	ldr	x24, [x24, _dr_action_hw_set@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh24:
	adrp	x8, _opcode@GOTPAGE
Lloh25:
	ldr	x8, [x8, _opcode@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_MLX5_SET
	ldr	w0, [x24]
Lloh27:
	adrp	x8, _destination_field_code@GOTPAGE
Lloh28:
	ldr	x8, [x8, _destination_field_code@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	ldr	w3, [x22, #8]
	mov	x1, x20
	bl	_MLX5_SET
	ldr	w0, [x24]
Lloh30:
	adrp	x8, _destination_left_shifter@GOTPAGE
Lloh31:
	ldr	x8, [x8, _destination_left_shifter@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	ldr	w8, [x22, #4]
	add	w3, w8, w23
	mov	x1, x20
	bl	_MLX5_SET
	ldr	w0, [x24]
Lloh33:
	adrp	x8, _destination_length@GOTPAGE
Lloh34:
	ldr	x8, [x8, _destination_length@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	cmp	w27, #32
	csel	w3, wzr, w27, eq
	mov	x1, x20
	bl	_MLX5_SET
	ldr	w0, [x24]
Lloh36:
	adrp	x8, _inline_data@GOTPAGE
Lloh37:
	ldr	x8, [x8, _inline_data@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x1, x20
	mov	x3, x21
	bl	_MLX5_SET
	mov	w0, #0
	str	x22, [x19]
LBB0_12:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_set_action_in,4,2              ; @set_action_in
	.comm	_action_type,4,2                ; @action_type
	.comm	_field,4,2                      ; @field
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Modify action invalid field given\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX5DR_ACTION_MDFY_HW_OP_SET,4,2 ; @MLX5DR_ACTION_MDFY_HW_OP_SET
l_.str.1:                               ; @.str.1
	.asciz	"Modify action length + offset exceeds limit\n"

	.comm	_MLX5DR_ACTION_MDFY_HW_OP_ADD,4,2 ; @MLX5DR_ACTION_MDFY_HW_OP_ADD
l_.str.2:                               ; @.str.2
	.asciz	"Unsupported action_type for modify action\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_dr_action_hw_set,4,2           ; @dr_action_hw_set
	.comm	_opcode,4,2                     ; @opcode
	.comm	_destination_field_code,4,2     ; @destination_field_code
	.comm	_destination_left_shifter,4,2   ; @destination_left_shifter
	.comm	_destination_length,4,2         ; @destination_length
	.comm	_inline_data,4,2                ; @inline_data
	.no_dead_strip	_dr_action_modify_sw_to_hw
.subsections_via_symbols
