	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_get_regs
_hclge_get_regs:                        ## @hclge_get_regs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_hclge_get_vport
	movq	(%rax), %r14
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_hclge_get_regs_num
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_32
LBB0_2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_hclge_fetch_pf_reg
	movslq	%eax, %r12
	leaq	(%r15,%r12,4), %rbx
	movl	-48(%rbp), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_hclge_get_32_bit_regs
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_32
LBB0_4:
	movslq	-48(%rbp), %r9
	leaq	(%rbx,%r9,4), %rbx
	movq	_MAX_SEPARATE_NUM@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	movq	_REG_NUM_REMAIN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	andl	%r9d, %r10d
	movl	%r8d, %eax
	subl	%r10d, %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.5:
	movq	_SEPARATOR_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r10d, %r11d
	notl	%r11d
	addl	%r8d, %r11d
	xorl	%esi, %esi
	cmpl	$7, %r11d
	jb	LBB0_14
## %bb.6:
	incq	%r11
	movq	%r11, %rsi
	andq	$-8, %rsi
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rsi), %rdi
	movq	%rdi, %rcx
	shrq	$3, %rcx
	incq	%rcx
	movl	%ecx, %edx
	andl	$7, %edx
	cmpq	$56, %rdi
	jae	LBB0_8
## %bb.7:
	xorl	%edi, %edi
	jmp	LBB0_10
LBB0_8:
	andq	$-8, %rcx
	leaq	(,%r9,4), %rdi
	leaq	(%rdi,%r12,4), %rdi
	leaq	(%r15,%rdi), %r13
	addq	$240, %r13
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -240(%r13,%rdi,4)
	movdqu	%xmm0, -224(%r13,%rdi,4)
	movdqu	%xmm0, -208(%r13,%rdi,4)
	movdqu	%xmm0, -192(%r13,%rdi,4)
	movdqu	%xmm0, -176(%r13,%rdi,4)
	movdqu	%xmm0, -160(%r13,%rdi,4)
	movdqu	%xmm0, -144(%r13,%rdi,4)
	movdqu	%xmm0, -128(%r13,%rdi,4)
	movdqu	%xmm0, -112(%r13,%rdi,4)
	movdqu	%xmm0, -96(%r13,%rdi,4)
	movdqu	%xmm0, -80(%r13,%rdi,4)
	movdqu	%xmm0, -64(%r13,%rdi,4)
	movdqu	%xmm0, -48(%r13,%rdi,4)
	movdqu	%xmm0, -32(%r13,%rdi,4)
	movdqu	%xmm0, -16(%r13,%rdi,4)
	movdqu	%xmm0, (%r13,%rdi,4)
	addq	$64, %rdi
	addq	$-8, %rcx
	jne	LBB0_9
LBB0_10:
	testq	%rdx, %rdx
	movq	_MAX_SEPARATE_NUM@GOTPCREL(%rip), %r13
	je	LBB0_13
## %bb.11:
	shlq	$2, %r12
	leaq	(%r12,%rdi,4), %rcx
	leaq	(%rcx,%r9,4), %rcx
	addq	%r15, %rcx
	addq	$16, %rcx
	shlq	$5, %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rcx,%rdi)
	movdqu	%xmm0, (%rcx,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %rdx
	jne	LBB0_12
LBB0_13:
	leaq	(%rbx,%rsi,4), %rbx
	cmpq	%rsi, %r11
	je	LBB0_16
LBB0_14:
	addl	%r10d, %esi
	subl	%r8d, %esi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, (%rbx)
	addq	$4, %rbx
	incl	%esi
	jne	LBB0_15
LBB0_16:
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_hclge_get_64_bit_regs
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_32
LBB0_18:
	movslq	-44(%rbp), %r11
	leaq	(%rbx,%r11,8), %rsi
	addq	%r11, %r11
	movl	(%r13), %r8d
	movq	_REG_NUM_REMAIN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	andl	%r11d, %r9d
	movl	%r8d, %eax
	subl	%r9d, %eax
	testl	%eax, %eax
	jle	LBB0_30
## %bb.19:
	movq	_SEPARATOR_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r9d, %r10d
	notl	%r10d
	addl	%r8d, %r10d
	xorl	%edi, %edi
	cmpl	$7, %r10d
	jb	LBB0_28
## %bb.20:
	incq	%r10
	movq	%r10, %rdi
	andq	$-8, %rdi
	movd	%r12d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rdi), %rax
	movq	%rax, %rcx
	shrq	$3, %rcx
	incq	%rcx
	movl	%ecx, %r15d
	andl	$7, %r15d
	cmpq	$56, %rax
	jae	LBB0_22
## %bb.21:
	xorl	%edx, %edx
	jmp	LBB0_24
LBB0_22:
	andq	$-8, %rcx
	leaq	(%rbx,%r11,4), %rax
	addq	$240, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -240(%rax,%rdx,4)
	movdqu	%xmm0, -224(%rax,%rdx,4)
	movdqu	%xmm0, -208(%rax,%rdx,4)
	movdqu	%xmm0, -192(%rax,%rdx,4)
	movdqu	%xmm0, -176(%rax,%rdx,4)
	movdqu	%xmm0, -160(%rax,%rdx,4)
	movdqu	%xmm0, -144(%rax,%rdx,4)
	movdqu	%xmm0, -128(%rax,%rdx,4)
	movdqu	%xmm0, -112(%rax,%rdx,4)
	movdqu	%xmm0, -96(%rax,%rdx,4)
	movdqu	%xmm0, -80(%rax,%rdx,4)
	movdqu	%xmm0, -64(%rax,%rdx,4)
	movdqu	%xmm0, -48(%rax,%rdx,4)
	movdqu	%xmm0, -32(%rax,%rdx,4)
	movdqu	%xmm0, -16(%rax,%rdx,4)
	movdqu	%xmm0, (%rax,%rdx,4)
	addq	$64, %rdx
	addq	$-8, %rcx
	jne	LBB0_23
LBB0_24:
	testq	%r15, %r15
	je	LBB0_27
## %bb.25:
	addq	%r11, %rdx
	leaq	(%rbx,%rdx,4), %rax
	addq	$16, %rax
	shlq	$5, %r15
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rax,%rcx)
	movdqu	%xmm0, (%rax,%rcx)
	addq	$32, %rcx
	cmpq	%rcx, %r15
	jne	LBB0_26
LBB0_27:
	leaq	(%rsi,%rdi,4), %rsi
	cmpq	%rdi, %r10
	je	LBB0_30
LBB0_28:
	addl	%r9d, %edi
	subl	%r8d, %edi
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, (%rsi)
	addq	$4, %rsi
	incl	%edi
	jne	LBB0_29
LBB0_30:
	movq	%r14, %rdi
	callq	_hclge_get_dfx_reg
	testl	%eax, %eax
	je	LBB0_33
## %bb.31:
	movq	8(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
LBB0_32:
	movl	%eax, %edx
	callq	_dev_err
LBB0_33:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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 32 bit register failed, ret = %d.\n"

	.comm	_MAX_SEPARATE_NUM,4,2           ## @MAX_SEPARATE_NUM
	.comm	_REG_NUM_REMAIN_MASK,4,2        ## @REG_NUM_REMAIN_MASK
	.comm	_SEPARATOR_VALUE,8,3            ## @SEPARATOR_VALUE
L_.str.2:                               ## @.str.2
	.asciz	"Get 64 bit register failed, ret = %d.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Get dfx register failed, ret = %d.\n"

	.no_dead_strip	_hclge_get_regs
.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
_hclge_get_regs:                        ; @hclge_get_regs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_hclge_get_vport
	ldr	x19, [x0]
	ldr	w8, [x19]
	str	w8, [x22]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_hclge_get_regs_num
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_24
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_hclge_fetch_pf_reg
	mov	x22, x0
	add	x20, x21, w0, sxtw #2
	ldr	w1, [sp, #12]
	mov	x0, x19
	mov	x2, x20
	bl	_hclge_get_32_bit_regs
	cbz	w0, LBB0_4
; %bb.3:
	mov	x2, x0
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_4:
	ldrsw	x12, [sp, #12]
	add	x20, x20, x12, lsl #2
Lloh4:
	adrp	x23, _MAX_SEPARATE_NUM@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MAX_SEPARATE_NUM@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh6:
	adrp	x24, _REG_NUM_REMAIN_MASK@GOTPAGE
Lloh7:
	ldr	x24, [x24, _REG_NUM_REMAIN_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
	and	w10, w8, w12
	sub	w8, w9, w10
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.5:
Lloh8:
	adrp	x8, _SEPARATOR_VALUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SEPARATOR_VALUE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mvn	w11, w10
	add	w11, w9, w11
	cmp	w11, #15
	b.hs	LBB0_7
; %bb.6:
	mov	w11, #0
	b	LBB0_10
LBB0_7:
	sxtw	x14, w22
	add	x13, x11, #1
	and	x11, x13, #0x1fffffff0
	dup.4s	v0, w8
	add	x20, x20, x11, lsl #2
	lsl	x12, x12, #2
	add	x12, x12, x14, lsl #2
	add	x12, x12, x21
	add	x12, x12, #32
	mov	x14, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x12, #-32]
	stp	q0, q0, [x12], #64
	subs	x14, x14, #16
	b.ne	LBB0_8
; %bb.9:
	cmp	x13, x11
	b.eq	LBB0_12
LBB0_10:
	add	w10, w11, w10
	sub	w9, w10, w9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	str	w8, [x20], #4
	adds	w9, w9, #1
	b.lo	LBB0_11
LBB0_12:
	ldr	w1, [sp, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_hclge_get_64_bit_regs
	cbz	w0, LBB0_14
; %bb.13:
	mov	x2, x0
	ldr	x0, [x19, #8]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_24
LBB0_14:
	ldrsw	x8, [sp, #8]
	lsl	x13, x8, #1
	add	x1, x20, x8, lsl #3
	ldr	w9, [x23]
	ldr	w8, [x24]
	and	w10, w8, w13
	sub	w8, w9, w10
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.15:
Lloh13:
	adrp	x8, _SEPARATOR_VALUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SEPARATOR_VALUE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	mvn	w11, w10
	add	w11, w9, w11
	cmp	w11, #15
	b.hs	LBB0_17
; %bb.16:
	mov	w11, #0
	b	LBB0_20
LBB0_17:
	add	x12, x11, #1
	and	x11, x12, #0x1fffffff0
	add	x1, x1, x11, lsl #2
	dup.4s	v0, w8
	add	x13, x20, x13, lsl #2
	add	x13, x13, #32
	mov	x14, x11
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x13, #-32]
	stp	q0, q0, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_18
; %bb.19:
	cmp	x12, x11
	b.eq	LBB0_22
LBB0_20:
	add	w10, w11, w10
	sub	w9, w10, w9
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	str	w8, [x1], #4
	adds	w9, w9, #1
	b.lo	LBB0_21
LBB0_22:
	mov	x0, x19
	bl	_hclge_get_dfx_reg
	cbz	w0, LBB0_25
; %bb.23:
	mov	x2, x0
	ldr	x0, [x19, #8]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_24:
	bl	_dev_err
LBB0_25:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.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 32 bit register failed, ret = %d.\n"

	.comm	_MAX_SEPARATE_NUM,4,2           ; @MAX_SEPARATE_NUM
	.comm	_REG_NUM_REMAIN_MASK,4,2        ; @REG_NUM_REMAIN_MASK
	.comm	_SEPARATOR_VALUE,8,3            ; @SEPARATOR_VALUE
l_.str.2:                               ; @.str.2
	.asciz	"Get 64 bit register failed, ret = %d.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Get dfx register failed, ret = %d.\n"

	.no_dead_strip	_hclge_get_regs
.subsections_via_symbols
