	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_minor_get
_mei_minor_get:                         ## @mei_minor_get
	.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, %r14
	movq	_mei_minor_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_MEI_MAX_DEVS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_mei_idr@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_idr_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	%ebx, (%r14)
	jmp	LBB0_4
LBB0_2:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_4
## %bb.3:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_4:
	movq	_mei_minor_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mei_minor_lock,4,2             ## @mei_minor_lock
	.comm	_mei_idr,4,2                    ## @mei_idr
	.comm	_MEI_MAX_DEVS,4,2               ## @MEI_MAX_DEVS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many mei devices\n"

	.no_dead_strip	_mei_minor_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mei_minor_get
_mei_minor_get:                         ; @mei_minor_get
	.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, _mei_minor_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mei_minor_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _MEI_MAX_DEVS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MEI_MAX_DEVS@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
Lloh8:
	adrp	x0, _mei_idr@GOTPAGE
Lloh9:
	ldr	x0, [x0, _mei_idr@GOTPAGEOFF]
	mov	x1, x19
	mov	w2, #0
	bl	_idr_alloc
	mov	x20, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
	str	w20, [x19]
	b	LBB0_4
LBB0_2:
Lloh10:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmn	w20, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #4]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_4:
Lloh15:
	adrp	x0, _mei_minor_lock@GOTPAGE
Lloh16:
	ldr	x0, [x0, _mei_minor_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_mei_minor_lock,4,2             ; @mei_minor_lock
	.comm	_mei_idr,4,2                    ; @mei_idr
	.comm	_MEI_MAX_DEVS,4,2               ; @MEI_MAX_DEVS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many mei devices\n"

	.no_dead_strip	_mei_minor_get
.subsections_via_symbols
