	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hisi_qm_debug_regs_clear       ## -- Begin function hisi_qm_debug_regs_clear
	.p2align	4, 0x90
_hisi_qm_debug_regs_clear:              ## @hisi_qm_debug_regs_clear
	.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	%rdi, %r12
	movq	_QM_DFX_SQE_CNT_VF_SQN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rdi), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_QM_DFX_CQE_CNT_VF_CQN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_QM_DFX_CNT_CLR_CE@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	(%r12), %rsi
	movl	$1, %edi
	callq	_writel
	movq	_CNT_CYC_REGS_NUM@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	movq	_qm_dfx_regs@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx,8), %rdi
	addq	(%r12), %rdi
	callq	_readl
	incq	%rbx
	cmpl	(%r15), %ebx
	jl	LBB0_2
LBB0_3:
	movq	(%r14), %rsi
	addq	(%r12), %rsi
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QM_DFX_SQE_CNT_VF_SQN,8,3      ## @QM_DFX_SQE_CNT_VF_SQN
	.comm	_QM_DFX_CQE_CNT_VF_CQN,8,3      ## @QM_DFX_CQE_CNT_VF_CQN
	.comm	_QM_DFX_CNT_CLR_CE,8,3          ## @QM_DFX_CNT_CLR_CE
	.comm	_qm_dfx_regs,8,3                ## @qm_dfx_regs
	.comm	_CNT_CYC_REGS_NUM,4,2           ## @CNT_CYC_REGS_NUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hisi_qm_debug_regs_clear       ; -- Begin function hisi_qm_debug_regs_clear
	.p2align	2
_hisi_qm_debug_regs_clear:              ; @hisi_qm_debug_regs_clear
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _QM_DFX_SQE_CNT_VF_SQN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QM_DFX_SQE_CNT_VF_SQN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _QM_DFX_CQE_CNT_VF_CQN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QM_DFX_CQE_CNT_VF_CQN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19]
Lloh6:
	adrp	x20, _QM_DFX_CNT_CLR_CE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _QM_DFX_CNT_CLR_CE@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #1
	bl	_writel
Lloh8:
	adrp	x21, _CNT_CYC_REGS_NUM@GOTPAGE
Lloh9:
	ldr	x21, [x21, _CNT_CYC_REGS_NUM@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
Lloh10:
	adrp	x8, _qm_dfx_regs@GOTPAGE
Lloh11:
	ldr	x8, [x8, _qm_dfx_regs@GOTPAGEOFF]
Lloh12:
	ldr	x23, [x8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x23, x22, lsl #3]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x21]
	add	x22, x22, #1
	cmp	w22, w8
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_QM_DFX_SQE_CNT_VF_SQN,8,3      ; @QM_DFX_SQE_CNT_VF_SQN
	.comm	_QM_DFX_CQE_CNT_VF_CQN,8,3      ; @QM_DFX_CQE_CNT_VF_CQN
	.comm	_QM_DFX_CNT_CLR_CE,8,3          ; @QM_DFX_CNT_CLR_CE
	.comm	_qm_dfx_regs,8,3                ; @qm_dfx_regs
	.comm	_CNT_CYC_REGS_NUM,4,2           ; @CNT_CYC_REGS_NUM
.subsections_via_symbols
