	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_create_direct_tirs       ## -- Begin function mlx5e_create_direct_tirs
	.p2align	4, 0x90
_mlx5e_create_direct_tirs:              ## @mlx5e_create_direct_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	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, -44(%rbp)                 ## 4-byte Spill
	callq	_kvzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r15
	cmpl	$0, (%r14)
	jle	LBB0_2
## %bb.4:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_memset
	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
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_mlx5e_build_direct_tir_ctx
	movl	4(%r14), %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_mlx5e_create_tir
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movslq	(%r14), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_5
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_11
LBB0_2:
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_7:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_mlx5_core_warn
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.8:
	addq	$-4, %rbx
	incq	%r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %edi
	movq	%rbx, %rsi
	callq	_mlx5e_destroy_tir
	decq	%r13
	addq	$-4, %rbx
	cmpq	$1, %r13
	jg	LBB0_9
LBB0_10:
	movq	%r15, %rdi
	callq	_kvfree
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_ctx,4,2                        ## @ctx
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"create 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_direct_tirs       ; -- Begin function mlx5e_create_direct_tirs
	.p2align	2
_mlx5e_create_direct_tirs:              ; @mlx5e_create_direct_tirs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _create_tir_in@GOTPAGE
Lloh1:
	ldr	x24, [x24, _create_tir_in@GOTPAGEOFF]
	ldr	w0, [x24]
	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_5
; %bb.1:
	mov	x20, x0
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x25, #0
Lloh5:
	adrp	x26, _ctx@GOTPAGE
Lloh6:
	ldr	x26, [x26, _ctx@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	ldr	w0, [x24]
	ldr	w2, [x26]
	mov	x1, x20
	bl	_MLX5_ADDR_OF
	mov	x2, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mlx5e_build_direct_tir_ctx
	ldr	w0, [x19, #4]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_mlx5e_create_tir
	mov	x23, x0
	bl	_unlikely
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x19]
	add	x21, x21, #4
	cmp	x25, x8
	b.lt	LBB0_3
	b	LBB0_10
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_11
LBB0_6:
	mov	w23, #0
	b	LBB0_10
LBB0_7:
	ldr	w0, [x19, #4]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_mlx5_core_warn
	cbz	w25, LBB0_10
; %bb.8:
	sub	x21, x21, #4
	add	x22, x25, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_mlx5e_destroy_tir
	sub	x22, x22, #1
	sub	x21, x21, #4
	cmp	x22, #1
	b.gt	LBB0_9
LBB0_10:
	mov	x0, x20
	bl	_kvfree
LBB0_11:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.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	_ctx,4,2                        ; @ctx
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create tirs failed, %d\n"

.subsections_via_symbols
