	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_cqwq_create               ## -- Begin function mlx5_cqwq_create
	.p2align	4, 0x90
_mlx5_cqwq_create:                      ## @mlx5_cqwq_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_cqe_sz@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_MLX5_GET
	movq	_CQE_STRIDE_64@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	sete	-41(%rbp)                       ## 1-byte Folded Spill
	movq	_log_cq_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rbx
	callq	_MLX5_GET
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mlx5_db_alloc_node
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_warn
	jmp	LBB0_5
LBB0_2:
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r14b
	xorl	$7, %r14d
	movl	(%rbx), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r14d, %esi
	callq	_wq_get_byte_sz
	leaq	16(%rbx), %rdx
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_mlx5_frag_buf_alloc_node
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_warn
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mlx5_db_free
	jmp	LBB0_5
LBB0_4:
	movl	16(%rbx), %edi
	movl	%r14d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_mlx5_init_fbc
	movq	%r12, 8(%rbx)
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cqe_sz,4,2                     ## @cqe_sz
	.comm	_CQE_STRIDE_64,8,3              ## @CQE_STRIDE_64
	.comm	_log_cq_size,4,2                ## @log_cq_size
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mlx5_db_alloc_node() failed, %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"mlx5_frag_buf_alloc_node() failed, %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_cqwq_create               ; -- Begin function mlx5_cqwq_create
	.p2align	2
_mlx5_cqwq_create:                      ; @mlx5_cqwq_create
	.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	x19, x4
	mov	x21, x3
	mov	x24, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _cqe_sz@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cqe_sz@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x24
	mov	x1, x24
	bl	_MLX5_GET
Lloh3:
	adrp	x8, _CQE_STRIDE_64@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CQE_STRIDE_64@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	mov	w8, #6
	cinc	w22, w8, ne
Lloh6:
	adrp	x8, _log_cq_size@GOTPAGE
Lloh7:
	ldr	x8, [x8, _log_cq_size@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x24
	mov	x1, x24
	bl	_MLX5_GET
	mov	x25, x0
	ldr	w2, [x23, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_mlx5_db_alloc_node
	cbz	w0, LBB0_2
; %bb.1:
	mov	x24, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x24
	bl	_mlx5_core_warn
	b	LBB0_5
LBB0_2:
	mov	x24, x19
	ldr	w8, [x24], #16
	str	w8, [x21, #4]
	mov	x0, x25
	mov	x1, x22
	bl	_wq_get_byte_sz
	mov	x1, x0
	ldr	w3, [x23]
	mov	x0, x20
	mov	x2, x24
	bl	_mlx5_frag_buf_alloc_node
	mov	x24, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x24
	bl	_mlx5_core_warn
	mov	x0, x20
	mov	x1, x19
	bl	_mlx5_db_free
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #16]
	mov	x1, x22
	mov	x2, x25
	mov	x3, x21
	bl	_mlx5_init_fbc
	str	x20, [x19, #8]
LBB0_5:
	mov	x0, x24
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_cqe_sz,4,2                     ; @cqe_sz
	.comm	_CQE_STRIDE_64,8,3              ; @CQE_STRIDE_64
	.comm	_log_cq_size,4,2                ; @log_cq_size
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mlx5_db_alloc_node() failed, %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"mlx5_frag_buf_alloc_node() failed, %d\n"

.subsections_via_symbols
