	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_debugfs_add_files       ## -- Begin function radeon_debugfs_add_files
	.p2align	4, 0x90
_radeon_debugfs_add_files:              ## @radeon_debugfs_add_files
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	testq	%r8, %r8
	je	LBB0_4
## %bb.1:
	movq	16(%rdi), %r9
	movq	%r8, %r10
	shlq	$4, %r10
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, 8(%r9,%rcx)
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rcx
	cmpq	%rcx, %r10
	jne	LBB0_2
LBB0_4:
	leal	1(%r8), %eax
	movq	_RADEON_DEBUGFS_MAX_COMPONENTS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jbe	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_6:
	movq	16(%rdi), %rcx
	shlq	$4, %r8
	movq	%rsi, 8(%rcx,%r8)
	movl	%edx, (%rcx,%r8)
	movl	%eax, (%rdi)
	xorl	%eax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_DEBUGFS_MAX_COMPONENTS,4,2 ## @RADEON_DEBUGFS_MAX_COMPONENTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reached maximum number of debugfs components.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Report so we increase RADEON_DEBUGFS_MAX_COMPONENTS.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_debugfs_add_files       ; -- Begin function radeon_debugfs_add_files
	.p2align	2
_radeon_debugfs_add_files:              ; @radeon_debugfs_add_files
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w9, [x0]
	cbz	w9, LBB0_4
; %bb.1:
	ldr	x8, [x0, #16]
	add	x8, x8, #8
	mov	x10, x9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8]
	cmp	x11, x1
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #16
	subs	x10, x10, #1
	b.ne	LBB0_2
LBB0_4:
	add	w10, w9, #1
Lloh0:
	adrp	x8, _RADEON_DEBUGFS_MAX_COMPONENTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEON_DEBUGFS_MAX_COMPONENTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w10, w8
	b.ls	LBB0_7
; %bb.5:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w8, w8
	b	LBB0_8
LBB0_6:
	mov	w8, #0
	b	LBB0_8
LBB0_7:
	mov	w8, #0
	ldr	x11, [x0, #16]
	add	x9, x11, x9, lsl #4
	str	x1, [x9, #8]
	str	w2, [x9]
	str	w10, [x0]
LBB0_8:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_DEBUGFS_MAX_COMPONENTS,4,2 ; @RADEON_DEBUGFS_MAX_COMPONENTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reached maximum number of debugfs components.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Report so we increase RADEON_DEBUGFS_MAX_COMPONENTS.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
