	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_minor_get_id
_drm_minor_get_id:                      ## @drm_minor_get_id
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_DRM_MINOR_CONTROL@GOTPCREL(%rip), %rax
	movq	_DRM_MINOR_RENDER@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	%esi, (%rcx)
	movl	$383, %ecx                      ## imm = 0x17F
	movl	$63, %ebx
	cmovel	%ecx, %ebx
	sete	%dl
	shll	$7, %edx
	cmpl	%esi, (%rax)
	movl	$64, %r14d
	cmovnel	%edx, %r14d
	movq	%rdi, %r12
	movl	$191, %eax
	cmovnel	%ebx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_drm_minors_idr@GOTPCREL(%rip), %r15
	movq	_EAGAIN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_idr_pre_get
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	leaq	-48(%rbp), %rcx
	callq	_idr_get_new_above
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	(%r13), %eax
	addl	%ebx, %eax
	je	LBB0_1
## %bb.4:
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.5:
	movl	-48(%rbp), %ebx
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jl	LBB0_8
## %bb.6:
	movq	_drm_minors_idr@GOTPCREL(%rip), %rdi
	movl	%ebx, %esi
	callq	_idr_remove
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MINOR_CONTROL,4,2          ## @DRM_MINOR_CONTROL
	.comm	_DRM_MINOR_RENDER,4,2           ## @DRM_MINOR_RENDER
	.comm	_drm_minors_idr,4,2             ## @drm_minors_idr
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory expanding drawable idr\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_drm_minor_get_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_minor_get_id
_drm_minor_get_id:                      ; @drm_minor_get_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _DRM_MINOR_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MINOR_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DRM_MINOR_RENDER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_MINOR_RENDER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w10, #63
	mov	w11, #383
	cmp	w9, w1
	csel	w9, w11, w10, eq
	cset	w10, eq
	lsl	w10, w10, #7
	mov	w11, #64
	cmp	w8, w1
	csel	w20, w11, w10, eq
	mov	w8, #191
	csel	w23, w8, w9, eq
Lloh6:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	adrp	x21, _drm_minors_idr@GOTPAGE
Lloh9:
	ldr	x21, [x21, _drm_minors_idr@GOTPAGEOFF]
Lloh10:
	adrp	x25, _EAGAIN@GOTPAGE
Lloh11:
	ldr	x25, [x25, _EAGAIN@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x21
	bl	_idr_pre_get
	cbz	x0, LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_mutex_lock
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, #0
	mov	x2, x20
	bl	_idr_get_new_above
	mov	x22, x0
	mov	x0, x19
	bl	_mutex_unlock
	ldr	w8, [x25]
	cmn	w22, w8
	b.eq	LBB0_1
; %bb.3:
	cbnz	w22, LBB0_8
; %bb.4:
	ldr	w22, [sp, #12]
	cmp	w22, w23
	b.lt	LBB0_8
; %bb.5:
Lloh12:
	adrp	x0, _drm_minors_idr@GOTPAGE
Lloh13:
	ldr	x0, [x0, _drm_minors_idr@GOTPAGEOFF]
	mov	x1, x22
	bl	_idr_remove
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MINOR_CONTROL,4,2          ; @DRM_MINOR_CONTROL
	.comm	_DRM_MINOR_RENDER,4,2           ; @DRM_MINOR_RENDER
	.comm	_drm_minors_idr,4,2             ; @drm_minors_idr
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory expanding drawable idr\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_drm_minor_get_id
.subsections_via_symbols
