	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlbd_reserve_minors
_xlbd_reserve_minors:                   ## @xlbd_reserve_minors
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	leal	(%r14,%rbx), %r15d
	movq	_nr_minors@GOTPCREL(%rip), %r13
	cmpl	(%r13), %r15d
	jbe	LBB0_6
## %bb.1:
	movl	%r15d, %edi
	callq	_BITS_TO_LONGS
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	movq	_minor_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movl	(%r13), %edi
	cmpl	%edi, %r15d
	jbe	LBB0_5
## %bb.4:
	movq	_minors@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_BITS_TO_LONGS
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,8), %edx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movq	_minors@GOTPCREL(%rip), %rax
	movq	%r12, (%rax)
	movl	%r15d, %edi
	callq	_BITS_TO_LONGS
	movq	_BITS_PER_LONG@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, (%r13)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_5:
	movq	_minor_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	movq	%r12, %rdi
	callq	_kfree
LBB0_6:
	movq	_minor_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_minors@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_find_next_bit
	cmpl	%r15d, %eax
	jae	LBB0_7
## %bb.9:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_10
LBB0_7:
	xorl	%r12d, %r12d
	cmpl	%ebx, %r15d
	jbe	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	movl	%ebx, %edi
	callq	___set_bit
	incl	%ebx
	decl	%r14d
	jne	LBB0_8
LBB0_10:
	movq	_minor_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_nr_minors,4,2                  ## @nr_minors
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_minor_lock,4,2                 ## @minor_lock
	.comm	_minors,8,3                     ## @minors
	.comm	_BITS_PER_LONG,4,2              ## @BITS_PER_LONG
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_xlbd_reserve_minors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlbd_reserve_minors
_xlbd_reserve_minors:                   ; @xlbd_reserve_minors
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _nr_minors@GOTPAGE
Lloh1:
	ldr	x24, [x24, _nr_minors@GOTPAGEOFF]
	ldr	w8, [x24]
	add	w21, w1, w0
	cmp	w21, w8
	b.ls	LBB0_5
; %bb.1:
	mov	x0, x21
	bl	_BITS_TO_LONGS
	lsl	w0, w0, #3
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.2:
	mov	x22, x0
Lloh5:
	adrp	x0, _minor_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _minor_lock@GOTPAGEOFF]
	bl	_spin_lock
	ldr	w0, [x24]
	cmp	w21, w0
	b.ls	LBB0_4
; %bb.3:
Lloh7:
	adrp	x25, _minors@GOTPAGE
Lloh8:
	ldr	x25, [x25, _minors@GOTPAGEOFF]
	ldr	x23, [x25]
	bl	_BITS_TO_LONGS
	lsl	w2, w0, #3
	mov	x0, x22
	mov	x1, x23
	bl	_memcpy
	str	x22, [x25]
	mov	x0, x21
	bl	_BITS_TO_LONGS
Lloh9:
	adrp	x8, _BITS_PER_LONG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BITS_PER_LONG@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mul	w8, w8, w0
	str	w8, [x24]
	mov	x22, x23
LBB0_4:
Lloh12:
	adrp	x0, _minor_lock@GOTPAGE
Lloh13:
	ldr	x0, [x0, _minor_lock@GOTPAGEOFF]
	bl	_spin_unlock
	mov	x0, x22
	bl	_kfree
LBB0_5:
Lloh14:
	adrp	x0, _minor_lock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _minor_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh16:
	adrp	x22, _minors@GOTPAGE
Lloh17:
	ldr	x22, [x22, _minors@GOTPAGEOFF]
	ldr	x0, [x22]
	mov	x1, x21
	mov	x2, x20
	bl	_find_next_bit
	cmp	w0, w21
	b.hs	LBB0_7
; %bb.6:
Lloh18:
	adrp	x8, _EBUSY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_10
LBB0_7:
	cmp	w21, w20
	b.ls	LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x22]
	mov	x0, x20
	bl	___set_bit
	add	w20, w20, #1
	subs	w19, w19, #1
	b.ne	LBB0_8
	b	LBB0_10
LBB0_9:
	mov	w19, #0
LBB0_10:
Lloh21:
	adrp	x0, _minor_lock@GOTPAGE
Lloh22:
	ldr	x0, [x0, _minor_lock@GOTPAGEOFF]
	bl	_spin_unlock
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_nr_minors,4,2                  ; @nr_minors
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_minor_lock,4,2                 ; @minor_lock
	.comm	_minors,8,3                     ; @minors
	.comm	_BITS_PER_LONG,4,2              ; @BITS_PER_LONG
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_xlbd_reserve_minors
.subsections_via_symbols
