	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_dev
_alloc_dev:                             ## @alloc_dev
	.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	%edi, %ebx
	movl	%edi, -44(%rbp)
	xorl	%eax, %eax
	callq	_dm_get_numa_node
	movl	%eax, %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$120, %edi
	movl	%eax, %edx
	callq	_kvzalloc_node
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_THIS_MODULE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_18
## %bb.3:
	movq	_DM_ANY_MINOR@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_5
## %bb.4:
	leaq	-44(%rbp), %rdi
	callq	_next_free_minor
	testl	%eax, %eax
	jns	LBB0_7
	jmp	LBB0_17
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DMWARN
	jmp	LBB0_19
LBB0_5:
	movl	%ebx, %edi
	callq	_specific_minor
	testl	%eax, %eax
	js	LBB0_17
LBB0_7:
	leaq	112(%r15), %rdi
	callq	_init_srcu_struct
	testl	%eax, %eax
	js	LBB0_16
## %bb.8:
	movl	%r14d, (%r15)
	movl	$0, 4(%r15)
	movq	_DM_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%r15)
	leaq	104(%r15), %rdi
	callq	_mutex_init
	leaq	100(%r15), %rdi
	callq	_mutex_init
	leaq	96(%r15), %rdi
	callq	_mutex_init
	leaq	92(%r15), %rdi
	callq	_spin_lock_init
	leaq	88(%r15), %rdi
	movl	$1, %esi
	callq	_atomic_set
	leaq	84(%r15), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	80(%r15), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	76(%r15), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	72(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	68(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	64(%r15), %rdi
	callq	_spin_lock_init
	movl	(%r13), %edi
	movl	%r14d, %esi
	callq	_blk_alloc_queue_node
	movq	%rax, 40(%r15)
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	movq	%r15, 8(%rax)
	movq	(%rax), %rax
	movq	%r15, (%rax)
	movl	(%r15), %esi
	movl	$1, %edi
	callq	_alloc_disk_node
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	leaq	60(%r15), %rdi
	callq	_init_waitqueue_head
	leaq	56(%r15), %rdi
	movq	_dm_wq_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	52(%r15), %rdi
	callq	_init_waitqueue_head
	leaq	48(%r15), %rdi
	callq	_init_completion
	movq	__major@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	16(%r15), %rcx
	movl	%eax, 32(%rcx)
	movl	-44(%rbp), %eax
	movl	%eax, (%rcx)
	movq	_dm_blk_dops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rcx)
	movq	40(%r15), %rax
	movq	%rax, 16(%rcx)
	movq	%r15, 8(%rcx)
	movl	4(%rcx), %edi
	movl	-44(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_sprintf
	movq	_CONFIG_DAX_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	16(%r15), %rax
	movl	4(%rax), %esi
	movq	_dm_dax_ops@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_alloc_dax
	movl	%eax, 32(%r15)
	testl	%eax, %eax
	je	LBB0_15
LBB0_12:
	movq	16(%r15), %rdi
	callq	_add_disk_no_queue_reg
	movl	28(%r15), %ebx
	movl	(%r14), %edi
	movl	-44(%rbp), %esi
	callq	_MKDEV
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_format_dev_t
	movq	_WQ_MEM_RECLAIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%edx, %edx
	callq	_alloc_workqueue
	movl	%eax, 24(%r15)
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movq	16(%r15), %rdi
	xorl	%esi, %esi
	callq	_bdget_disk
	movl	%eax, 12(%r15)
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	addq	$8, %rdi
	callq	_dm_stats_init
	movq	__minor_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movl	-44(%rbp), %edx
	movq	__minor_idr@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	callq	_idr_replace
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_MINOR_ALLOCED@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rbx
	setne	%dil
	callq	_BUG_ON
	jmp	LBB0_20
LBB0_15:
	movq	%r15, %rdi
	callq	_cleanup_mapped_device
LBB0_16:
	movl	-44(%rbp), %edi
	callq	_free_minor
LBB0_17:
	movl	(%r12), %edi
	callq	_module_put
LBB0_18:
	movq	%r15, %rdi
	callq	_kvfree
LBB0_19:
	xorl	%r15d, %r15d
LBB0_20:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to allocate device, out of memory."

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_DM_ANY_MINOR,4,2               ## @DM_ANY_MINOR
	.comm	_DM_TYPE_NONE,4,2               ## @DM_TYPE_NONE
	.comm	_dm_wq_work,4,2                 ## @dm_wq_work
	.comm	__major,4,2                     ## @_major
	.comm	_dm_blk_dops,4,2                ## @dm_blk_dops
L_.str.1:                               ## @.str.1
	.asciz	"dm-%d"

	.comm	_CONFIG_DAX_DRIVER,4,2          ## @CONFIG_DAX_DRIVER
	.comm	_dm_dax_ops,4,2                 ## @dm_dax_ops
L_.str.2:                               ## @.str.2
	.asciz	"kdmflush"

	.comm	_WQ_MEM_RECLAIM,4,2             ## @WQ_MEM_RECLAIM
	.comm	__minor_lock,4,2                ## @_minor_lock
	.comm	__minor_idr,4,2                 ## @_minor_idr
	.comm	_MINOR_ALLOCED,8,3              ## @MINOR_ALLOCED
	.no_dead_strip	_alloc_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_dev
_alloc_dev:                             ; @alloc_dev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x0
	str	w0, [sp, #12]
	bl	_dm_get_numa_node
	mov	x20, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #120
	mov	x2, x20
	bl	_kvzalloc_node
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x22, _THIS_MODULE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _THIS_MODULE@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_try_module_get
	cbz	w0, LBB0_17
; %bb.2:
Lloh4:
	adrp	x8, _DM_ANY_MINOR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DM_ANY_MINOR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_5
; %bb.3:
	add	x0, sp, #12
	bl	_next_free_minor
	tbz	w0, #31, LBB0_6
	b	LBB0_16
LBB0_4:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMWARN
	b	LBB0_18
LBB0_5:
	mov	x0, x21
	bl	_specific_minor
	tbnz	w0, #31, LBB0_16
LBB0_6:
	add	x0, x19, #112
	bl	_init_srcu_struct
	tbnz	w0, #31, LBB0_15
; %bb.7:
	stp	w20, wzr, [x19]
Lloh9:
	adrp	x8, _DM_TYPE_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DM_TYPE_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #108]
	add	x0, x19, #104
	bl	_mutex_init
	add	x0, x19, #100
	bl	_mutex_init
	add	x0, x19, #96
	bl	_mutex_init
	add	x0, x19, #92
	bl	_spin_lock_init
	add	x0, x19, #88
	mov	w1, #1
	bl	_atomic_set
	add	x0, x19, #84
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #80
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #76
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #72
	bl	_INIT_LIST_HEAD
	add	x0, x19, #68
	bl	_INIT_LIST_HEAD
	add	x0, x19, #64
	bl	_spin_lock_init
	ldr	w0, [x23]
	mov	x1, x20
	bl	_blk_alloc_queue_node
	str	x0, [x19, #40]
	cbz	x0, LBB0_14
; %bb.8:
	str	x19, [x0, #8]
	ldr	x8, [x0]
	str	x19, [x8]
	ldr	w1, [x19]
	mov	w0, #1
	bl	_alloc_disk_node
	str	x0, [x19, #16]
	cbz	x0, LBB0_14
; %bb.9:
	add	x0, x19, #60
	bl	_init_waitqueue_head
	add	x0, x19, #56
Lloh12:
	adrp	x8, _dm_wq_work@GOTPAGE
Lloh13:
	ldr	x8, [x8, _dm_wq_work@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #52
	bl	_init_waitqueue_head
	add	x0, x19, #48
	bl	_init_completion
Lloh15:
	adrp	x21, __major@GOTPAGE
Lloh16:
	ldr	x21, [x21, __major@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	x9, [x19, #16]
	str	w8, [x9, #32]
	ldr	w8, [sp, #12]
	str	w8, [x9]
Lloh17:
	adrp	x8, _dm_blk_dops@GOTPAGE
Lloh18:
	ldr	x8, [x8, _dm_blk_dops@GOTPAGEOFF]
	str	x8, [x9, #24]
	ldr	x8, [x19, #40]
	stp	x19, x8, [x9, #8]
	ldr	w0, [x9, #4]
	ldr	w2, [sp, #12]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sprintf
Lloh21:
	adrp	x8, _CONFIG_DAX_DRIVER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CONFIG_DAX_DRIVER@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x8, [x19, #16]
	ldr	w1, [x8, #4]
Lloh24:
	adrp	x2, _dm_dax_ops@GOTPAGE
Lloh25:
	ldr	x2, [x2, _dm_dax_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	w3, #0
	bl	_alloc_dax
	str	w0, [x19, #32]
	cbz	w0, LBB0_14
LBB0_11:
	ldr	x0, [x19, #16]
	bl	_add_disk_no_queue_reg
	ldr	w20, [x19, #28]
	ldr	w0, [x21]
	ldr	w1, [sp, #12]
	bl	_MKDEV
	mov	x1, x0
	mov	x0, x20
	bl	_format_dev_t
Lloh26:
	adrp	x8, _WQ_MEM_RECLAIM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WQ_MEM_RECLAIM@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w2, #0
	bl	_alloc_workqueue
	str	w0, [x19, #24]
	cbz	w0, LBB0_14
; %bb.12:
	ldr	x0, [x19, #16]
	mov	w1, #0
	bl	_bdget_disk
	str	w0, [x19, #12]
	cbz	w0, LBB0_14
; %bb.13:
	add	x0, x19, #8
	bl	_dm_stats_init
Lloh31:
	adrp	x20, __minor_lock@GOTPAGE
Lloh32:
	ldr	x20, [x20, __minor_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock
	ldr	w2, [sp, #12]
Lloh33:
	adrp	x0, __minor_idr@GOTPAGE
Lloh34:
	ldr	x0, [x0, __minor_idr@GOTPAGEOFF]
	mov	x1, x19
	bl	_idr_replace
	mov	x21, x0
	mov	x0, x20
	bl	_spin_unlock
Lloh35:
	adrp	x8, _MINOR_ALLOCED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MINOR_ALLOCED@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cmp	x21, x8
	cset	w0, ne
	bl	_BUG_ON
	b	LBB0_18
LBB0_14:
	mov	x0, x19
	bl	_cleanup_mapped_device
LBB0_15:
	ldr	w0, [sp, #12]
	bl	_free_minor
LBB0_16:
	ldr	w0, [x22]
	bl	_module_put
LBB0_17:
	mov	x0, x19
	bl	_kvfree
	mov	x19, #0
LBB0_18:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to allocate device, out of memory."

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_DM_ANY_MINOR,4,2               ; @DM_ANY_MINOR
	.comm	_DM_TYPE_NONE,4,2               ; @DM_TYPE_NONE
	.comm	_dm_wq_work,4,2                 ; @dm_wq_work
	.comm	__major,4,2                     ; @_major
	.comm	_dm_blk_dops,4,2                ; @dm_blk_dops
l_.str.1:                               ; @.str.1
	.asciz	"dm-%d"

	.comm	_CONFIG_DAX_DRIVER,4,2          ; @CONFIG_DAX_DRIVER
	.comm	_dm_dax_ops,4,2                 ; @dm_dax_ops
l_.str.2:                               ; @.str.2
	.asciz	"kdmflush"

	.comm	_WQ_MEM_RECLAIM,4,2             ; @WQ_MEM_RECLAIM
	.comm	__minor_lock,4,2                ; @_minor_lock
	.comm	__minor_idr,4,2                 ; @_minor_idr
	.comm	_MINOR_ALLOCED,8,3              ; @MINOR_ALLOCED
	.no_dead_strip	_alloc_dev
.subsections_via_symbols
