	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_dev_init                   ## -- Begin function drm_dev_init
	.p2align	4, 0x90
_drm_dev_init:                          ## @drm_dev_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_drm_core_init_complete@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rdx, %rdx
	sete	%dil
	callq	_BUG_ON
	leaq	56(%rbx), %rdi
	callq	_kref_init
	movq	%r14, %rdi
	callq	_get_device
	movl	%eax, 20(%rbx)
	movq	%r15, 48(%rbx)
	movl	$-1, (%rbx)
	movq	%rbx, %rdi
	callq	_drm_legacy_init_members
	leaq	44(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	40(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	36(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	28(%rbx), %rdi
	callq	_spin_lock_init
	leaq	4(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_init
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_init
	leaq	12(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_init
	leaq	16(%rbx), %r13
	movq	%r13, %rdi
	callq	_mutex_init
	xorl	%eax, %eax
	callq	_drm_fs_inode_new
	movl	%eax, 24(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	movl	24(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_17
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_18
LBB0_4:
	movq	_DRIVER_RENDER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_core_check_feature
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_DRM_MINOR_RENDER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_minor_alloc
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
LBB0_6:
	movq	_DRM_MINOR_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_minor_alloc
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:
	movq	%rbx, %rdi
	callq	_drm_legacy_create_map_hash
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.8:
	movq	%rbx, %rdi
	callq	_drm_legacy_ctxbitmap_init
	movq	_DRIVER_GEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_core_check_feature
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	callq	_drm_gem_init
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_15
LBB0_11:
	movq	%r14, %rdi
	callq	_dev_name
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_drm_dev_set_unique
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	%eax, %r15d
	movq	_DRIVER_GEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_core_check_feature
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	callq	_drm_gem_destroy
LBB0_15:
	movq	%rbx, %rdi
	callq	_drm_legacy_ctxbitmap_cleanup
	movq	%rbx, %rdi
	callq	_drm_legacy_remove_map_hash
LBB0_16:
	movq	_DRM_MINOR_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_minor_free
	movq	_DRM_MINOR_RENDER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_minor_free
	movl	24(%rbx), %edi
	callq	_drm_fs_inode_free
LBB0_17:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	20(%rbx), %edi
	callq	_put_device
	movq	%r13, %rdi
	callq	_mutex_destroy
	movq	%r12, %rdi
	callq	_mutex_destroy
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_destroy
	movq	%r14, %rdi
	callq	_mutex_destroy
	movq	%rbx, %rdi
	callq	_drm_legacy_destroy_members
LBB0_18:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%r15d, %r15d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_drm_core_init_complete,4,2     ## @drm_core_init_complete
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DRM core is not initialized\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Cannot allocate anonymous inode: %d\n"

	.comm	_DRIVER_RENDER,4,2              ## @DRIVER_RENDER
	.comm	_DRM_MINOR_RENDER,4,2           ## @DRM_MINOR_RENDER
	.comm	_DRM_MINOR_PRIMARY,4,2          ## @DRM_MINOR_PRIMARY
	.comm	_DRIVER_GEM,4,2                 ## @DRIVER_GEM
L_.str.2:                               ## @.str.2
	.asciz	"Cannot initialize graphics execution manager (GEM)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_dev_init                   ; -- Begin function drm_dev_init
	.p2align	2
_drm_dev_init:                          ; @drm_dev_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, _drm_core_init_complete@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drm_core_init_complete@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x24, x2
	mov	x20, x1
	mov	x19, x0
	cmp	x2, #0
	cset	w0, eq
	bl	_BUG_ON
	add	x0, x19, #56
	bl	_kref_init
	mov	x0, x24
	bl	_get_device
	str	w0, [x19, #20]
	str	x20, [x19, #48]
	mov	w8, #-1
	str	w8, [x19]
	mov	x0, x19
	bl	_drm_legacy_init_members
	add	x0, x19, #44
	bl	_INIT_LIST_HEAD
	add	x0, x19, #40
	bl	_INIT_LIST_HEAD
	add	x0, x19, #36
	bl	_INIT_LIST_HEAD
	add	x0, x19, #32
	bl	_INIT_LIST_HEAD
	add	x0, x19, #28
	bl	_spin_lock_init
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_init
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_init
	add	x22, x19, #12
	mov	x0, x22
	bl	_mutex_init
	add	x23, x19, #16
	mov	x0, x23
	bl	_mutex_init
	bl	_drm_fs_inode_new
	str	w0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #24]
	bl	_PTR_ERR
	mov	x25, x0
	str	x25, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_16
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_17
LBB0_4:
Lloh10:
	adrp	x8, _DRIVER_RENDER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRIVER_RENDER@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_core_check_feature
Lloh13:
	adrp	x26, _DRM_MINOR_RENDER@GOTPAGE
Lloh14:
	ldr	x26, [x26, _DRM_MINOR_RENDER@GOTPAGEOFF]
Lloh15:
	adrp	x27, _DRM_MINOR_PRIMARY@GOTPAGE
Lloh16:
	ldr	x27, [x27, _DRM_MINOR_PRIMARY@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_drm_minor_alloc
	mov	x25, x0
	cbnz	w0, LBB0_15
LBB0_6:
	ldr	w1, [x27]
	mov	x0, x19
	bl	_drm_minor_alloc
	mov	x25, x0
	cbnz	w0, LBB0_15
; %bb.7:
	mov	x0, x19
	bl	_drm_legacy_create_map_hash
	mov	x25, x0
	cbnz	w0, LBB0_15
; %bb.8:
	mov	x0, x19
	bl	_drm_legacy_ctxbitmap_init
Lloh17:
	adrp	x28, _DRIVER_GEM@GOTPAGE
Lloh18:
	ldr	x28, [x28, _DRIVER_GEM@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x19
	bl	_drm_core_check_feature
	cbz	x0, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_drm_gem_init
	cbz	w0, LBB0_11
; %bb.10:
	mov	x25, x0
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_14
LBB0_11:
	mov	x0, x24
	bl	_dev_name
	mov	x1, x0
	mov	x0, x19
	bl	_drm_dev_set_unique
	mov	x25, x0
	cbz	w0, LBB0_17
; %bb.12:
	ldr	w1, [x28]
	mov	x0, x19
	bl	_drm_core_check_feature
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_drm_gem_destroy
LBB0_14:
	mov	x0, x19
	bl	_drm_legacy_ctxbitmap_cleanup
	mov	x0, x19
	bl	_drm_legacy_remove_map_hash
LBB0_15:
	ldr	w1, [x27]
	mov	x0, x19
	bl	_drm_minor_free
	ldr	w1, [x26]
	mov	x0, x19
	bl	_drm_minor_free
	ldr	w0, [x19, #24]
	bl	_drm_fs_inode_free
LBB0_16:
	ldr	w0, [x19, #20]
	bl	_put_device
	mov	x0, x23
	bl	_mutex_destroy
	mov	x0, x22
	bl	_mutex_destroy
	mov	x0, x21
	bl	_mutex_destroy
	mov	x0, x20
	bl	_mutex_destroy
	mov	x0, x19
	bl	_drm_legacy_destroy_members
LBB0_17:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_drm_core_init_complete,4,2     ; @drm_core_init_complete
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DRM core is not initialized\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Cannot allocate anonymous inode: %d\n"

	.comm	_DRIVER_RENDER,4,2              ; @DRIVER_RENDER
	.comm	_DRM_MINOR_RENDER,4,2           ; @DRM_MINOR_RENDER
	.comm	_DRM_MINOR_PRIMARY,4,2          ; @DRM_MINOR_PRIMARY
	.comm	_DRIVER_GEM,4,2                 ; @DRIVER_GEM
l_.str.2:                               ; @.str.2
	.asciz	"Cannot initialize graphics execution manager (GEM)\n"

.subsections_via_symbols
