	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_get_dfx_reg_bd_num
_hclge_get_dfx_reg_bd_num:              ## @hclge_get_dfx_reg_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-80(%rbp), %rsi
	callq	_hclge_query_bd_num_cmd_send
	testl	%eax, %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	testq	%r12, %r12
	je	LBB0_8
## %bb.3:
	movq	%rax, %r13
	xorl	%ebx, %ebx
	movq	_hclge_dfx_bd_offset_list@GOTPCREL(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	divq	%r13
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp,%rax,8), %rax
	movl	(%rax,%rdx,4), %edi
	callq	_le32_to_cpu
	movl	%eax, (%r15,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%rax, %rcx
	orq	%r13, %rcx
	shrq	$32, %rcx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r13d
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_7
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Get dfx bd num fail, status is %d.\n"

	.comm	_hclge_dfx_bd_offset_list,8,3   ## @hclge_dfx_bd_offset_list
	.comm	_HCLGE_DFX_REG_BD_NUM,4,2       ## @HCLGE_DFX_REG_BD_NUM
	.no_dead_strip	_hclge_get_dfx_reg_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_get_dfx_reg_bd_num
_hclge_get_dfx_reg_bd_num:              ; @hclge_get_dfx_reg_bd_num
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	add	x1, sp, #8
	bl	_hclge_query_bd_num_cmd_send
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x22]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	b	LBB0_5
LBB0_2:
	ldr	x0, [sp, #8]
	bl	_ARRAY_SIZE
	cbz	x20, LBB0_5
; %bb.3:
	mov	x22, x0
	mov	x23, #0
Lloh5:
	adrp	x24, _hclge_dfx_bd_offset_list@GOTPAGE
Lloh6:
	ldr	x24, [x24, _hclge_dfx_bd_offset_list@GOTPAGEOFF]
	add	x25, sp, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, x23, lsl #3]
	udiv	x9, x8, x22
	msub	x8, x9, x22, x8
	ldr	x9, [x25, x9, lsl #3]
	ldr	w0, [x9, x8, lsl #2]
	bl	_le32_to_cpu
	str	w0, [x21, x23, lsl #2]
	add	x23, x23, #1
	cmp	x20, x23
	b.ne	LBB0_4
LBB0_5:
	ldr	x8, [sp, #40]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Get dfx bd num fail, status is %d.\n"

	.comm	_hclge_dfx_bd_offset_list,8,3   ; @hclge_dfx_bd_offset_list
	.comm	_HCLGE_DFX_REG_BD_NUM,4,2       ; @HCLGE_DFX_REG_BD_NUM
	.no_dead_strip	_hclge_get_dfx_reg_bd_num
.subsections_via_symbols
