	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_get_regs_len
_hclge_get_regs_len:                    ## @hclge_get_regs_len
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_hclge_get_vport
	movq	(%rax), %r15
	leaq	-36(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	callq	_hclge_get_regs_num
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	leaq	-28(%rbp), %rsi
	movq	%r15, %rdi
	callq	_hclge_get_dfx_reg_len
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%ebx, %edx
	callq	_dev_err
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_REG_LEN_PER_LINE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	cmpq	$4, %rdi
	ja	LBB0_6
## %bb.7:
	movl	$4, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %ecx
	jmp	LBB0_8
LBB0_6:
	xorl	%ecx, %ecx
LBB0_8:
	movq	_REG_SEPARATOR_LINE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movslq	-36(%rbp), %rax
	shlq	$2, %rax
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_9
## %bb.10:
	xorl	%edx, %edx
	divq	%rdi
	movq	%rax, %r8
	jmp	LBB0_11
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %r8d
LBB0_11:
	addl	%ebx, %ecx
	movslq	-32(%rbp), %rax
	shlq	$2, %rax
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_12
## %bb.13:
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_14
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_14:
	movl	(%r14), %edx
	movl	(%r15), %esi
	addl	%esi, %edx
	incl	%edx
	imull	%ecx, %edx
	leal	(%r8,%rbx,2), %ebx
	addl	%eax, %ebx
	addl	%edx, %ebx
	imull	%edi, %ebx
	addl	-28(%rbp), %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Get register number failed, ret = %d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Get dfx reg len failed, ret = %d.\n"

	.comm	_REG_LEN_PER_LINE,4,2           ## @REG_LEN_PER_LINE
	.comm	_REG_SEPARATOR_LINE,4,2         ## @REG_SEPARATOR_LINE
	.no_dead_strip	_hclge_get_regs_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_get_regs_len
_hclge_get_regs_len:                    ; @hclge_get_regs_len
	.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
	bl	_hclge_get_vport
	ldr	x20, [x0]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x20
	bl	_hclge_get_regs_num
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x0, [x20, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	add	x1, sp, #4
	mov	x0, x20
	bl	_hclge_get_dfx_reg_len
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
	ldr	x0, [x20, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x2, x21
	bl	_dev_err
LBB0_5:
	mov	x0, x21
	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_6:
Lloh4:
	adrp	x8, _REG_LEN_PER_LINE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _REG_LEN_PER_LINE@GOTPAGEOFF]
Lloh6:
	ldrsw	x8, [x8]
	mov	w9, #4
Lloh7:
	adrp	x10, _REG_SEPARATOR_LINE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _REG_SEPARATOR_LINE@GOTPAGEOFF]
	udiv	x9, x9, x8
Lloh9:
	ldr	w10, [x10]
	add	w9, w10, w9
	ldpsw	x12, x11, [sp, #8]
	lsl	x11, x11, #2
	udiv	x11, x11, x8
	lsl	x12, x12, #2
	ldr	w13, [x19]
	ldr	w14, [x20]
	add	w13, w13, w14
	madd	w9, w9, w13, w9
	add	w10, w11, w10, lsl #1
	udiv	x11, x12, x8
	add	w10, w10, w11
	add	w9, w10, w9
	ldr	w10, [sp, #4]
	madd	w21, w9, w8, w10
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Get register number failed, ret = %d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Get dfx reg len failed, ret = %d.\n"

	.comm	_REG_LEN_PER_LINE,4,2           ; @REG_LEN_PER_LINE
	.comm	_REG_SEPARATOR_LINE,4,2         ; @REG_SEPARATOR_LINE
	.no_dead_strip	_hclge_get_regs_len
.subsections_via_symbols
