	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_wq_qp_create              ## -- Begin function mlx5_wq_qp_create
	.p2align	4, 0x90
_mlx5_wq_qp_create:                     ## @mlx5_wq_qp_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rdx, %rdi
	movq	%rdx, %rsi
	callq	_MLX5_GET
	movq	%rax, %r15
	movq	_log_rq_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_MLX5_GET
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_MLX5_SEND_WQE_BB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ilog2
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_log_sq_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_MLX5_GET
	movq	%rax, %rbx
	movl	4(%r13), %edx
	movq	%r12, %rdi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_mlx5_db_alloc_node
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_warn
	jmp	LBB0_8
LBB0_2:
	addq	$4, %r15
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_wq_get_byte_sz
	movq	%rbx, %rdi
	movl	%eax, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_wq_get_byte_sz
	addl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	16(%rax), %rdx
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%rdx, %r13
	callq	_mlx5_frag_buf_alloc_node
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_warn
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_mlx5_db_free
	jmp	LBB0_8
LBB0_4:
	movl	(%r13), %edi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	leaq	24(%r14), %rcx
	movq	%r15, %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_mlx5_init_fbc
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wq_get_byte_sz
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jge	LBB0_6
## %bb.5:
	cltd
	movq	_MLX5_SEND_WQE_BB@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movl	(%r13), %edi
	leaq	8(%r14), %r8
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_mlx5_init_fbc_offset
	jmp	LBB0_7
LBB0_6:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	addl	(%r13), %eax
	leaq	8(%r14), %rcx
	movl	%eax, %edi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_mlx5_init_fbc
LBB0_7:
	movq	(%rbx), %rax
	movq	_MLX5_RCV_DBR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rcx
	movq	%rcx, 16(%r14)
	movq	_MLX5_SND_DBR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, (%r14)
	movq	%r12, 8(%rbx)
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_log_rq_size,4,2                ## @log_rq_size
	.comm	_MLX5_SEND_WQE_BB,4,2           ## @MLX5_SEND_WQE_BB
	.comm	_log_sq_size,4,2                ## @log_sq_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"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_MLX5_RCV_DBR,8,3               ## @MLX5_RCV_DBR
	.comm	_MLX5_SND_DBR,8,3               ## @MLX5_SND_DBR
	.comm	_log_rq_stride,8,3              ## @log_rq_stride
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_wq_qp_create              ; -- Begin function mlx5_wq_qp_create
	.p2align	2
_mlx5_wq_qp_create:                     ; @mlx5_wq_qp_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x4
	mov	x28, x3
	mov	x23, x2
	mov	x25, x1
	mov	x20, x0
	mov	x0, x2
	mov	x1, x2
	bl	_MLX5_GET
	mov	x27, x0
Lloh0:
	adrp	x8, _log_rq_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _log_rq_size@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x23
	bl	_MLX5_GET
	mov	x24, x0
Lloh3:
	adrp	x21, _MLX5_SEND_WQE_BB@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MLX5_SEND_WQE_BB@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_ilog2
	mov	x22, x0
Lloh5:
	adrp	x8, _log_sq_size@GOTPAGE
Lloh6:
	ldr	x8, [x8, _log_sq_size@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x23
	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	x26, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x26
	bl	_mlx5_core_warn
	b	LBB0_8
LBB0_2:
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	add	x28, x27, #4
	mov	x0, x24
	mov	x1, x28
	bl	_wq_get_byte_sz
	mov	x26, x0
	mov	x0, x23
	mov	x1, x22
	bl	_wq_get_byte_sz
	add	w1, w0, w26
	add	x27, x19, #16
	ldr	w3, [x25]
	mov	x0, x20
	mov	x2, x27
	bl	_mlx5_frag_buf_alloc_node
	cbz	w0, LBB0_4
; %bb.3:
	mov	x26, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x26
	bl	_mlx5_core_warn
	mov	x0, x20
	mov	x1, x19
	bl	_mlx5_db_free
	b	LBB0_8
LBB0_4:
	ldr	w0, [x27]
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	add	x3, x25, #24
	mov	x1, x28
	mov	x2, x24
	bl	_mlx5_init_fbc
	mov	x0, x24
	mov	x1, x28
	mov	x24, x25
	bl	_wq_get_byte_sz
Lloh12:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_6
; %bb.5:
	ldr	w9, [x21]
	ldr	w8, [x27]
	add	x4, x24, #8
	sdiv	w3, w0, w9
	mov	x0, x8
	mov	x1, x22
	mov	x2, x23
	bl	_mlx5_init_fbc_offset
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	asr	w8, w0, w8
	ldr	w9, [x27]
	add	w0, w9, w8
	add	x3, x24, #8
	mov	x1, x22
	mov	x2, x23
	bl	_mlx5_init_fbc
LBB0_7:
	mov	w26, #0
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _MLX5_RCV_DBR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MLX5_RCV_DBR@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x9, x8, x9, lsl #2
	str	x9, [x24, #16]
Lloh21:
	adrp	x9, _MLX5_SND_DBR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MLX5_SND_DBR@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #2
	str	x8, [x24]
	str	x20, [x19, #8]
LBB0_8:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_log_rq_size,4,2                ; @log_rq_size
	.comm	_MLX5_SEND_WQE_BB,4,2           ; @MLX5_SEND_WQE_BB
	.comm	_log_sq_size,4,2                ; @log_sq_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"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_MLX5_RCV_DBR,8,3               ; @MLX5_RCV_DBR
	.comm	_MLX5_SND_DBR,8,3               ; @MLX5_SND_DBR
	.comm	_log_rq_stride,8,3              ; @log_rq_stride
.subsections_via_symbols
