	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hisi_zip_ctrl_debug_init
_hisi_zip_ctrl_debug_init:              ## @hisi_zip_ctrl_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	%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, %r15
	movq	_HZIP_CURRENT_QM@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movq	_HZIP_DEBUG_FILE_NUM@GOTPCREL(%rip), %r12
	cmpl	(%r12), %r13d
	jge	LBB0_5
## %bb.1:
	leaq	(,%r13,8), %rax
	leaq	(%rax,%rax,2), %rbx
	movq	_ctrl_debug_fops@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$16, %rdi
	callq	_spin_lock_init
	movq	(%r15), %rax
	leaq	(%rax,%rbx), %rcx
	movq	%r15, 8(%rax,%rbx)
	movl	%r13d, (%rax,%rbx)
	movq	_ctrl_debug_file_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %edi
	movl	8(%r15), %edx
	movl	$384, %esi                      ## imm = 0x180
	movq	%r14, %r8
	callq	_debugfs_create_file
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	addq	$24, %rbx
	cmpq	%rax, %r13
	jl	LBB0_3
LBB0_5:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hisi_zip_core_debug_init       ## TAILCALL
LBB0_4:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HZIP_CURRENT_QM,4,2            ## @HZIP_CURRENT_QM
	.comm	_HZIP_DEBUG_FILE_NUM,4,2        ## @HZIP_DEBUG_FILE_NUM
	.comm	_ctrl_debug_file_name,8,3       ## @ctrl_debug_file_name
	.comm	_ctrl_debug_fops,4,2            ## @ctrl_debug_fops
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_hisi_zip_ctrl_debug_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hisi_zip_ctrl_debug_init
_hisi_zip_ctrl_debug_init:              ; @hisi_zip_ctrl_debug_init
	.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
Lloh0:
	adrp	x8, _HZIP_CURRENT_QM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HZIP_CURRENT_QM@GOTPAGEOFF]
Lloh2:
	ldrsw	x21, [x8]
Lloh3:
	adrp	x22, _HZIP_DEBUG_FILE_NUM@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HZIP_DEBUG_FILE_NUM@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w21, w8
	b.ge	LBB0_4
; %bb.1:
	add	x8, x21, x21, lsl #1
	lsl	x23, x8, #3
Lloh5:
	adrp	x24, _ctrl_debug_file_name@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ctrl_debug_file_name@GOTPAGEOFF]
Lloh7:
	adrp	x20, _ctrl_debug_fops@GOTPAGE
Lloh8:
	ldr	x20, [x20, _ctrl_debug_fops@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x8, x8, x23
	add	x0, x8, #16
	bl	_spin_lock_init
	ldr	x8, [x19]
	add	x3, x8, x23
	str	x19, [x3, #8]
	str	w21, [x3]
	ldr	x8, [x24]
	ldr	w0, [x8, x21, lsl #2]
	ldr	w2, [x19, #8]
	mov	w1, #384
	mov	x4, x20
	bl	_debugfs_create_file
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22]
	add	x23, x23, #24
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_4:
	mov	x0, x19
	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	_hisi_zip_core_debug_init
LBB0_5:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HZIP_CURRENT_QM,4,2            ; @HZIP_CURRENT_QM
	.comm	_HZIP_DEBUG_FILE_NUM,4,2        ; @HZIP_DEBUG_FILE_NUM
	.comm	_ctrl_debug_file_name,8,3       ; @ctrl_debug_file_name
	.comm	_ctrl_debug_fops,4,2            ; @ctrl_debug_fops
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_hisi_zip_ctrl_debug_init
.subsections_via_symbols
