	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_create_indirect_tirs     ## -- Begin function mlx5e_create_indirect_tirs
	.p2align	4, 0x90
_mlx5e_create_indirect_tirs:            ## @mlx5e_create_indirect_tirs
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_create_tir_in@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	callq	_kvzalloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_MLX5E_NUM_INDIR_TIRS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_2
## %bb.4:
	movl	%r14d, -80(%rbp)                ## 4-byte Spill
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_memset
	movq	(%rbx), %r15
	addq	%r12, %r15
	movq	_create_tir_in@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_MLX5_ADDR_OF
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%rax, %rdx
	callq	_mlx5e_build_indir_tir_ctx
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_mlx5e_create_tir
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movq	_MLX5E_NUM_INDIR_TIRS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r12
	cmpq	%rax, %r13
	jl	LBB0_5
## %bb.8:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	-80(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	jne	LBB0_10
	jmp	LBB0_15
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_22
LBB0_2:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	je	LBB0_15
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	callq	_mlx5e_tunnel_inner_ft_supported
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	movq	_MLX5E_NUM_INDIR_TIRS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.12:
	movq	$-4, %r12
	xorl	%r14d, %r14d
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	movq	16(%rbx), %rax
	addq	%r12, %rax
	addq	$4, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_create_tir_in@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_MLX5_ADDR_OF
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_mlx5e_build_inner_indir_tir_ctx
	movl	8(%rbx), %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	%r13d, %ecx
	callq	_mlx5e_create_tir
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%r14
	movq	_MLX5E_NUM_INDIR_TIRS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r12
	cmpq	%rax, %r14
	jl	LBB0_13
LBB0_15:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_kvfree
	xorl	%r15d, %r15d
	jmp	LBB0_22
LBB0_6:
	movl	%eax, %r15d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	8(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_mlx5_core_warn
LBB0_18:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_21
## %bb.19:
	movl	%eax, %r14d
	leaq	-4(,%r14,4), %rbx
	incq	%r14
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %edi
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	callq	_mlx5e_destroy_tir
	decq	%r14
	addq	$-4, %rbx
	cmpq	$1, %r14
	ja	LBB0_20
LBB0_21:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_kvfree
LBB0_22:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	%eax, %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	callq	_mlx5_core_warn
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.23:
	incq	%r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %edi
	movq	16(%rbx), %rsi
	addq	%r12, %rsi
	callq	_mlx5e_destroy_tir
	decq	%r14
	addq	$-4, %r12
	cmpq	$1, %r14
	ja	LBB0_24
## %bb.25:
	movq	%rbx, %r12
	jmp	LBB0_18
LBB0_17:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_create_tir_in,4,2              ## @create_tir_in
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLX5E_NUM_INDIR_TIRS,4,2       ## @MLX5E_NUM_INDIR_TIRS
	.comm	_ctx,4,2                        ## @ctx
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"create indirect tirs failed, %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"create inner indirect tirs failed, %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_create_indirect_tirs     ; -- Begin function mlx5e_create_indirect_tirs
	.p2align	2
_mlx5e_create_indirect_tirs:            ; @mlx5e_create_indirect_tirs
	.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	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _create_tir_in@GOTPAGE
Lloh1:
	ldr	x25, [x25, _create_tir_in@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_MLX5_ST_SZ_BYTES
	mov	x22, x0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kvzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x26, _MLX5E_NUM_INDIR_TIRS@GOTPAGE
Lloh6:
	ldr	x26, [x26, _MLX5E_NUM_INDIR_TIRS@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x27, #0
	mov	x21, #0
Lloh7:
	adrp	x28, _ctx@GOTPAGE
Lloh8:
	ldr	x28, [x28, _ctx@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	ldr	x8, [x19]
	add	x23, x8, x27
	ldr	w0, [x25]
	ldr	w2, [x28]
	mov	x1, x20
	bl	_MLX5_ADDR_OF
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mlx5e_build_indir_tir_ctx
	ldr	w0, [x19, #8]
	mov	x1, x23
	mov	x2, x20
	mov	x3, x22
	bl	_mlx5e_create_tir
	cbnz	w0, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x26]
	add	x27, x27, #4
	cmp	x21, x8
	b.lt	LBB0_3
; %bb.5:
	cbnz	w24, LBB0_8
	b	LBB0_13
LBB0_6:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_19
LBB0_7:
	mov	w21, #0
	cbz	w24, LBB0_13
LBB0_8:
	ldr	w0, [x19, #8]
	bl	_mlx5e_tunnel_inner_ft_supported
	cbz	w0, LBB0_13
; %bb.9:
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x24, #0
	mov	x27, #-4
Lloh12:
	adrp	x28, _ctx@GOTPAGE
Lloh13:
	ldr	x28, [x28, _ctx@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	ldr	x8, [x19, #16]
	add	x8, x8, x27
	add	x23, x8, #4
	ldr	w0, [x25]
	ldr	w2, [x28]
	mov	x1, x20
	bl	_MLX5_ADDR_OF
	mov	x2, x0
	mov	x0, x19
	mov	x1, x24
	bl	_mlx5e_build_inner_indir_tir_ctx
	ldr	w0, [x19, #8]
	mov	x1, x23
	mov	x2, x20
	mov	x3, x22
	bl	_mlx5e_create_tir
	cbnz	w0, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x26]
	add	x27, x27, #4
	cmp	x24, x8
	b.lt	LBB0_11
LBB0_13:
	mov	x0, x20
	bl	_kvfree
	mov	w23, #0
	b	LBB0_19
LBB0_14:
	mov	x23, x0
	ldr	w0, [x19, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_mlx5_core_warn
LBB0_15:
	cmp	w21, #1
	b.lt	LBB0_18
; %bb.16:
	mov	w8, w21
	add	x21, x8, #1
	lsl	x8, x8, #2
	sub	x22, x8, #4
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	add	x1, x8, x22
	bl	_mlx5e_destroy_tir
	sub	x21, x21, #1
	sub	x22, x22, #4
	cmp	x21, #1
	b.hi	LBB0_17
LBB0_18:
	mov	x0, x20
	bl	_kvfree
LBB0_19:
	mov	x0, x23
	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
LBB0_20:
	mov	x23, x0
	ldr	w0, [x19, #8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_mlx5_core_warn
	cbz	w24, LBB0_15
; %bb.21:
	add	x22, x24, #1
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	ldr	x8, [x19, #16]
	add	x1, x8, x27
	bl	_mlx5e_destroy_tir
	sub	x22, x22, #1
	sub	x27, x27, #4
	cmp	x22, #1
	b.hi	LBB0_22
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_create_tir_in,4,2              ; @create_tir_in
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX5E_NUM_INDIR_TIRS,4,2       ; @MLX5E_NUM_INDIR_TIRS
	.comm	_ctx,4,2                        ; @ctx
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create indirect tirs failed, %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"create inner indirect tirs failed, %d\n"

.subsections_via_symbols
