	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_dbg_cmd_send
_hclge_dbg_cmd_send:                    ## @hclge_dbg_cmd_send
	.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
	movl	%r8d, %r13d
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	movl	%r8d, %esi
	movl	$1, %edx
	callq	_hclge_cmd_setup_basic_desc
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movq	8(%r12), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$2, %ebx
	jl	LBB0_3
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %r14d
	leaq	16(%r12), %rbx
	movq	_HCLGE_CMD_FLAG_NEXT@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_cpu_to_le16
	orl	%eax, -16(%rbx)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	callq	_hclge_cmd_setup_basic_desc
	addq	$16, %rbx
	decl	%r14d
	jne	LBB0_2
LBB0_3:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	leaq	8(%r14), %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_hclge_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	callq	_dev_err
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_CMD_FLAG_NEXT,4,2        ## @HCLGE_CMD_FLAG_NEXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmd(0x%x) send fail, ret = %d\n"

	.no_dead_strip	_hclge_dbg_cmd_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_dbg_cmd_send
_hclge_dbg_cmd_send:                    ; @hclge_dbg_cmd_send
	.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	x22, x1
	mov	x20, x0
	mov	x0, x1
	mov	x1, x4
	mov	w2, #1
	bl	_hclge_cmd_setup_basic_desc
	mov	x0, x23
	bl	_cpu_to_le32
	ldr	x8, [x22, #8]
	str	w0, [x8]
	cmp	w21, #2
	b.lt	LBB0_3
; %bb.1:
	sub	w24, w21, #1
	add	x23, x22, #16
Lloh0:
	adrp	x25, _HCLGE_CMD_FLAG_NEXT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _HCLGE_CMD_FLAG_NEXT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	bl	_cpu_to_le16
	ldur	w8, [x23, #-16]
	orr	w8, w8, w0
	stur	w8, [x23, #-16]
	mov	x0, x23
	mov	x1, x19
	mov	w2, #1
	bl	_hclge_cmd_setup_basic_desc
	add	x23, x23, #16
	subs	w24, w24, #1
	b.ne	LBB0_2
LBB0_3:
	add	x0, x20, #8
	mov	x1, x22
	mov	x2, x21
	bl	_hclge_cmd_send
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.4:
	ldr	x0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_dev_err
LBB0_5:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_CMD_FLAG_NEXT,4,2        ; @HCLGE_CMD_FLAG_NEXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd(0x%x) send fail, ret = %d\n"

	.no_dead_strip	_hclge_dbg_cmd_send
.subsections_via_symbols
