	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dr_ste_htbl_alloc          ## -- Begin function mlx5dr_ste_htbl_alloc
	.p2align	4, 0x90
_mlx5dr_ste_htbl_alloc:                 ## @mlx5dr_ste_htbl_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_mlx5dr_icm_alloc_chunk
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %rbx
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	%rax, 48(%r14)
	movl	%r13d, 40(%r14)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 36(%r14)
	movq	24(%rbx), %rax
	movq	%rax, 24(%r14)
	movq	16(%rbx), %rax
	movq	%rax, 16(%r14)
	movq	8(%rbx), %rax
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	addq	$32, %rdi
	xorl	%esi, %esi
	callq	_refcount_set
	cmpl	$0, (%rbx)
	jle	LBB0_5
## %bb.3:
	movq	%rbx, %rcx
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %r12
	movq	24(%r14), %r14
	movq	_DR_STE_SIZE_REDUCED@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	%r15d, %rcx
	imulq	%rax, %rcx
	addq	16(%r12), %rcx
	movq	%rcx, 24(%r14,%r13,8)
	movq	%r12, 16(%r14,%r13,8)
	leaq	(%r14,%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rbx), %rdi
	addq	$8, %rdi
	xorl	%esi, %esi
	callq	_refcount_set
	leaq	(%r14,%rbx), %rdi
	addq	$4, %rdi
	movq	%r12, %r14
	callq	_INIT_LIST_HEAD
	movq	8(%r12), %rdi
	addq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_INIT_LIST_HEAD
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	incq	%r15
	movslq	(%rcx), %rax
	addq	$4, %r13
	addq	$32, %rbx
	cmpq	%rax, %r15
	jl	LBB0_4
LBB0_5:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_dr_ste_set_ctrl
	jmp	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	callq	_kfree
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DR_STE_SIZE_REDUCED,4,2        ## @DR_STE_SIZE_REDUCED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dr_ste_htbl_alloc          ; -- Begin function mlx5dr_ste_htbl_alloc
	.p2align	2
_mlx5dr_ste_htbl_alloc:                 ; @mlx5dr_ste_htbl_alloc
	.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	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_mlx5dr_icm_alloc_chunk
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	str	x0, [x19, #48]
	stp	w22, w23, [x19, #36]
	ldr	x8, [x0, #24]
	str	x8, [x19, #24]
	ldur	q0, [x0, #8]
	stur	q0, [x19, #8]
	add	x0, x19, #32
	mov	w1, #0
	bl	_refcount_set
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x23, #0
	mov	w24, #3
	mov	w25, #16
Lloh3:
	adrp	x26, _DR_STE_SIZE_REDUCED@GOTPAGE
Lloh4:
	ldr	x26, [x26, _DR_STE_SIZE_REDUCED@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x19, #16]
	ldrsw	x10, [x26]
	sxtw	x11, w23
	madd	x9, x10, x11, x9
	str	x9, [x8, x24, lsl #3]
	add	x27, x8, x25
	mov	x22, x27
	str	x19, [x22], #-16
	sub	x0, x27, #8
	mov	w1, #0
	bl	_refcount_set
	sub	x0, x27, #12
	bl	_INIT_LIST_HEAD
	ldr	x8, [x19, #8]
	add	x8, x8, x24
	sub	x0, x8, #3
	bl	_INIT_LIST_HEAD
	mov	x0, x22
	bl	_INIT_LIST_HEAD
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x24, x24, #4
	add	x25, x25, #32
	cmp	x23, x8
	b.lt	LBB0_4
LBB0_5:
	str	w20, [x19]
	mov	x0, x19
	bl	_dr_ste_set_ctrl
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DR_STE_SIZE_REDUCED,4,2        ; @DR_STE_SIZE_REDUCED
.subsections_via_symbols
