	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_idr_preload
	movq	__minor_lock@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movq	_MINORBITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	_MINOR_ALLOCED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_GFP_NOWAIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	__minor_idr@GOTPCREL(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_idr_alloc
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	callq	_idr_preload_end
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	movl	%ebx, (%r14)
	jmp	LBB0_3
LBB0_1:
	movl	%ebx, %r15d
LBB0_3:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	__minor_lock,4,2                ## @_minor_lock
	.comm	__minor_idr,4,2                 ## @_minor_idr
	.comm	_MINOR_ALLOCED,4,2              ## @MINOR_ALLOCED
	.comm	_MINORBITS,4,2                  ## @MINORBITS
	.comm	_GFP_NOWAIT,4,2                 ## @GFP_NOWAIT
	.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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_idr_preload
Lloh3:
	adrp	x21, __minor_lock@GOTPAGE
Lloh4:
	ldr	x21, [x21, __minor_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock
Lloh5:
	adrp	x8, _MINOR_ALLOCED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MINOR_ALLOCED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _MINORBITS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MINORBITS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w3, w9, w8
Lloh11:
	adrp	x8, _GFP_NOWAIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_NOWAIT@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
Lloh14:
	adrp	x0, __minor_idr@GOTPAGE
Lloh15:
	ldr	x0, [x0, __minor_idr@GOTPAGEOFF]
	mov	w2, #0
	bl	_idr_alloc
	mov	x20, x0
	mov	x0, x21
	bl	_spin_unlock
	bl	_idr_preload_end
	tbnz	w20, #31, LBB0_2
; %bb.1:
	str	w20, [x19]
	mov	w20, #0
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	__minor_lock,4,2                ; @_minor_lock
	.comm	__minor_idr,4,2                 ; @_minor_idr
	.comm	_MINOR_ALLOCED,4,2              ; @MINOR_ALLOCED
	.comm	_MINORBITS,4,2                  ; @MINORBITS
	.comm	_GFP_NOWAIT,4,2                 ; @GFP_NOWAIT
	.no_dead_strip	_next_free_minor
.subsections_via_symbols
