	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_msg_cache
_create_msg_cache:                      ## @create_msg_cache
	.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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_MLX5_NUM_COMMAND_CACHES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.1:
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movq	_MLX5_NUM_COMMAND_CACHES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	jge	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	movq	%r15, %r13
	shlq	$4, %r13
	leaq	(%r12,%r13), %rdi
	addq	$12, %rdi
	callq	_spin_lock_init
	leaq	(%r12,%r13), %rdi
	addq	$4, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_INIT_LIST_HEAD
	movq	_cmd_cache_num_ent@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %eax
	movl	%eax, (%r12,%r13)
	movq	_cmd_cache_ent_size@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%r15,4), %edx
	movl	%edx, 8(%r12,%r13)
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	___GFP_NOWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_mlx5_alloc_cmd_msg
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r12,%r13), %r14
	addq	%r13, %r12
	addq	$8, %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, 8(%rbx)
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	incl	%r13d
	cmpl	(%r14), %r13d
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	(%r12), %edx
	movq	___GFP_NOWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_mlx5_alloc_cmd_msg
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
	jmp	LBB0_7
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_NUM_COMMAND_CACHES,4,2    ## @MLX5_NUM_COMMAND_CACHES
	.comm	_cmd_cache_num_ent,8,3          ## @cmd_cache_num_ent
	.comm	_cmd_cache_ent_size,8,3         ## @cmd_cache_ent_size
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_NOWARN,4,2               ## @__GFP_NOWARN
	.no_dead_strip	_create_msg_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_msg_cache
_create_msg_cache:                      ; @create_msg_cache
	.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
Lloh0:
	adrp	x8, _MLX5_NUM_COMMAND_CACHES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_NUM_COMMAND_CACHES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x0
	mov	x23, #0
Lloh3:
	adrp	x25, _cmd_cache_ent_size@GOTPAGE
Lloh4:
	ldr	x25, [x25, _cmd_cache_ent_size@GOTPAGEOFF]
Lloh5:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	adrp	x27, ___GFP_NOWARN@GOTPAGE
Lloh8:
	ldr	x27, [x27, ___GFP_NOWARN@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
Lloh9:
	adrp	x8, _MLX5_NUM_COMMAND_CACHES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX5_NUM_COMMAND_CACHES@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	cmp	x23, x8
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x19]
	add	x28, x8, x23, lsl #4
	add	x0, x28, #12
	bl	_spin_lock_init
	add	x20, x28, #4
	mov	x0, x20
	bl	_INIT_LIST_HEAD
Lloh12:
	adrp	x8, _cmd_cache_num_ent@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cmd_cache_num_ent@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	lsl	x9, x23, #2
	ldr	w8, [x8, x9]
	str	w8, [x28]
	ldr	x10, [x25]
	ldr	w2, [x10, x9]
	mov	x22, x28
	str	w2, [x22, #8]!
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w3, #0
	bl	_mlx5_alloc_cmd_msg
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w24, #0
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x28, [x21, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_list_add_tail
	add	w24, w24, #1
	ldr	w8, [x28]
	cmp	w24, w8
	b.ge	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w2, [x22]
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w3, #0
	bl	_mlx5_alloc_cmd_msg
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
	b	LBB0_2
LBB0_8:
	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	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_NUM_COMMAND_CACHES,4,2    ; @MLX5_NUM_COMMAND_CACHES
	.comm	_cmd_cache_num_ent,8,3          ; @cmd_cache_num_ent
	.comm	_cmd_cache_ent_size,8,3         ; @cmd_cache_ent_size
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_NOWARN,4,2               ; @__GFP_NOWARN
	.no_dead_strip	_create_msg_cache
.subsections_via_symbols
