	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_minor_acquire              ## -- Begin function drm_minor_acquire
	.p2align	4, 0x90
_drm_minor_acquire:                     ## @drm_minor_acquire
	.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
	movl	%edi, %ebx
	movq	_drm_minor_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_drm_minors_idr@GOTPCREL(%rip), %rdi
	movl	%ebx, %esi
	callq	_idr_find
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_drm_dev_get
	movq	_drm_minor_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movl	(%rbx), %edi
	callq	_drm_dev_is_unplugged
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	(%rbx), %edi
	callq	_drm_dev_put
	jmp	LBB0_3
LBB0_5:
	movq	_drm_minor_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	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
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_minor_acquire              ; -- Begin function drm_minor_acquire
	.p2align	2
_drm_minor_acquire:                     ; @drm_minor_acquire
	.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
Lloh0:
	adrp	x0, _drm_minor_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _drm_minor_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x0, _drm_minors_idr@GOTPAGE
Lloh3:
	ldr	x0, [x0, _drm_minors_idr@GOTPAGEOFF]
	mov	x1, x19
	bl	_idr_find
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0]
	bl	_drm_dev_get
Lloh4:
	adrp	x0, _drm_minor_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _drm_minor_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19]
	bl	_drm_dev_is_unplugged
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x19]
	bl	_drm_dev_put
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x0, _drm_minor_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _drm_minor_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
LBB0_4:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_5:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_drm_minor_lock,4,2             ; @drm_minor_lock
	.comm	_drm_minors_idr,4,2             ; @drm_minors_idr
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
