	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_dev_fini                   ## -- Begin function drm_dev_fini
	.p2align	4, 0x90
_drm_dev_fini:                          ## @drm_dev_fini
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_drm_vblank_cleanup
	movq	_DRIVER_GEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_core_check_feature
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_drm_gem_destroy
LBB0_2:
	movq	%rbx, %rdi
	callq	_drm_legacy_ctxbitmap_cleanup
	movq	%rbx, %rdi
	callq	_drm_legacy_remove_map_hash
	movl	24(%rbx), %edi
	callq	_drm_fs_inode_free
	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	20(%rbx), %edi
	callq	_put_device
	leaq	16(%rbx), %rdi
	callq	_mutex_destroy
	leaq	12(%rbx), %rdi
	callq	_mutex_destroy
	leaq	8(%rbx), %rdi
	callq	_mutex_destroy
	leaq	4(%rbx), %rdi
	callq	_mutex_destroy
	movq	%rbx, %rdi
	callq	_drm_legacy_destroy_members
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_GEM,4,2                 ## @DRIVER_GEM
	.comm	_DRM_MINOR_PRIMARY,4,2          ## @DRM_MINOR_PRIMARY
	.comm	_DRM_MINOR_RENDER,4,2           ## @DRM_MINOR_RENDER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_dev_fini                   ; -- Begin function drm_dev_fini
	.p2align	2
_drm_dev_fini:                          ; @drm_dev_fini
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_drm_vblank_cleanup
Lloh0:
	adrp	x8, _DRIVER_GEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_GEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_core_check_feature
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_drm_gem_destroy
LBB0_2:
	mov	x0, x19
	bl	_drm_legacy_ctxbitmap_cleanup
	mov	x0, x19
	bl	_drm_legacy_remove_map_hash
	ldr	w0, [x19, #24]
	bl	_drm_fs_inode_free
Lloh3:
	adrp	x8, _DRM_MINOR_PRIMARY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MINOR_PRIMARY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_minor_free
Lloh6:
	adrp	x8, _DRM_MINOR_RENDER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_MINOR_RENDER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_minor_free
	ldr	w0, [x19, #20]
	bl	_put_device
	add	x0, x19, #16
	bl	_mutex_destroy
	add	x0, x19, #12
	bl	_mutex_destroy
	add	x0, x19, #8
	bl	_mutex_destroy
	add	x0, x19, #4
	bl	_mutex_destroy
	mov	x0, x19
	bl	_drm_legacy_destroy_members
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_GEM,4,2                 ; @DRIVER_GEM
	.comm	_DRM_MINOR_PRIMARY,4,2          ; @DRM_MINOR_PRIMARY
	.comm	_DRM_MINOR_RENDER,4,2           ; @DRM_MINOR_RENDER
.subsections_via_symbols
