	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function next_free_minor
_next_free_minor:                       ## @next_free_minor
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	__minor_idr@GOTPCREL(%rip), %rdi
	callq	_idr_pre_get
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	__minor_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_MINOR_ALLOCED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	__minor_idr@GOTPCREL(%rip), %rdi
	leaq	-20(%rbp), %rdx
	callq	_idr_get_new
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	-20(%rbp), %esi
	movq	_MINORBITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	cmpl	%eax, %esi
	jge	LBB0_4
## %bb.5:
	movl	%esi, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	__minor_idr@GOTPCREL(%rip), %rdi
	callq	_idr_remove
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	__minor_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__minor_idr,4,2                 ## @_minor_idr
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	__minor_lock,4,2                ## @_minor_lock
	.comm	_MINOR_ALLOCED,4,2              ## @MINOR_ALLOCED
	.comm	_MINORBITS,4,2                  ## @MINORBITS
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.no_dead_strip	_next_free_minor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function next_free_minor
_next_free_minor:                       ; @next_free_minor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, __minor_idr@GOTPAGE
Lloh4:
	ldr	x0, [x0, __minor_idr@GOTPAGEOFF]
	bl	_idr_pre_get
	cbz	w0, LBB0_4
; %bb.1:
Lloh5:
	adrp	x0, __minor_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, __minor_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh7:
	adrp	x8, _MINOR_ALLOCED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MINOR_ALLOCED@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x0, __minor_idr@GOTPAGE
Lloh11:
	ldr	x0, [x0, __minor_idr@GOTPAGEOFF]
	add	x2, sp, #12
	bl	_idr_get_new
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w1, [sp, #12]
Lloh12:
	adrp	x8, _MINORBITS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MINORBITS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	cmp	w1, w8
	b.ge	LBB0_5
; %bb.3:
	mov	w20, #0
	str	w1, [x19]
	b	LBB0_6
LBB0_4:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_5:
Lloh18:
	adrp	x0, __minor_idr@GOTPAGE
Lloh19:
	ldr	x0, [x0, __minor_idr@GOTPAGEOFF]
	bl	_idr_remove
Lloh20:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
Lloh23:
	adrp	x0, __minor_lock@GOTPAGE
Lloh24:
	ldr	x0, [x0, __minor_lock@GOTPAGEOFF]
	bl	_spin_unlock
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	__minor_idr,4,2                 ; @_minor_idr
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	__minor_lock,4,2                ; @_minor_lock
	.comm	_MINOR_ALLOCED,4,2              ; @MINOR_ALLOCED
	.comm	_MINORBITS,4,2                  ; @MINORBITS
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.no_dead_strip	_next_free_minor
.subsections_via_symbols
