	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dr_fw_create_recalc_cs_ft  ## -- Begin function mlx5dr_fw_create_recalc_cs_ft
	.p2align	4, 0x90
_mlx5dr_fw_create_recalc_cs_ft:         ## @mlx5dr_fw_create_recalc_cs_ft
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	movl	(%r14), %edi
	movq	_MLX5_FLOW_TABLE_TYPE_FDB@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	8(%r14), %r8
	decq	%r8
	subq	$8, %rsp
	leaq	-48(%rbp), %rax
	leaq	-80(%rbp), %r10
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	pushq	$1
	callq	_mlx5dr_cmd_create_flow_table
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mlx5dr_err
	jmp	LBB0_11
LBB0_3:
	movl	(%r14), %edi
	movl	(%r13), %esi
	movq	-48(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	_mlx5dr_cmd_create_empty_flow_group
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mlx5dr_err
	jmp	LBB0_10
LBB0_5:
	movq	$0, -72(%rbp)
	movq	_set_action_in@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_action_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_ACTION_TYPE_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-72(%rbp), %r12
	movq	%r12, %rsi
	callq	_MLX5_SET
	movq	_set_action_in@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_field@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_ACTION_IN_FIELD_OUT_IP_TTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	callq	_MLX5_SET
	movl	(%r14), %edi
	movl	(%r13), %esi
	leaq	-56(%rbp), %r8
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_mlx5dr_cmd_alloc_modify_header
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mlx5dr_err
	jmp	LBB0_9
LBB0_7:
	movl	(%r14), %edi
	movl	(%r13), %esi
	movq	-48(%rbp), %rdx
	movq	-64(%rbp), %rcx
	movq	-56(%rbp), %r8
	movq	%r15, %r9
	callq	_mlx5dr_cmd_set_fte_modify_and_vport
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mlx5dr_err
	movl	(%r14), %edi
	movq	-56(%rbp), %rsi
	callq	_mlx5dr_cmd_dealloc_modify_header
LBB0_9:
	movl	(%r14), %edi
	movl	(%r13), %esi
	movq	-48(%rbp), %rdx
	movq	-64(%rbp), %rcx
	callq	_mlx5dr_cmd_destroy_flow_group
LBB0_10:
	movl	(%r14), %edi
	movq	-48(%rbp), %rsi
	movl	(%r13), %edx
	callq	_mlx5dr_cmd_destroy_flow_table
LBB0_11:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	-56(%rbp), %rax
	movq	%rax, 24(%rbx)
	movq	-80(%rbp), %rax
	movq	%rax, 16(%rbx)
	movq	-48(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	-64(%rbp), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MLX5_FLOW_TABLE_TYPE_FDB,4,2   ## @MLX5_FLOW_TABLE_TYPE_FDB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed creating TTL W/A FW flow table %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed creating TTL W/A FW flow group %d\n"

	.comm	_set_action_in,4,2              ## @set_action_in
	.comm	_action_type,4,2                ## @action_type
	.comm	_MLX5_ACTION_TYPE_ADD,4,2       ## @MLX5_ACTION_TYPE_ADD
	.comm	_field,4,2                      ## @field
	.comm	_MLX5_ACTION_IN_FIELD_OUT_IP_TTL,4,2 ## @MLX5_ACTION_IN_FIELD_OUT_IP_TTL
L_.str.2:                               ## @.str.2
	.asciz	"Failed modify header TTL %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed setting TTL W/A flow table entry %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dr_fw_create_recalc_cs_ft  ; -- Begin function mlx5dr_fw_create_recalc_cs_ft
	.p2align	2
_mlx5dr_fw_create_recalc_cs_ft:         ; @mlx5dr_fw_create_recalc_cs_ft
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.1:
	ldr	w0, [x20]
Lloh3:
	adrp	x22, _MLX5_FLOW_TABLE_TYPE_FDB@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MLX5_FLOW_TABLE_TYPE_FDB@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	x8, [x20, #8]
	sub	x4, x8, #1
	add	x8, sp, #40
	str	x8, [sp]
	add	x7, sp, #16
	mov	w2, #0
	mov	w3, #0
	mov	w5, #0
	mov	w6, #1
	bl	_mlx5dr_cmd_create_flow_table
	cbz	w0, LBB0_3
; %bb.2:
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mlx5dr_err
	b	LBB0_11
LBB0_3:
	ldr	w0, [x20]
	ldr	w1, [x22]
	ldr	x2, [sp, #40]
	add	x3, sp, #32
	bl	_mlx5dr_cmd_create_empty_flow_group
	cbz	w0, LBB0_5
; %bb.4:
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_mlx5dr_err
	b	LBB0_10
LBB0_5:
	str	xzr, [sp, #8]
Lloh9:
	adrp	x23, _set_action_in@GOTPAGE
Lloh10:
	ldr	x23, [x23, _set_action_in@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh11:
	adrp	x8, _action_type@GOTPAGE
Lloh12:
	ldr	x8, [x8, _action_type@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _MLX5_ACTION_TYPE_ADD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MLX5_ACTION_TYPE_ADD@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	add	x1, sp, #8
	bl	_MLX5_SET
	ldr	w0, [x23]
Lloh17:
	adrp	x8, _field@GOTPAGE
Lloh18:
	ldr	x8, [x8, _field@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _MLX5_ACTION_IN_FIELD_OUT_IP_TTL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MLX5_ACTION_IN_FIELD_OUT_IP_TTL@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	add	x1, sp, #8
	bl	_MLX5_SET
	ldr	w0, [x20]
	ldr	w1, [x22]
	add	x3, sp, #8
	add	x4, sp, #24
	mov	w2, #1
	bl	_mlx5dr_cmd_alloc_modify_header
	cbz	w0, LBB0_7
; %bb.6:
	mov	x2, x0
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_mlx5dr_err
	b	LBB0_9
LBB0_7:
	ldr	w0, [x20]
	ldr	w1, [x22]
	ldp	x3, x2, [sp, #32]
	ldr	x4, [sp, #24]
	mov	x5, x21
	bl	_mlx5dr_cmd_set_fte_modify_and_vport
	cbz	w0, LBB0_13
; %bb.8:
	mov	x2, x0
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_mlx5dr_err
	ldr	w0, [x20]
	ldr	x1, [sp, #24]
	bl	_mlx5dr_cmd_dealloc_modify_header
LBB0_9:
	ldr	w0, [x20]
	ldr	w1, [x22]
	ldp	x3, x2, [sp, #32]
	bl	_mlx5dr_cmd_destroy_flow_group
LBB0_10:
	ldr	w0, [x20]
	ldr	x1, [sp, #40]
	ldr	w2, [x22]
	bl	_mlx5dr_cmd_destroy_flow_table
LBB0_11:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	ldp	x9, x8, [sp, #16]
	stp	x9, x8, [x19, #16]
	ldp	x9, x8, [sp, #32]
	stp	x9, x8, [x19]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MLX5_FLOW_TABLE_TYPE_FDB,4,2   ; @MLX5_FLOW_TABLE_TYPE_FDB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed creating TTL W/A FW flow table %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed creating TTL W/A FW flow group %d\n"

	.comm	_set_action_in,4,2              ; @set_action_in
	.comm	_action_type,4,2                ; @action_type
	.comm	_MLX5_ACTION_TYPE_ADD,4,2       ; @MLX5_ACTION_TYPE_ADD
	.comm	_field,4,2                      ; @field
	.comm	_MLX5_ACTION_IN_FIELD_OUT_IP_TTL,4,2 ; @MLX5_ACTION_IN_FIELD_OUT_IP_TTL
l_.str.2:                               ; @.str.2
	.asciz	"Failed modify header TTL %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed setting TTL W/A flow table entry %d\n"

.subsections_via_symbols
