	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsblk_attach_disk
_nsblk_attach_disk:                     ## @nsblk_attach_disk
	.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
	movq	%rdi, %r13
	movl	4(%rdi), %ebx
	callq	_nsblk_internal_lbasize
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_div_u64
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_nsblk_sector_size
	movl	%eax, %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_blk_alloc_queue
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	_nd_blk_release_queue@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_devm_add_action_or_reset
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
LBB0_3:
	subl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_nd_blk_make_request@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_blk_queue_make_request
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_blk_queue_max_hw_sectors
	movq	%r13, %rdi
	callq	_nsblk_sector_size
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_blk_queue_logical_block_size
	movq	_QUEUE_FLAG_NONROT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_blk_queue_flag_set
	movq	%r13, 32(%rbx)
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_alloc_disk
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %r12
	movq	$0, 24(%rax)
	movq	_nd_blk_fops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	movq	%rbx, 8(%r12)
	movq	_GENHD_FL_EXT_DEVT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_nvdimm_namespace_disk_name
	movq	_nd_blk_release_disk@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_devm_add_action_or_reset
	testq	%rax, %rax
	jne	LBB0_2
## %bb.7:
	movq	%r13, %rdi
	callq	_nsblk_meta_size
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	callq	_nsblk_meta_size
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_nd_integrity_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_4
LBB0_9:
	imull	-44(%rbp), %r14d                ## 4-byte Folded Reload
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_set_capacity
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_device_add_disk
	movq	%r12, %rdi
	callq	_revalidate_disk
	jmp	LBB0_4
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nd_blk_release_queue,4,2       ## @nd_blk_release_queue
	.comm	_nd_blk_make_request,4,2        ## @nd_blk_make_request
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_QUEUE_FLAG_NONROT,4,2          ## @QUEUE_FLAG_NONROT
	.comm	_nd_blk_fops,4,2                ## @nd_blk_fops
	.comm	_GENHD_FL_EXT_DEVT,4,2          ## @GENHD_FL_EXT_DEVT
	.comm	_nd_blk_release_disk,4,2        ## @nd_blk_release_disk
	.comm	_SECTOR_SHIFT,4,2               ## @SECTOR_SHIFT
	.no_dead_strip	_nsblk_attach_disk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsblk_attach_disk
_nsblk_attach_disk:                     ; @nsblk_attach_disk
	.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
	mov	x19, x0
	ldr	w20, [x0, #4]
	bl	_nsblk_internal_lbasize
	mov	x1, x0
	mov	x0, x20
	bl	_div_u64
	mov	x20, x0
	mov	x0, x19
	bl	_nsblk_sector_size
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_blk_alloc_queue
	cbz	x0, LBB0_2
; %bb.1:
	mov	x23, x0
Lloh3:
	adrp	x8, _nd_blk_release_queue@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nd_blk_release_queue@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_devm_add_action_or_reset
	cbz	x0, LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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_4:
Lloh9:
	adrp	x8, _nd_blk_make_request@GOTPAGE
Lloh10:
	ldr	x8, [x8, _nd_blk_make_request@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_blk_queue_make_request
Lloh12:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_blk_queue_max_hw_sectors
	mov	x0, x19
	bl	_nsblk_sector_size
	mov	x1, x0
	mov	x0, x23
	bl	_blk_queue_logical_block_size
Lloh15:
	adrp	x8, _QUEUE_FLAG_NONROT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QUEUE_FLAG_NONROT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_blk_queue_flag_set
	str	x19, [x23, #32]
	mov	w0, #0
	bl	_alloc_disk
	cbz	x0, LBB0_2
; %bb.5:
	mov	x22, x0
	str	xzr, [x0, #24]
Lloh18:
	adrp	x8, _nd_blk_fops@GOTPAGE
Lloh19:
	ldr	x8, [x8, _nd_blk_fops@GOTPAGEOFF]
	stp	x23, x8, [x0, #8]
Lloh20:
	adrp	x8, _GENHD_FL_EXT_DEVT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GENHD_FL_EXT_DEVT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	ldr	w1, [x0]
	mov	x0, x19
	bl	_nvdimm_namespace_disk_name
Lloh23:
	adrp	x8, _nd_blk_release_disk@GOTPAGE
Lloh24:
	ldr	x8, [x8, _nd_blk_release_disk@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_devm_add_action_or_reset
	cbnz	x0, LBB0_2
; %bb.6:
	mov	x0, x19
	bl	_nsblk_meta_size
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_nsblk_meta_size
	mov	x1, x0
	mov	x0, x22
	bl	_nd_integrity_init
	cbnz	w0, LBB0_3
LBB0_8:
	mul	w8, w21, w20
Lloh26:
	adrp	x9, _SECTOR_SHIFT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SECTOR_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	asr	w1, w8, w9
	mov	x0, x22
	bl	_set_capacity
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	bl	_device_add_disk
	mov	x0, x22
	bl	_revalidate_disk
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nd_blk_release_queue,4,2       ; @nd_blk_release_queue
	.comm	_nd_blk_make_request,4,2        ; @nd_blk_make_request
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_QUEUE_FLAG_NONROT,4,2          ; @QUEUE_FLAG_NONROT
	.comm	_nd_blk_fops,4,2                ; @nd_blk_fops
	.comm	_GENHD_FL_EXT_DEVT,4,2          ; @GENHD_FL_EXT_DEVT
	.comm	_nd_blk_release_disk,4,2        ; @nd_blk_release_disk
	.comm	_SECTOR_SHIFT,4,2               ; @SECTOR_SHIFT
	.no_dead_strip	_nsblk_attach_disk
.subsections_via_symbols
