	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dr_icm_pool_create         ## -- Begin function mlx5dr_icm_pool_create
	.p2align	4, 0x90
_mlx5dr_icm_pool_create:                ## @mlx5dr_icm_pool_create
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_DR_ICM_TYPE_STE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	%esi, (%rax)
	setne	%cl
	movl	(%rdi,%rcx,4), %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$40, %edi
	callq	_kvzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r12
	movq	%rbx, %rax
	leal	1(%r13), %ebx
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%r15, 32(%r12)
	movl	%r14d, (%r12)
	movl	%r13d, 4(%r12)
	movl	%ebx, 8(%r12)
	leaq	24(%r12), %rdi
	callq	_INIT_LIST_HEAD
	cmpl	$0, 8(%r12)
	jle	LBB0_5
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rsi
	addq	%r14, %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_dr_icm_bucket_init
	incq	%rbx
	movslq	8(%r12), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	%r12, %rdi
	addq	$12, %rdi
	callq	_mutex_init
	jmp	LBB0_8
LBB0_6:
	movq	%r12, %rdi
	callq	_kvfree
LBB0_7:
	xorl	%r12d, %r12d
LBB0_8:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DR_ICM_TYPE_STE,4,2            ## @DR_ICM_TYPE_STE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dr_icm_pool_create         ; -- Begin function mlx5dr_icm_pool_create
	.p2align	2
_mlx5dr_icm_pool_create:                ; @mlx5dr_icm_pool_create
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _DR_ICM_TYPE_STE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DR_ICM_TYPE_STE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w8, ne
	ldr	w23, [x0, w8, uxtw #2]
Lloh3:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #40
	bl	_kvzalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	add	w22, w23, #1
	ldr	w2, [x24]
	mov	x0, x22
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.2:
	str	x21, [x19, #32]
	stp	w20, w23, [x19]
	add	x0, x19, #24
	str	w22, [x19, #8]
	bl	_INIT_LIST_HEAD
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
	mov	x20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x1, x8, x21
	mov	x0, x19
	mov	x2, x20
	bl	_dr_icm_bucket_init
	add	x20, x20, #1
	ldrsw	x8, [x19, #8]
	add	x21, x21, #4
	cmp	x20, x8
	b.lt	LBB0_4
LBB0_5:
	add	x0, x19, #12
	bl	_mutex_init
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_kvfree
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DR_ICM_TYPE_STE,4,2            ; @DR_ICM_TYPE_STE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
