	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_hairpin_create_indirect_tirs
_mlx5e_hairpin_create_indirect_tirs:    ## @mlx5e_hairpin_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
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_create_tir_in@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_DW
	movl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_MLX5E_NUM_INDIR_TIRS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_mlx5e_tirc_get_default_config
	movl	%eax, -56(%rbp)
	movq	_create_tir_in@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%r13, %rbx
	callq	_MLX5_ST_SZ_BYTES
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movl	(%rbx), %edi
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_MLX5_ADDR_OF
	movq	%rax, %rbx
	movq	_transport_domain@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%r15), %ecx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_MLX5_SET
	movq	_disp_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_TIRC_DISP_TYPE_INDIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_MLX5_SET
	movq	_indirect_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	12(%r15), %ecx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_MLX5_SET
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_mlx5e_build_indir_tir_ctx_hash
	movl	8(%r15), %ebx
	movq	_create_tir_in@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_BYTES
	movq	(%r15), %rcx
	addq	%r12, %rcx
	movl	%ebx, %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_mlx5_core_create_tir
	testl	%eax, %eax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	_MLX5E_NUM_INDIR_TIRS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r12
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_7:
	xorl	%r13d, %r13d
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %r13d
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_mlx5_core_warn
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %edi
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_mlx5_core_destroy_tir
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_5
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_create_tir_in,4,2              ## @create_tir_in
	.comm	_MLX5E_NUM_INDIR_TIRS,4,2       ## @MLX5E_NUM_INDIR_TIRS
	.comm	_ctx,4,2                        ## @ctx
	.comm	_transport_domain,4,2           ## @transport_domain
	.comm	_disp_type,4,2                  ## @disp_type
	.comm	_MLX5_TIRC_DISP_TYPE_INDIRECT,4,2 ## @MLX5_TIRC_DISP_TYPE_INDIRECT
	.comm	_indirect_table,4,2             ## @indirect_table
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"create indirect tirs failed, %d\n"

	.no_dead_strip	_mlx5e_hairpin_create_indirect_tirs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_hairpin_create_indirect_tirs
_mlx5e_hairpin_create_indirect_tirs:    ; @mlx5e_hairpin_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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x21, [x0, #24]
Lloh3:
	adrp	x24, _create_tir_in@GOTPAGE
Lloh4:
	ldr	x24, [x24, _create_tir_in@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_MLX5_ST_SZ_DW
	mov	w8, w0
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh7:
	adrp	x25, _MLX5E_NUM_INDIR_TIRS@GOTPAGE
Lloh8:
	ldr	x25, [x25, _MLX5E_NUM_INDIR_TIRS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x26, #0
	mov	x20, #0
Lloh9:
	adrp	x28, _MLX5_TIRC_DISP_TYPE_INDIRECT@GOTPAGE
Lloh10:
	ldr	x28, [x28, _MLX5_TIRC_DISP_TYPE_INDIRECT@GOTPAGEOFF]
Lloh11:
	adrp	x27, _indirect_table@GOTPAGE
Lloh12:
	ldr	x27, [x27, _indirect_table@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_mlx5e_tirc_get_default_config
	stur	w0, [x29, #-96]
	ldr	w0, [x24]
	bl	_MLX5_ST_SZ_BYTES
	mov	x2, x0
	mov	x0, x22
	mov	w1, #0
	bl	_memset
	ldr	w0, [x24]
Lloh13:
	adrp	x8, _ctx@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ctx@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_MLX5_ADDR_OF
	mov	x23, x0
Lloh16:
	adrp	x8, _transport_domain@GOTPAGE
Lloh17:
	ldr	x8, [x8, _transport_domain@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	ldr	w3, [x19, #16]
	mov	x1, x0
	bl	_MLX5_SET
Lloh19:
	adrp	x8, _disp_type@GOTPAGE
Lloh20:
	ldr	x8, [x8, _disp_type@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	ldr	w3, [x28]
	mov	x0, x23
	mov	x1, x23
	bl	_MLX5_SET
	ldr	w2, [x27]
	ldr	w3, [x19, #12]
	mov	x0, x23
	mov	x1, x23
	bl	_MLX5_SET
	sub	x1, x29, #96
	mov	x0, x21
	mov	x2, x23
	mov	w3, #0
	bl	_mlx5e_build_indir_tir_ctx_hash
	ldr	w23, [x19, #8]
	ldr	w0, [x24]
	bl	_MLX5_ST_SZ_BYTES
	mov	x2, x0
	ldr	x8, [x19]
	add	x3, x8, x26
	mov	x0, x23
	mov	x1, x22
	bl	_mlx5_core_create_tir
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x25]
	add	x26, x26, #4
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w23, #0
	b	LBB0_8
LBB0_5:
	mov	x23, x0
	ldr	w0, [x19, #8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_mlx5_core_warn
	cbz	w20, LBB0_8
; %bb.6:
	mov	x21, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	w1, [x8, x21, lsl #2]
	bl	_mlx5_core_destroy_tir
	add	x21, x21, #1
	cmp	x20, x21
	b.ne	LBB0_7
LBB0_8:
	ldur	x8, [x29, #-88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x23
	sub	sp, x29, #80
	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_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_create_tir_in,4,2              ; @create_tir_in
	.comm	_MLX5E_NUM_INDIR_TIRS,4,2       ; @MLX5E_NUM_INDIR_TIRS
	.comm	_ctx,4,2                        ; @ctx
	.comm	_transport_domain,4,2           ; @transport_domain
	.comm	_disp_type,4,2                  ; @disp_type
	.comm	_MLX5_TIRC_DISP_TYPE_INDIRECT,4,2 ; @MLX5_TIRC_DISP_TYPE_INDIRECT
	.comm	_indirect_table,4,2             ; @indirect_table
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create indirect tirs failed, %d\n"

	.no_dead_strip	_mlx5e_hairpin_create_indirect_tirs
.subsections_via_symbols
