	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_cmd_dr_packet_reformat_alloc
_mlx5_cmd_dr_packet_reformat_alloc:     ## @mlx5_cmd_dr_packet_reformat_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %eax
	movq	%rdi, %rbx
	leal	-128(%rax), %esi
	cmpl	$5, %esi
	jae	LBB0_3
## %bb.1:
	movq	%r9, %r14
	movq	8(%rbx), %rdi
	movslq	%esi, %rax
	leaq	l_switch.table.mlx5_cmd_dr_packet_reformat_alloc(%rip), %rsi
	movq	(%rsi,%rax,8), %rax
	movl	(%rax), %esi
	callq	_mlx5dr_action_create_packet_reformat
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx5_core_err
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_mlx5_core_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DR_ACTION_REFORMAT_TYP_L2_TO_TNL_L2,4,2 ## @DR_ACTION_REFORMAT_TYP_L2_TO_TNL_L2
	.comm	_DR_ACTION_REFORMAT_TYP_TNL_L3_TO_L2,4,2 ## @DR_ACTION_REFORMAT_TYP_TNL_L3_TO_L2
	.comm	_DR_ACTION_REFORMAT_TYP_L2_TO_TNL_L3,4,2 ## @DR_ACTION_REFORMAT_TYP_L2_TO_TNL_L3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Packet-reformat not supported(%d)\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"Failed allocating packet-reformat action\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mlx5_cmd_dr_packet_reformat_alloc
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.mlx5_cmd_dr_packet_reformat_alloc
l_switch.table.mlx5_cmd_dr_packet_reformat_alloc:
	.quad	_DR_ACTION_REFORMAT_TYP_TNL_L3_TO_L2
	.quad	_DR_ACTION_REFORMAT_TYP_L2_TO_TNL_L2
	.quad	_DR_ACTION_REFORMAT_TYP_L2_TO_TNL_L2
	.quad	_DR_ACTION_REFORMAT_TYP_L2_TO_TNL_L3
	.quad	_DR_ACTION_REFORMAT_TYP_L2_TO_TNL_L2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_cmd_dr_packet_reformat_alloc
_mlx5_cmd_dr_packet_reformat_alloc:     ; @mlx5_cmd_dr_packet_reformat_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x20, x0
	sub	w8, w1, #128
	cmp	w8, #5
	b.hs	LBB0_3
; %bb.1:
	mov	x19, x5
	ldr	x0, [x20, #8]
Lloh0:
	adrp	x9, l_switch.table.mlx5_cmd_dr_packet_reformat_alloc@PAGE
Lloh1:
	add	x9, x9, l_switch.table.mlx5_cmd_dr_packet_reformat_alloc@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w1, [x8]
	bl	_mlx5dr_action_create_packet_reformat
	cbz	x0, LBB0_4
; %bb.2:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_6
LBB0_3:
	ldr	w0, [x20]
	str	x1, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mlx5_core_err
Lloh4:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_mlx5_core_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DR_ACTION_REFORMAT_TYP_L2_TO_TNL_L2,4,2 ; @DR_ACTION_REFORMAT_TYP_L2_TO_TNL_L2
	.comm	_DR_ACTION_REFORMAT_TYP_TNL_L3_TO_L2,4,2 ; @DR_ACTION_REFORMAT_TYP_TNL_L3_TO_L2
	.comm	_DR_ACTION_REFORMAT_TYP_L2_TO_TNL_L3,4,2 ; @DR_ACTION_REFORMAT_TYP_L2_TO_TNL_L3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packet-reformat not supported(%d)\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"Failed allocating packet-reformat action\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mlx5_cmd_dr_packet_reformat_alloc
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.mlx5_cmd_dr_packet_reformat_alloc
l_switch.table.mlx5_cmd_dr_packet_reformat_alloc:
	.quad	_DR_ACTION_REFORMAT_TYP_TNL_L3_TO_L2
	.quad	_DR_ACTION_REFORMAT_TYP_L2_TO_TNL_L2
	.quad	_DR_ACTION_REFORMAT_TYP_L2_TO_TNL_L2
	.quad	_DR_ACTION_REFORMAT_TYP_L2_TO_TNL_L3
	.quad	_DR_ACTION_REFORMAT_TYP_L2_TO_TNL_L2

.subsections_via_symbols
