	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_query_bd_num
_hclge_query_bd_num:                    ## @hclge_query_bd_num
	.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	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %rbx
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_HCLGE_QUERY_MSIX_INT_STS_BD_NUM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_HCLGE_QUERY_RAS_INT_STS_BD_NUM@GOTPCREL(%rip), %rax
LBB0_3:
	movq	8(%rbx), %r14
	movl	(%rax), %esi
	movq	_HCLGE_PF_MSIX_INT_MIN_BD_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_HCLGE_PF_RAS_INT_MIN_BD_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_HCLGE_MPF_MSIX_INT_MIN_BD_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_HCLGE_MPF_RAS_INT_MIN_BD_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_hclge_cmd_send
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
LBB0_5:
	movq	%r14, %r15
	testl	%r13d, %r13d
	cmovel	-44(%rbp), %r12d                ## 4-byte Folded Reload
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	cmovel	-48(%rbp), %r14d                ## 4-byte Folded Reload
	movq	-64(%rbp), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%rbx)
	movq	-64(%rbp), %rax
	movl	4(%rax), %edi
	callq	_le32_to_cpu
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	(%rbx), %edx
	cmpl	%r12d, %edx
	jl	LBB0_7
## %bb.6:
	xorl	%ebx, %ebx
	cmpl	%r14d, %eax
	jge	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_QUERY_RAS_INT_STS_BD_NUM,4,2 ## @HCLGE_QUERY_RAS_INT_STS_BD_NUM
	.comm	_HCLGE_MPF_RAS_INT_MIN_BD_NUM,4,2 ## @HCLGE_MPF_RAS_INT_MIN_BD_NUM
	.comm	_HCLGE_PF_RAS_INT_MIN_BD_NUM,4,2 ## @HCLGE_PF_RAS_INT_MIN_BD_NUM
	.comm	_HCLGE_QUERY_MSIX_INT_STS_BD_NUM,4,2 ## @HCLGE_QUERY_MSIX_INT_STS_BD_NUM
	.comm	_HCLGE_MPF_MSIX_INT_MIN_BD_NUM,4,2 ## @HCLGE_MPF_MSIX_INT_MIN_BD_NUM
	.comm	_HCLGE_PF_MSIX_INT_MIN_BD_NUM,4,2 ## @HCLGE_PF_MSIX_INT_MIN_BD_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fail(%d) to query msix int status bd num\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid bd num: mpf(%d), pf(%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hclge_query_bd_num
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_query_bd_num
_hclge_query_bd_num:                    ; @hclge_query_bd_num
	.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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _HCLGE_QUERY_MSIX_INT_STS_BD_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_QUERY_MSIX_INT_STS_BD_NUM@GOTPAGEOFF]
	ldr	x19, [x0, #8]
Lloh2:
	adrp	x9, _HCLGE_QUERY_RAS_INT_STS_BD_NUM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HCLGE_QUERY_RAS_INT_STS_BD_NUM@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
Lloh4:
	adrp	x8, _HCLGE_PF_MSIX_INT_MIN_BD_NUM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HCLGE_PF_MSIX_INT_MIN_BD_NUM@GOTPAGEOFF]
Lloh6:
	ldr	w24, [x8]
Lloh7:
	adrp	x8, _HCLGE_PF_RAS_INT_MIN_BD_NUM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HCLGE_PF_RAS_INT_MIN_BD_NUM@GOTPAGEOFF]
Lloh9:
	ldr	w25, [x8]
Lloh10:
	adrp	x8, _HCLGE_MPF_MSIX_INT_MIN_BD_NUM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HCLGE_MPF_MSIX_INT_MIN_BD_NUM@GOTPAGEOFF]
Lloh12:
	ldr	w26, [x8]
Lloh13:
	adrp	x8, _HCLGE_MPF_RAS_INT_MIN_BD_NUM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HCLGE_MPF_RAS_INT_MIN_BD_NUM@GOTPAGEOFF]
Lloh15:
	ldr	w27, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_hclge_cmd_setup_basic_desc
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #1
	bl	_hclge_cmd_send
	cbz	w0, LBB0_2
; %bb.1:
	mov	x23, x0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_err
	b	LBB0_5
LBB0_2:
	cmp	w22, #0
	csel	w22, w26, w27, eq
	csel	w23, w24, w25, eq
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	str	w0, [x20]
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #4]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x21]
	ldr	w2, [x20]
	cmp	w2, w22
	ccmp	w0, w23, #8, ge
	b.ge	LBB0_4
; %bb.3:
	str	x0, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_5
LBB0_4:
	mov	w23, #0
LBB0_5:
	mov	x0, x23
	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	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_QUERY_RAS_INT_STS_BD_NUM,4,2 ; @HCLGE_QUERY_RAS_INT_STS_BD_NUM
	.comm	_HCLGE_MPF_RAS_INT_MIN_BD_NUM,4,2 ; @HCLGE_MPF_RAS_INT_MIN_BD_NUM
	.comm	_HCLGE_PF_RAS_INT_MIN_BD_NUM,4,2 ; @HCLGE_PF_RAS_INT_MIN_BD_NUM
	.comm	_HCLGE_QUERY_MSIX_INT_STS_BD_NUM,4,2 ; @HCLGE_QUERY_MSIX_INT_STS_BD_NUM
	.comm	_HCLGE_MPF_MSIX_INT_MIN_BD_NUM,4,2 ; @HCLGE_MPF_MSIX_INT_MIN_BD_NUM
	.comm	_HCLGE_PF_MSIX_INT_MIN_BD_NUM,4,2 ; @HCLGE_PF_MSIX_INT_MIN_BD_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fail(%d) to query msix int status bd num\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid bd num: mpf(%d), pf(%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hclge_query_bd_num
.subsections_via_symbols
