	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_proc_create_files
_drm_proc_create_files:                 ## @drm_proc_create_files
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	testl	%esi, %esi
	jle	LBB0_12
## %bb.1:
	movq	%rcx, %r12
	movq	%rdi, %rbx
	movq	8(%rcx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%rcx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	%r13, %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rbx
	decq	%r15
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%ecx, %eax
	jne	LBB0_10
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movq	%r12, 16(%rax)
	movq	%rbx, 8(%rax)
	movq	%rax, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add
	movl	4(%rbx), %edi
	movq	_S_IRUGO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	_drm_proc_fops@GOTPCREL(%rip), %rcx
	movq	%r14, %r8
	callq	_proc_create_data
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	%r14, %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_kfree
LBB0_7:
	xorl	%ebx, %ebx
	movq	_drm_proc_list@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r12), %esi
	callq	_remove_proc_entry
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_8
## %bb.9:
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_S_IRUGO,4,2                    ## @S_IRUGO
	.comm	_drm_proc_fops,4,2              ## @drm_proc_fops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot create /proc/dri/%s/%s\n"

	.comm	_drm_proc_list,8,3              ## @drm_proc_list
	.no_dead_strip	_drm_proc_create_files
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_proc_create_files
_drm_proc_create_files:                 ; @drm_proc_create_files
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w1, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	ldr	x26, [x3, #8]
	add	x22, x3, #4
Lloh0:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
	mov	w28, w1
Lloh2:
	adrp	x23, _drm_proc_fops@GOTPAGE
Lloh3:
	ldr	x23, [x23, _drm_proc_fops@GOTPAGEOFF]
	mov	x25, x28
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #8
	subs	x25, x25, #1
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	cbz	w8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x26]
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.ne	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x27]
	mov	w0, #24
	bl	_kmalloc
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	stp	x21, x19, [x0, #8]
	mov	x1, x22
	bl	_list_add
	ldr	w0, [x21, #4]
Lloh4:
	adrp	x8, _S_IRUGO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _S_IRUGO@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x2, x20
	mov	x3, x23
	mov	x4, x24
	bl	_proc_create_data
	cbnz	x0, LBB0_2
; %bb.7:
	ldr	w1, [x20]
	ldr	w2, [x21, #4]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	mov	x0, x24
	bl	_list_del
	mov	x0, x24
	bl	_kfree
LBB0_8:
	mov	x20, #0
Lloh9:
	adrp	x21, _drm_proc_list@GOTPAGE
Lloh10:
	ldr	x21, [x21, _drm_proc_list@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x20, lsl #2]
	ldr	w1, [x19]
	bl	_remove_proc_entry
	add	x20, x20, #1
	cmp	x28, x20
	b.ne	LBB0_9
; %bb.10:
	mov	w0, #-1
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_S_IRUGO,4,2                    ; @S_IRUGO
	.comm	_drm_proc_fops,4,2              ; @drm_proc_fops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot create /proc/dri/%s/%s\n"

	.comm	_drm_proc_list,8,3              ; @drm_proc_list
	.no_dead_strip	_drm_proc_create_files
.subsections_via_symbols
