	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_wq_ll_create              ## -- Begin function mlx5_wq_ll_create
	.p2align	4, 0x90
_mlx5_wq_ll_create:                     ## @mlx5_wq_ll_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, %r12
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rcx, %rdi
	movq	%rdx, %rsi
	callq	_MLX5_GET
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rbx
	callq	_MLX5_GET
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mlx5_db_alloc_node
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_warn
	jmp	LBB0_8
LBB0_2:
	movl	(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_wq_get_byte_sz
	leaq	16(%rbx), %rdx
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%rdx, %r13
	callq	_mlx5_frag_buf_alloc_node
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_warn
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mlx5_db_free
	jmp	LBB0_8
LBB0_4:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	12(%r14), %rbx
	movl	(%r13), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	callq	_mlx5_init_fbc
	xorl	%r12d, %r12d
	cmpl	$0, (%rbx)
	movl	$0, %ebx
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mlx5_wq_ll_get_wqe
	movq	%rax, %r13
	incl	%ebx
	movl	%ebx, %edi
	callq	_cpu_to_be16
	movl	%eax, (%r13)
	cmpl	12(%r14), %ebx
	jl	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mlx5_wq_ll_get_wqe
	movq	%rax, (%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, 8(%rax)
LBB0_8:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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"

	.comm	_log_wq_stride,4,2              ## @log_wq_stride
	.comm	_log_wq_sz,4,2                  ## @log_wq_sz
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_wq_ll_create              ; -- Begin function mlx5_wq_ll_create
	.p2align	2
_mlx5_wq_ll_create:                     ; @mlx5_wq_ll_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	x23, x2
	mov	x25, x1
	mov	x20, x0
	mov	x0, x3
	mov	x1, x2
	bl	_MLX5_GET
	mov	x22, x0
	mov	x0, x21
	mov	x1, x23
	bl	_MLX5_GET
	mov	x23, x0
	ldr	w2, [x25, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_mlx5_db_alloc_node
	cbz	w0, LBB0_2
; %bb.1:
	mov	x24, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x24
	bl	_mlx5_core_warn
	b	LBB0_9
LBB0_2:
	mov	x26, x19
	ldr	w8, [x26], #16
	str	w8, [x21, #8]
	mov	x0, x23
	mov	x1, x22
	bl	_wq_get_byte_sz
	mov	x1, x0
	ldr	w3, [x25]
	mov	x0, x20
	mov	x2, x26
	bl	_mlx5_frag_buf_alloc_node
	cbz	w0, LBB0_4
; %bb.3:
	mov	x24, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	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_9
LBB0_4:
	add	x24, x21, #12
	ldr	w0, [x26]
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_mlx5_init_fbc
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_mlx5_wq_ll_get_wqe
	mov	x23, x0
	add	w22, w22, #1
	mov	x0, x22
	bl	_cpu_to_be16
	str	w0, [x23]
	ldr	w8, [x21, #12]
	cmp	w22, w8
	b.lt	LBB0_6
	b	LBB0_8
LBB0_7:
	mov	w22, #0
LBB0_8:
	mov	x0, x21
	mov	x1, x22
	bl	_mlx5_wq_ll_get_wqe
	mov	w24, #0
	str	x0, [x21]
	str	x20, [x19, #8]
LBB0_9:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.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"

	.comm	_log_wq_stride,4,2              ; @log_wq_stride
	.comm	_log_wq_sz,4,2                  ; @log_wq_sz
.subsections_via_symbols
