	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_cq_kernel
_create_cq_kernel:                      ## @create_cq_kernel
	.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	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movl	%ecx, %r12d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	callq	_mlx5_db_alloc
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	movq	%rax, 40(%rbx)
	incq	%rax
	movq	%rax, 32(%rbx)
	movl	%r12d, 24(%rbx)
	leaq	8(%rbx), %rsi
	movq	%r13, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_alloc_cq_frag_buf
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
LBB0_4:
	movq	(%r13), %rdi
	movq	%rbx, %rsi
	callq	_mlx5_db_free
	jmp	LBB0_5
LBB0_2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r13
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_init_cq_frag_buf
	movq	_create_cq_in@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %r14d
	movl	(%r12), %edi
	callq	_MLX5_FLD_SZ_BYTES
	imull	8(%rbx), %eax
	addl	%eax, %r14d
	movl	%r14d, (%r13)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_kvzalloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movl	(%r12), %edi
	movq	%rax, %rsi
	callq	_MLX5_ADDR_OF
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_mlx5_fill_page_frag_array
	movl	(%r12), %edi
	movq	(%r15), %rsi
	movq	_cq_context@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_MLX5_ADDR_OF
	movq	_log_page_size@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	16(%rbx), %rcx
	movq	_MLX5_ADAPTER_PAGE_SHIFT@GOTPCREL(%rip), %rsi
	subq	(%rsi), %rcx
	movq	%rax, %rdi
	movq	%rax, %rsi
	callq	_MLX5_SET
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_free_cq_buf
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_create_cq_in,4,2               ## @create_cq_in
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cq_context,8,3                 ## @cq_context
	.comm	_log_page_size,4,2              ## @log_page_size
	.comm	_MLX5_ADAPTER_PAGE_SHIFT,8,3    ## @MLX5_ADAPTER_PAGE_SHIFT
	.no_dead_strip	_create_cq_kernel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_cq_kernel
_create_cq_kernel:                      ; @create_cq_kernel
	.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	x24, x6
	mov	x21, x5
	mov	x22, x4
	mov	x26, x3
	mov	x27, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0]
	bl	_mlx5_db_alloc
	mov	x25, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x20]
	add	x9, x8, #1
	stp	x9, x8, [x20, #32]
	str	w26, [x20, #24]
	add	x23, x20, #8
	mov	x0, x19
	mov	x1, x23
	mov	x2, x27
	mov	x3, x26
	bl	_alloc_cq_frag_buf
	mov	x25, x0
	cbz	w0, LBB0_3
LBB0_2:
	ldr	x0, [x19]
	mov	x1, x20
	bl	_mlx5_db_free
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	mov	x1, x23
	bl	_init_cq_frag_buf
Lloh0:
	adrp	x26, _create_cq_in@GOTPAGE
Lloh1:
	ldr	x26, [x26, _create_cq_in@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_MLX5_ST_SZ_BYTES
	mov	x25, x0
	ldr	w0, [x26]
	bl	_MLX5_FLD_SZ_BYTES
	ldr	w8, [x20, #8]
	madd	w0, w8, w0, w25
	str	w0, [x24]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kvzalloc
	str	x0, [x22]
	cbz	x0, LBB0_6
; %bb.4:
	mov	x1, x0
	ldr	w0, [x26]
	bl	_MLX5_ADDR_OF
	mov	x1, x0
	mov	x0, x23
	bl	_mlx5_fill_page_frag_array
	ldr	w0, [x26]
	ldr	x1, [x22]
Lloh5:
	adrp	x8, _cq_context@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cq_context@GOTPAGEOFF]
Lloh7:
	ldr	x2, [x8]
	bl	_MLX5_ADDR_OF
Lloh8:
	adrp	x8, _log_page_size@GOTPAGE
Lloh9:
	ldr	x8, [x8, _log_page_size@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	ldr	x8, [x20, #16]
Lloh11:
	adrp	x9, _MLX5_ADAPTER_PAGE_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MLX5_ADAPTER_PAGE_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	sub	x3, x8, x9
	mov	x1, x0
	bl	_MLX5_SET
	mov	w25, #0
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_5:
	mov	x0, x25
	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_6:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w25, w8
	mov	x0, x19
	mov	x1, x23
	bl	_free_cq_buf
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_create_cq_in,4,2               ; @create_cq_in
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cq_context,8,3                 ; @cq_context
	.comm	_log_page_size,4,2              ; @log_page_size
	.comm	_MLX5_ADAPTER_PAGE_SHIFT,8,3    ; @MLX5_ADAPTER_PAGE_SHIFT
	.no_dead_strip	_create_cq_kernel
.subsections_via_symbols
