	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function minor_get_static
_minor_get_static:                      ## @minor_get_static
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ecx
	cmpl	$16, %edx
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$16, %edx
	xorl	%eax, %eax
	callq	_pr_err
	movl	$-1, %r15d
	jmp	LBB0_8
LBB0_2:
	movl	%esi, %edx
	movl	%esi, %ebx
	shll	$4, %ebx
	addl	%ecx, %ebx
	movq	_N_DEVS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_3
## %bb.4:
	movq	%rdi, %r14
	movq	_used_minors_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_used_minors@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_pr_err
	movl	$-1, %r15d
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_pr_err
	movl	$-1, %r15d
	jmp	LBB0_8
LBB0_6:
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_set_bit
	xorl	%r15d, %r15d
LBB0_7:
	movq	_used_minors_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	_AOE_PARTITIONS@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movl	%ebx, (%r14)
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aoe: %s %d slots per shelf\n"

L_.str.1:                               ## @.str.1
	.asciz	"static minor device numbers support only"

	.comm	_N_DEVS,4,2                     ## @N_DEVS
L_.str.2:                               ## @.str.2
	.asciz	"aoe: %s with e%ld.%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"cannot use static minor device numbers"

	.comm	_used_minors_lock,4,2           ## @used_minors_lock
	.comm	_used_minors,4,2                ## @used_minors
L_.str.4:                               ## @.str.4
	.asciz	"aoe: %s %lu\n"

L_.str.5:                               ## @.str.5
	.asciz	"existing device already has static minor number"

	.comm	_AOE_PARTITIONS,4,2             ## @AOE_PARTITIONS
	.no_dead_strip	_minor_get_static
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function minor_get_static
_minor_get_static:                      ; @minor_get_static
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	cmp	w2, #16
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #16
	b	LBB0_6
LBB0_2:
	mov	x8, x1
	add	w20, w2, w1, lsl #4
Lloh4:
	adrp	x9, _N_DEVS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _N_DEVS@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w20, w9
	b.ge	LBB0_5
; %bb.3:
	mov	x19, x0
Lloh7:
	adrp	x0, _used_minors_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _used_minors_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh9:
	adrp	x21, _used_minors@GOTPAGE
Lloh10:
	ldr	x21, [x21, _used_minors@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_test_bit
	cbz	x0, LBB0_7
; %bb.4:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x20
	bl	_pr_err
	mov	w21, #-1
	b	LBB0_8
LBB0_5:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	str	x2, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x8
LBB0_6:
	bl	_pr_err
	mov	w21, #-1
	b	LBB0_9
LBB0_7:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_set_bit
	mov	w21, #0
LBB0_8:
Lloh19:
	adrp	x0, _used_minors_lock@GOTPAGE
Lloh20:
	ldr	x0, [x0, _used_minors_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
Lloh21:
	adrp	x8, _AOE_PARTITIONS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AOE_PARTITIONS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	mul	w8, w8, w20
	str	w8, [x19]
LBB0_9:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aoe: %s %d slots per shelf\n"

l_.str.1:                               ; @.str.1
	.asciz	"static minor device numbers support only"

	.comm	_N_DEVS,4,2                     ; @N_DEVS
l_.str.2:                               ; @.str.2
	.asciz	"aoe: %s with e%ld.%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"cannot use static minor device numbers"

	.comm	_used_minors_lock,4,2           ; @used_minors_lock
	.comm	_used_minors,4,2                ; @used_minors
l_.str.4:                               ; @.str.4
	.asciz	"aoe: %s %lu\n"

l_.str.5:                               ; @.str.5
	.asciz	"existing device already has static minor number"

	.comm	_AOE_PARTITIONS,4,2             ; @AOE_PARTITIONS
	.no_dead_strip	_minor_get_static
.subsections_via_symbols
