	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hisi_qm_debug_init             ## -- Begin function hisi_qm_debug_init
	.p2align	4, 0x90
_hisi_qm_debug_init:                    ## @hisi_qm_debug_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	16(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_debugfs_create_dir
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	movq	%r14, 8(%r15)
	movq	(%r15), %rax
	movq	_QM_HW_PF@GOTPCREL(%rip), %rcx
	movq	%r14, %rdx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	movq	_CURRENT_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_DEBUG_FILE_NUM@GOTPCREL(%rip), %r12
	movq	%r14, %rdx
	cmpl	(%r12), %ebx
	jge	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_qm_create_debugfs_file
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_5
## %bb.7:
	movq	8(%r15), %rdx
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	movq	_qm_regs_fops@GOTPCREL(%rip), %r8
	movl	$292, %esi                      ## imm = 0x124
	movq	%r15, %rcx
	callq	_debugfs_create_file
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_debugfs_remove_recursive
	jmp	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qm"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_QM_HW_PF,8,3                   ## @QM_HW_PF
	.comm	_CURRENT_Q,4,2                  ## @CURRENT_Q
	.comm	_DEBUG_FILE_NUM,4,2             ## @DEBUG_FILE_NUM
L_.str.1:                               ## @.str.1
	.asciz	"qm_regs"

	.comm	_qm_regs_fops,4,2               ## @qm_regs_fops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hisi_qm_debug_init             ; -- Begin function hisi_qm_debug_init
	.p2align	2
_hisi_qm_debug_init:                    ; @hisi_qm_debug_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	ldr	w1, [x0, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debugfs_create_dir
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_2:
	str	x19, [x20, #8]
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _QM_HW_PF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QM_HW_PF@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	mov	x2, x19
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
Lloh8:
	adrp	x8, _CURRENT_Q@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CURRENT_Q@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
Lloh11:
	adrp	x22, _DEBUG_FILE_NUM@GOTPAGE
Lloh12:
	ldr	x22, [x22, _DEBUG_FILE_NUM@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	x2, x19
	cmp	w21, w8
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_qm_create_debugfs_file
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	ldr	w8, [x22]
	cmp	w21, w8
	b.lt	LBB0_4
; %bb.6:
	ldr	x2, [x20, #8]
LBB0_7:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh15:
	adrp	x4, _qm_regs_fops@GOTPAGE
Lloh16:
	ldr	x4, [x4, _qm_regs_fops@GOTPAGEOFF]
	mov	w1, #292
	mov	x3, x20
	bl	_debugfs_create_file
	bl	_IS_ERR
	cbz	x0, LBB0_9
LBB0_8:
Lloh17:
	adrp	x8, _ENOENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x19
	bl	_debugfs_remove_recursive
	b	LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qm"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_QM_HW_PF,8,3                   ; @QM_HW_PF
	.comm	_CURRENT_Q,4,2                  ; @CURRENT_Q
	.comm	_DEBUG_FILE_NUM,4,2             ; @DEBUG_FILE_NUM
l_.str.1:                               ; @.str.1
	.asciz	"qm_regs"

	.comm	_qm_regs_fops,4,2               ; @qm_regs_fops
.subsections_via_symbols
