	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_wq_cyc_create             ## -- Begin function mlx5_wq_cyc_create
	.p2align	4, 0x90
_mlx5_wq_cyc_create:                    ## @mlx5_wq_cyc_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
	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_5
LBB0_2:
	movl	(%rbx), %eax
	movl	%eax, 4(%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
	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_5
LBB0_4:
	leaq	8(%r14), %rcx
	movl	16(%rbx), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_mlx5_init_fbc
	movq	%r14, %rdi
	callq	_mlx5_wq_cyc_get_size
	movl	%eax, (%r14)
	movq	%r15, 8(%rbx)
	xorl	%r12d, %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %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_cyc_create             ; -- Begin function mlx5_wq_cyc_create
	.p2align	2
_mlx5_wq_cyc_create:                    ; @mlx5_wq_cyc_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_5
LBB0_2:
	mov	x24, x19
	ldr	w8, [x24], #16
	str	w8, [x21, #4]
	mov	x0, x23
	mov	x1, x22
	bl	_wq_get_byte_sz
	mov	x1, x0
	ldr	w3, [x25]
	mov	x0, x20
	mov	x2, x24
	bl	_mlx5_frag_buf_alloc_node
	mov	x24, x0
	cbz	w0, LBB0_4
; %bb.3:
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_5
LBB0_4:
	add	x3, x21, #8
	ldr	w0, [x19, #16]
	mov	x1, x22
	mov	x2, x23
	bl	_mlx5_init_fbc
	mov	x0, x21
	bl	_mlx5_wq_cyc_get_size
	str	w0, [x21]
	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 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
