	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_a5xx_debugfs_init              ## -- Begin function a5xx_debugfs_init
	.p2align	4, 0x90
_a5xx_debugfs_init:                     ## @a5xx_debugfs_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
	xorl	%r15d, %r15d
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movq	8(%rsi), %r14
	movq	_a5xx_debugfs_list@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movl	(%rbx), %edx
	movl	%r12d, %edi
	movl	%eax, %esi
	movq	%rbx, %rcx
	callq	_drm_debugfs_create_files
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r12d
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DRM_DEV_ERROR
	movl	%r12d, %r15d
	jmp	LBB0_4
LBB0_3:
	movq	_S_IWUGO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	_reset_fops@GOTPCREL(%rip), %r8
	movq	%r14, %rcx
	callq	_debugfs_create_file
LBB0_4:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_a5xx_debugfs_list,4,2          ## @a5xx_debugfs_list
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not install a5xx_debugfs_list\n"

L_.str.1:                               ## @.str.1
	.asciz	"reset"

	.comm	_S_IWUGO,4,2                    ## @S_IWUGO
	.comm	_reset_fops,4,2                 ## @reset_fops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_a5xx_debugfs_init              ; -- Begin function a5xx_debugfs_init
	.p2align	2
_a5xx_debugfs_init:                     ; @a5xx_debugfs_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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x20, x1
	ldr	x19, [x1, #8]
Lloh0:
	adrp	x8, _a5xx_debugfs_list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _a5xx_debugfs_list@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	w2, [x20]
	mov	x0, x21
	mov	x3, x20
	bl	_drm_debugfs_create_files
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_ERROR
	b	LBB0_5
LBB0_3:
	mov	w21, #0
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _S_IWUGO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S_IWUGO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh10:
	adrp	x4, _reset_fops@GOTPAGE
Lloh11:
	ldr	x4, [x4, _reset_fops@GOTPAGEOFF]
	mov	x3, x19
	bl	_debugfs_create_file
LBB0_5:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_a5xx_debugfs_list,4,2          ; @a5xx_debugfs_list
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not install a5xx_debugfs_list\n"

l_.str.1:                               ; @.str.1
	.asciz	"reset"

	.comm	_S_IWUGO,4,2                    ; @S_IWUGO
	.comm	_reset_fops,4,2                 ; @reset_fops
.subsections_via_symbols
