	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_dfx_reg_fetch_data
_hclge_dfx_reg_fetch_data:              ## @hclge_dfx_reg_fetch_data
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r13d
	imull	%eax, %r14d
	movq	_REG_NUM_PER_LINE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_REG_NUM_REMAIN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r14d, %edx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%ecx, %eax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	subl	%edx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r14d, %r14d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	jle	LBB0_3
## %bb.1:
	movl	%r14d, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %eax
	cltd
	idivl	%r13d
                                        ## kill: def $edx killed $edx def $rdx
	cltq
	movq	(%r12,%rax,8), %rax
	movl	(%rax,%rdx,4), %edi
	callq	_le32_to_cpu
	movl	%eax, (%rbx)
	addq	$4, %rbx
	incq	%r14
	cmpl	%r14d, %r15d
	jne	LBB0_2
LBB0_3:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	movl	-48(%rbp), %r10d                ## 4-byte Reload
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_22
## %bb.4:
	movl	%r14d, %ecx
	notl	%ecx
	addl	%r11d, %ecx
	xorl	%r9d, %r9d
	cmpl	$7, %ecx
	jb	LBB0_15
## %bb.5:
	movq	_SEPARATOR_VALUE@GOTPCREL(%rip), %r8
	leaq	4(%r8), %rdx
	cmpq	%rdx, %rbx
	jae	LBB0_7
## %bb.6:
	leaq	(%rbx,%rcx,4), %rdx
	addq	$4, %rdx
	cmpq	_SEPARATOR_VALUE@GOTPCREL(%rip), %rdx
	ja	LBB0_15
LBB0_7:
	incq	%rcx
	movq	%rcx, %r9
	andq	$-8, %r9
	leaq	-8(%r9), %rsi
	movq	%rsi, %rdx
	shrq	$3, %rdx
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.9:
	movq	%rdx, %rsi
	andq	$-2, %rsi
	movd	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rbx,%rdi,4)
	movdqu	%xmm0, 16(%rbx,%rdi,4)
	movdqu	%xmm0, 32(%rbx,%rdi,4)
	movdqu	%xmm0, 48(%rbx,%rdi,4)
	addq	$16, %rdi
	addq	$-2, %rsi
	jne	LBB0_10
## %bb.11:
	testb	$1, %dl
	je	LBB0_13
LBB0_12:
	movd	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, (%rbx,%rdi,4)
	movdqu	%xmm0, 16(%rbx,%rdi,4)
LBB0_13:
	cmpq	%r9, %rcx
	je	LBB0_22
## %bb.14:
	leaq	(%rbx,%r9,4), %rbx
LBB0_15:
	movl	%r11d, %edx
	subl	%r9d, %edx
	subl	%r14d, %edx
	movl	%r9d, %r8d
	notl	%r8d
	addl	%r11d, %r8d
	subl	%r14d, %r8d
	andl	$7, %edx
	je	LBB0_19
## %bb.16:
	negl	%edx
	xorl	%esi, %esi
	movq	_SEPARATOR_VALUE@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdi), %ecx
	movl	%ecx, (%rbx)
	addq	$4, %rbx
	decl	%esi
	cmpl	%esi, %edx
	jne	LBB0_17
## %bb.18:
	subl	%esi, %r9d
LBB0_19:
	cmpl	$7, %r8d
	jb	LBB0_22
## %bb.20:
	subl	%r9d, %r11d
	subl	%r14d, %r11d
	xorl	%esi, %esi
	movq	_SEPARATOR_VALUE@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %edx
	movl	%edx, (%rbx,%rsi,4)
	movl	(%rcx), %edx
	movl	%edx, 4(%rbx,%rsi,4)
	movl	%edx, 8(%rbx,%rsi,4)
	movl	%edx, 12(%rbx,%rsi,4)
	movl	(%rcx), %edx
	movl	%edx, 16(%rbx,%rsi,4)
	movl	%edx, 20(%rbx,%rsi,4)
	movl	%edx, 24(%rbx,%rsi,4)
	movl	(%rcx), %edx
	movl	%edx, 28(%rbx,%rsi,4)
	addq	$8, %rsi
	cmpl	%esi, %r11d
	jne	LBB0_21
LBB0_22:
	addl	%r10d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%edi, %edi
	testb	$1, %dl
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_NUM_PER_LINE,4,2           ## @REG_NUM_PER_LINE
	.comm	_REG_NUM_REMAIN_MASK,4,2        ## @REG_NUM_REMAIN_MASK
	.comm	_SEPARATOR_VALUE,4,2            ## @SEPARATOR_VALUE
	.no_dead_strip	_hclge_dfx_reg_fetch_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_dfx_reg_fetch_data
_hclge_dfx_reg_fetch_data:              ; @hclge_dfx_reg_fetch_data
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x0, [x0]
	bl	_ARRAY_SIZE
	mul	w22, w0, w22
Lloh0:
	adrp	x8, _REG_NUM_PER_LINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_NUM_PER_LINE@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _REG_NUM_REMAIN_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_NUM_REMAIN_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w25, w8, w22
	sub	w23, w24, w25
	cmp	w22, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, x0
	mov	w26, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w8, w26, w21
	msub	w9, w21, w8, w26
	ldr	x8, [x20, w8, sxtw #3]
	ldr	w0, [x8, w9, uxtw #2]
	bl	_le32_to_cpu
	str	w0, [x19], #4
	add	w26, w26, #1
	cmp	w22, w26
	b.ne	LBB0_2
LBB0_3:
	cmp	w23, #1
	b.lt	LBB0_10
; %bb.4:
	mvn	w8, w25
	add	w9, w24, w8
Lloh6:
	adrp	x8, _SEPARATOR_VALUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEPARATOR_VALUE@GOTPAGEOFF]
	cmp	w9, #15
	b.lo	LBB0_7
; %bb.5:
	add	x10, x8, #4
	cmp	x19, x10
	b.hs	LBB0_11
; %bb.6:
	add	x10, x19, w9, uxtw #2
	add	x10, x10, #4
	cmp	x10, x8
	b.ls	LBB0_11
LBB0_7:
	mov	w10, #0
	mov	x9, x19
LBB0_8:
	add	w10, w10, w25
	sub	w10, w10, w24
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8]
	str	w11, [x9], #4
	adds	w10, w10, #1
	b.lo	LBB0_9
LBB0_10:
	add	w0, w23, w22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	add	x11, x9, #1
	and	x10, x11, #0x1fffffff0
	add	x9, x19, x10, lsl #2
	ld1r.4s	{ v0 }, [x8]
	add	x12, x19, #32
	mov	x13, x10
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x12, #-32]
	stp	q0, q0, [x12], #64
	subs	x13, x13, #16
	b.ne	LBB0_12
; %bb.13:
	cmp	x11, x10
	b.ne	LBB0_8
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_NUM_PER_LINE,4,2           ; @REG_NUM_PER_LINE
	.comm	_REG_NUM_REMAIN_MASK,4,2        ; @REG_NUM_REMAIN_MASK
	.comm	_SEPARATOR_VALUE,4,2            ; @SEPARATOR_VALUE
	.no_dead_strip	_hclge_dfx_reg_fetch_data
.subsections_via_symbols
