	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_minor_unregister
_drm_minor_unregister:                  ## @drm_minor_unregister
	.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
	callq	_drm_minor_get_slot
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	callq	_device_is_registered
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_drm_minor_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	4(%rbx), %edx
	movq	_drm_minors_idr@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_idr_replace
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%rbx), %edi
	callq	_device_del
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_dev_set_drvdata
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_drm_debugfs_cleanup            ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drm_minor_lock,4,2             ## @drm_minor_lock
	.comm	_drm_minors_idr,4,2             ## @drm_minors_idr
	.no_dead_strip	_drm_minor_unregister
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_minor_unregister
_drm_minor_unregister:                  ; @drm_minor_unregister
	.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
	bl	_drm_minor_get_slot
	ldr	x19, [x0]
	cbz	x19, LBB0_3
; %bb.1:
	ldr	w0, [x19]
	bl	_device_is_registered
	cbz	w0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x20, _drm_minor_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _drm_minor_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w2, [x19, #4]
Lloh2:
	adrp	x0, _drm_minors_idr@GOTPAGE
Lloh3:
	ldr	x0, [x0, _drm_minors_idr@GOTPAGEOFF]
	mov	x1, #0
	bl	_idr_replace
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19]
	bl	_device_del
	ldr	w0, [x19]
	mov	x1, #0
	bl	_dev_set_drvdata
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_drm_debugfs_cleanup
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_drm_minor_lock,4,2             ; @drm_minor_lock
	.comm	_drm_minors_idr,4,2             ; @drm_minors_idr
	.no_dead_strip	_drm_minor_unregister
.subsections_via_symbols
