	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __fsi_get_new_minor
___fsi_get_new_minor:                   ## @__fsi_get_new_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	%rcx, %r15
	movq	%rdx, %r14
	cmpl	$3, %esi
	ja	LBB0_4
## %bb.1:
	movl	(%rdi), %r12d
	cmpl	$15, %r12d
	ja	LBB0_4
## %bb.2:
	movl	%r12d, %eax
	shll	$4, %eax
	orl	%esi, %eax
	leal	1(%rax), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_fsi_minor_ida@GOTPCREL(%rip), %rdi
	movl	%eax, %esi
	callq	_ida_simple_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_5
## %bb.3:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_6
LBB0_4:
	movq	_FSI_CHAR_LEGACY_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FSI_CHAR_MAX_DEVICES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_fsi_minor_ida@GOTPCREL(%rip), %rdi
	callq	_ida_simple_get
	movl	%eax, %r12d
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
LBB0_5:
	movl	%r12d, %edi
	callq	_fsi_adjust_index
	movl	%eax, (%r15)
	movq	_fsi_base_dev@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addq	(%rax), %rcx
	movq	%rcx, (%r14)
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fsi_minor_ida,4,2              ## @fsi_minor_ida
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_fsi_base_dev,8,3               ## @fsi_base_dev
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_FSI_CHAR_LEGACY_TOP,4,2        ## @FSI_CHAR_LEGACY_TOP
	.comm	_FSI_CHAR_MAX_DEVICES,4,2       ## @FSI_CHAR_MAX_DEVICES
	.no_dead_strip	___fsi_get_new_minor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __fsi_get_new_minor
___fsi_get_new_minor:                   ; @__fsi_get_new_minor
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x3
	mov	x19, x2
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	cmp	w1, #3
	b.hi	LBB0_4
; %bb.1:
	ldr	w21, [x0]
	cmp	w21, #15
	b.hi	LBB0_4
; %bb.2:
	orr	w1, w1, w21, lsl #4
	add	w2, w1, #1
	ldr	w3, [x23]
Lloh2:
	adrp	x0, _fsi_minor_ida@GOTPAGE
Lloh3:
	ldr	x0, [x0, _fsi_minor_ida@GOTPAGEOFF]
	bl	_ida_simple_get
	mov	x22, x0
	tbz	w0, #31, LBB0_5
; %bb.3:
Lloh4:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmn	w22, w8
	b.ne	LBB0_6
LBB0_4:
Lloh7:
	adrp	x8, _FSI_CHAR_LEGACY_TOP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FSI_CHAR_LEGACY_TOP@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _FSI_CHAR_MAX_DEVICES@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FSI_CHAR_MAX_DEVICES@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	ldr	w3, [x23]
Lloh13:
	adrp	x0, _fsi_minor_ida@GOTPAGE
Lloh14:
	ldr	x0, [x0, _fsi_minor_ida@GOTPAGEOFF]
	bl	_ida_simple_get
	mov	x21, x0
	mov	x22, x0
	tbnz	w0, #31, LBB0_6
LBB0_5:
	mov	x0, x21
	bl	_fsi_adjust_index
	str	w0, [x20]
Lloh15:
	adrp	x8, _fsi_base_dev@GOTPAGE
Lloh16:
	ldr	x8, [x8, _fsi_base_dev@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x8, x8, w22, uxtw
	str	x8, [x19]
	mov	w22, #0
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_fsi_minor_ida,4,2              ; @fsi_minor_ida
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_fsi_base_dev,8,3               ; @fsi_base_dev
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_FSI_CHAR_LEGACY_TOP,4,2        ; @FSI_CHAR_LEGACY_TOP
	.comm	_FSI_CHAR_MAX_DEVICES,4,2       ; @FSI_CHAR_MAX_DEVICES
	.no_dead_strip	___fsi_get_new_minor
.subsections_via_symbols
