	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_legacy_dev_reinit          ## -- Begin function drm_legacy_dev_reinit
	.p2align	4, 0x90
_drm_legacy_dev_reinit:                 ## @drm_legacy_dev_reinit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, 40(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_drm_irq_uninstall
LBB0_2:
	leaq	32(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_drm_legacy_agp_clear
	movq	%rbx, %rdi
	callq	_drm_legacy_sg_cleanup
	movq	%rbx, %rdi
	callq	_drm_legacy_vma_flush
	movq	%rbx, %rdi
	callq	_drm_legacy_dma_takedown
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movups	%xmm0, 16(%rbx)
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DRM_DEBUG                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lastclose completed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_legacy_dev_reinit          ; -- Begin function drm_legacy_dev_reinit
	.p2align	2
_drm_legacy_dev_reinit:                 ; @drm_legacy_dev_reinit
	.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
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_drm_irq_uninstall
LBB0_2:
	add	x20, x19, #32
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	bl	_drm_legacy_agp_clear
	mov	x0, x19
	bl	_drm_legacy_sg_cleanup
	mov	x0, x19
	bl	_drm_legacy_vma_flush
	mov	x0, x19
	bl	_drm_legacy_dma_takedown
	mov	x0, x20
	bl	_mutex_unlock
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_DEBUG
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lastclose completed\n"

.subsections_via_symbols
