	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_query_function_status
_hclge_query_function_status:           ## @hclge_query_function_status
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_HCLGE_OPC_QUERY_FUNC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	-40(%rbp), %r14
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_hclge_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_1:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_15
LBB0_2:
	cmpq	$0, (%r14)
	je	LBB0_3
LBB0_14:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_hclge_parse_func_status
	movl	%eax, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_hclge_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_1
## %bb.4:
	cmpq	$0, (%r14)
	jne	LBB0_14
## %bb.5:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_hclge_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_1
## %bb.6:
	cmpq	$0, (%r14)
	jne	LBB0_14
## %bb.7:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_hclge_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_1
## %bb.8:
	cmpq	$0, (%r14)
	jne	LBB0_14
## %bb.9:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_hclge_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_1
## %bb.10:
	cmpq	$0, (%r14)
	jne	LBB0_14
## %bb.11:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_hclge_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_1
## %bb.12:
	cmpq	$0, (%r14)
	jne	LBB0_14
## %bb.13:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_OPC_QUERY_FUNC_STATUS,4,2 ## @HCLGE_OPC_QUERY_FUNC_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"query function status failed %d.\n"

	.comm	_HCLGE_QUERY_MAX_CNT,4,2        ## @HCLGE_QUERY_MAX_CNT
	.no_dead_strip	_hclge_query_function_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_query_function_status
_hclge_query_function_status:           ; @hclge_query_function_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x8, _HCLGE_OPC_QUERY_FUNC_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_OPC_QUERY_FUNC_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_hclge_cmd_setup_basic_desc
	ldr	x20, [sp, #8]
	add	x21, x19, #8
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #1
	bl	_hclge_cmd_send
	mov	x22, x0
	cbz	w0, LBB0_2
LBB0_1:
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_4
LBB0_2:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_hclge_parse_func_status
	mov	x22, x0
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #1
	bl	_hclge_cmd_send
	mov	x22, x0
	cbnz	w0, LBB0_1
; %bb.6:
	ldr	x8, [x20]
	cbnz	x8, LBB0_3
; %bb.7:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #1
	bl	_hclge_cmd_send
	mov	x22, x0
	cbnz	w0, LBB0_1
; %bb.8:
	ldr	x8, [x20]
	cbnz	x8, LBB0_3
; %bb.9:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #1
	bl	_hclge_cmd_send
	mov	x22, x0
	cbnz	w0, LBB0_1
; %bb.10:
	ldr	x8, [x20]
	cbnz	x8, LBB0_3
; %bb.11:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #1
	bl	_hclge_cmd_send
	mov	x22, x0
	cbnz	w0, LBB0_1
; %bb.12:
	ldr	x8, [x20]
	cbnz	x8, LBB0_3
; %bb.13:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #1
	bl	_hclge_cmd_send
	mov	x22, x0
	cbnz	w0, LBB0_1
; %bb.14:
	ldr	x8, [x20]
	cbnz	x8, LBB0_3
; %bb.15:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_OPC_QUERY_FUNC_STATUS,4,2 ; @HCLGE_OPC_QUERY_FUNC_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"query function status failed %d.\n"

	.comm	_HCLGE_QUERY_MAX_CNT,4,2        ; @HCLGE_QUERY_MAX_CNT
	.no_dead_strip	_hclge_query_function_status
.subsections_via_symbols
