	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blk_alloc_devt                 ## -- Begin function blk_alloc_devt
	.p2align	4, 0x90
_blk_alloc_devt:                        ## @blk_alloc_devt
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_part_to_disk
	movq	(%rbx), %rsi
	cmpq	(%rax), %rsi
	jge	LBB0_1
## %bb.12:
	movl	16(%rax), %edi
	addq	8(%rax), %rsi
	callq	_MKDEV
	movl	%eax, (%r14)
LBB0_10:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_ext_devt_idr@GOTPCREL(%rip), %r15
	movq	_ext_devt_mutex@GOTPCREL(%rip), %r12
	movq	_EAGAIN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_idr_pre_get
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	-44(%rbp), %rdx
	callq	_idr_get_new
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	(%r13), %eax
	addl	%r14d, %eax
	je	LBB0_2
## %bb.6:
	testl	%r14d, %r14d
	jne	LBB0_11
## %bb.7:
	movl	-44(%rbp), %edi
	movq	_MAX_EXT_DEVT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jle	LBB0_9
## %bb.8:
	movq	_ext_devt_mutex@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	-44(%rbp), %esi
	movq	_ext_devt_idr@GOTPCREL(%rip), %rdi
	callq	_idr_remove
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_BLOCK_EXT_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_blk_mangle_minor
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_MKDEV
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ext_devt_idr,4,2               ## @ext_devt_idr
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ext_devt_mutex,4,2             ## @ext_devt_mutex
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_MAX_EXT_DEVT,4,2               ## @MAX_EXT_DEVT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_BLOCK_EXT_MAJOR,4,2            ## @BLOCK_EXT_MAJOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blk_alloc_devt                 ; -- Begin function blk_alloc_devt
	.p2align	2
_blk_alloc_devt:                        ; @blk_alloc_devt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_part_to_disk
	ldr	x9, [x20]
	ldr	x8, [x0]
	cmp	x9, x8
	b.ge	LBB0_3
; %bb.1:
	ldr	w8, [x0, #16]
	ldr	x10, [x0, #8]
	add	x1, x10, x9
	mov	x0, x8
LBB0_2:
	bl	_MKDEV
	mov	w23, #0
	str	w0, [x19]
	b	LBB0_11
LBB0_3:
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	adrp	x21, _ext_devt_idr@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ext_devt_idr@GOTPAGEOFF]
Lloh4:
	adrp	x22, _ext_devt_mutex@GOTPAGE
Lloh5:
	ldr	x22, [x22, _ext_devt_mutex@GOTPAGEOFF]
Lloh6:
	adrp	x25, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x25, [x25, _EAGAIN@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x21
	bl	_idr_pre_get
	cbz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_mutex_lock
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_idr_get_new
	mov	x23, x0
	mov	x0, x22
	bl	_mutex_unlock
	ldr	w8, [x25]
	cmn	w23, w8
	b.eq	LBB0_4
; %bb.6:
	cbnz	w23, LBB0_11
; %bb.7:
	ldr	w0, [sp, #12]
Lloh8:
	adrp	x8, _MAX_EXT_DEVT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_EXT_DEVT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_12
; %bb.8:
Lloh11:
	adrp	x19, _ext_devt_mutex@GOTPAGE
Lloh12:
	ldr	x19, [x19, _ext_devt_mutex@GOTPAGEOFF]
	mov	x0, x19
	bl	_mutex_lock
	ldr	w1, [sp, #12]
Lloh13:
	adrp	x0, _ext_devt_idr@GOTPAGE
Lloh14:
	ldr	x0, [x0, _ext_devt_idr@GOTPAGEOFF]
	bl	_idr_remove
	mov	x0, x19
	bl	_mutex_unlock
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_11:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
Lloh19:
	adrp	x8, _BLOCK_EXT_MAJOR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BLOCK_EXT_MAJOR@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	bl	_blk_mangle_minor
	mov	x1, x0
	mov	x0, x20
	b	LBB0_2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ext_devt_idr,4,2               ; @ext_devt_idr
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ext_devt_mutex,4,2             ; @ext_devt_mutex
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_MAX_EXT_DEVT,4,2               ; @MAX_EXT_DEVT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_BLOCK_EXT_MAJOR,4,2            ; @BLOCK_EXT_MAJOR
.subsections_via_symbols
