	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclgevf_alloc_cmd_queue
_hclgevf_alloc_cmd_queue:               ## @hclgevf_alloc_cmd_queue
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_HCLGEVF_TYPE_CSQ@GOTPCREL(%rip), %r12
	xorl	%eax, %eax
	cmpl	%esi, (%r12)
	sete	%al
	shlq	$4, %rax
	addq	%rax, %rdi
	addq	$8, %rdi
	movq	%rbx, 16(%rax,%rbx)
	movl	%esi, 8(%rax,%rbx)
	callq	_hclgevf_alloc_cmd_desc
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	cmpl	%r14d, (%r12)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
LBB0_2:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGEVF_TYPE_CSQ,4,2           ## @HCLGEVF_TYPE_CSQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed(%d) to alloc %s desc\n"

L_.str.1:                               ## @.str.1
	.asciz	"CSQ"

L_.str.2:                               ## @.str.2
	.asciz	"CRQ"

	.no_dead_strip	_hclgevf_alloc_cmd_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclgevf_alloc_cmd_queue
_hclgevf_alloc_cmd_queue:               ; @hclgevf_alloc_cmd_queue
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _HCLGEVF_TYPE_CSQ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HCLGEVF_TYPE_CSQ@GOTPAGEOFF]
	ldr	w8, [x22]
	add	x9, x0, #8
	add	x10, x0, #24
	cmp	w8, w1
	csel	x0, x10, x9, eq
	str	x21, [x0, #8]
	str	w1, [x0]
	bl	_hclgevf_alloc_cmd_desc
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x21]
	ldr	w8, [x22]
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh4:
	adrp	x10, l_.str.1@PAGE
Lloh5:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, w19
	csel	x3, x10, x9, eq
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGEVF_TYPE_CSQ,4,2           ; @HCLGEVF_TYPE_CSQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed(%d) to alloc %s desc\n"

l_.str.1:                               ; @.str.1
	.asciz	"CSQ"

l_.str.2:                               ; @.str.2
	.asciz	"CRQ"

	.no_dead_strip	_hclgevf_alloc_cmd_queue
.subsections_via_symbols
