	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function md_import_device
_md_import_device:                      ## @md_import_device
	.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
	movl	%edx, %r13d
	movl	%esi, %r15d
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BDEVNAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %ebx
	movq	%rax, %rdi
	callq	_md_rdev_init
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movq	%r12, %rdi
	callq	_alloc_disk_sb
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	xorl	%edx, %edx
	cmpl	$-2, %r15d
	sete	%dl
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_lock_rdev
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_6
LBB0_13:
	cmpq	$0, (%r12)
	je	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	callq	_unlock_rdev
LBB0_15:
	movq	%r12, %rdi
	callq	_md_rdev_clear
	movq	%r12, %rdi
	callq	_kfree
	movl	%r13d, %edi
	callq	_ERR_PTR
	movq	%rax, %r12
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movq	%r12, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.2:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_6:
	movq	%r12, %rdi
	addq	$8, %rdi
	movq	_rdev_ktype@GOTPCREL(%rip), %rsi
	callq	_kobject_init
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_i_size_read
	movq	_BLOCK_SIZE_BITS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	testl	%r15d, %r15d
	js	LBB0_16
## %bb.9:
	movq	_super_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r15d, %ecx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	*(%rax,%rcx,8)
	movl	%eax, %r13d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	jne	LBB0_11
## %bb.10:
	movq	(%r12), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_bdevname
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_13
LBB0_7:
	movq	(%r12), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_bdevname
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_13
LBB0_11:
	testl	%r13d, %r13d
	jns	LBB0_16
## %bb.12:
	movq	(%r12), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_bdevname
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_13
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BDEVNAME_SIZE,4,2              ## @BDEVNAME_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_rdev_ktype,4,2                 ## @rdev_ktype
	.comm	_BLOCK_SIZE_BITS,4,2            ## @BLOCK_SIZE_BITS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md: %s has zero or unknown size, marking faulty!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_super_types,8,3                ## @super_types
L_.str.1:                               ## @.str.1
	.asciz	"md: %s does not have a valid v%d.%d superblock, not importing!\n"

L_.str.2:                               ## @.str.2
	.asciz	"md: could not read %s's sb, not importing!\n"

	.no_dead_strip	_md_import_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function md_import_device
_md_import_device:                      ; @md_import_device
	.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
	sub	sp, sp, #16
	mov	x21, x2
	mov	x20, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _BDEVNAME_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BDEVNAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	bl	_md_rdev_init
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_alloc_disk_sb
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.3:
	cmn	w20, #2
	cset	w2, eq
	mov	x0, x19
	mov	x1, x24
	bl	_lock_rdev
	mov	x23, x0
	cbz	w0, LBB0_11
LBB0_4:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_unlock_rdev
LBB0_6:
	mov	x0, x19
	bl	_md_rdev_clear
	mov	x0, x19
	bl	_kfree
	mov	x0, x23
	bl	_ERR_PTR
	mov	x19, x0
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.8:
	mov	x0, x19
	sub	sp, x29, #48
	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
LBB0_9:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldur	x9, [x29, #-56]
Lloh17:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_18
; %bb.10:
	neg	w0, w8
	sub	sp, x29, #48
	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
	b	_ERR_PTR
LBB0_11:
	add	x0, x19, #8
Lloh20:
	adrp	x1, _rdev_ktype@GOTPAGE
Lloh21:
	ldr	x1, [x1, _rdev_ktype@GOTPAGEOFF]
	bl	_kobject_init
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_i_size_read
Lloh22:
	adrp	x8, _BLOCK_SIZE_BITS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BLOCK_SIZE_BITS@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	asr	w8, w0, w8
	cbz	w8, LBB0_15
; %bb.12:
	tbnz	w20, #31, LBB0_7
; %bb.13:
Lloh25:
	adrp	x8, _super_types@GOTPAGE
Lloh26:
	ldr	x8, [x8, _super_types@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldr	x8, [x8, w20, uxtw #3]
	mov	x0, x19
	mov	x1, #0
	mov	x2, x21
	blr	x8
	mov	x23, x0
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_16
; %bb.14:
	ldr	x0, [x19]
	mov	x1, x22
	bl	_bdevname
	mov	x1, x0
	stp	x20, x21, [sp, #-16]!
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
	add	sp, sp, #16
	b	LBB0_4
LBB0_15:
	ldr	x0, [x19]
	mov	x1, x22
	bl	_bdevname
	mov	x1, x0
Lloh33:
	adrp	x0, l_.str@PAGE
Lloh34:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
Lloh35:
	adrp	x8, _EINVAL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_4
LBB0_16:
	tbz	w23, #31, LBB0_7
; %bb.17:
	ldr	x0, [x19]
	mov	x1, x22
	bl	_bdevname
	mov	x1, x0
Lloh38:
	adrp	x0, l_.str.2@PAGE
Lloh39:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_warn
	b	LBB0_4
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_BDEVNAME_SIZE,4,2              ; @BDEVNAME_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_rdev_ktype,4,2                 ; @rdev_ktype
	.comm	_BLOCK_SIZE_BITS,4,2            ; @BLOCK_SIZE_BITS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md: %s has zero or unknown size, marking faulty!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_super_types,8,3                ; @super_types
l_.str.1:                               ; @.str.1
	.asciz	"md: %s does not have a valid v%d.%d superblock, not importing!\n"

l_.str.2:                               ; @.str.2
	.asciz	"md: could not read %s's sb, not importing!\n"

	.no_dead_strip	_md_import_device
.subsections_via_symbols
