	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvdimm_bus_register            ## -- Begin function nvdimm_bus_register
	.p2align	4, 0x90
_nvdimm_bus_register:                   ## @nvdimm_bus_register
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	leaq	64(%rax), %rdi
	callq	_INIT_LIST_HEAD
	leaq	60(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	56(%rbx), %rdi
	callq	_init_waitqueue_head
	movl	(%r12), %ecx
	movq	_nd_ida@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ida_simple_get
	movq	%rax, (%rbx)
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	leaq	52(%rbx), %rdi
	callq	_mutex_init
	leaq	48(%rbx), %rdi
	callq	_badrange_init
	movq	%r14, 40(%rbx)
	movq	%rbx, %r12
	addq	$8, %r12
	movq	%r15, 32(%rbx)
	movq	_nvdimm_bus_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 24(%rbx)
	movq	_nvdimm_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_set_name
	movq	%r12, %rdi
	callq	_device_register
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
	movq	%r12, %rdi
	callq	_put_device
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_nd_ida,4,2                     ## @nd_ida
	.comm	_nvdimm_bus_release,4,2         ## @nvdimm_bus_release
	.comm	_nvdimm_bus_type,4,2            ## @nvdimm_bus_type
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ndbus%d"

L_.str.1:                               ## @.str.1
	.asciz	"registration failed: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvdimm_bus_register            ; -- Begin function nvdimm_bus_register
	.p2align	2
_nvdimm_bus_register:                   ; @nvdimm_bus_register
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #72
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	add	x0, x19, #64
	bl	_INIT_LIST_HEAD
	add	x0, x19, #60
	bl	_INIT_LIST_HEAD
	add	x0, x19, #56
	bl	_init_waitqueue_head
	ldr	w3, [x22]
Lloh2:
	adrp	x0, _nd_ida@GOTPAGE
Lloh3:
	ldr	x0, [x0, _nd_ida@GOTPAGEOFF]
	mov	w1, #0
	mov	w2, #0
	bl	_ida_simple_get
	str	x0, [x19]
	tbnz	x0, #63, LBB0_4
; %bb.2:
	add	x0, x19, #52
	bl	_mutex_init
	add	x0, x19, #48
	bl	_badrange_init
	mov	x22, x19
	ldp	w8, w9, [x20]
	str	w8, [x22, #8]!
	stp	x21, x20, [x19, #32]
Lloh4:
	adrp	x8, _nvdimm_bus_release@GOTPAGE
Lloh5:
	ldr	x8, [x8, _nvdimm_bus_release@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	stp	w9, w8, [x19, #24]
Lloh7:
	adrp	x8, _nvdimm_bus_type@GOTPAGE
Lloh8:
	ldr	x8, [x8, _nvdimm_bus_type@GOTPAGEOFF]
	str	x8, [x19, #16]
	ldr	x2, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_set_name
	mov	x0, x22
	bl	_device_register
	cbz	w0, LBB0_6
; %bb.3:
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
	mov	x0, x22
	bl	_put_device
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_kfree
LBB0_5:
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_nd_ida,4,2                     ; @nd_ida
	.comm	_nvdimm_bus_release,4,2         ; @nvdimm_bus_release
	.comm	_nvdimm_bus_type,4,2            ; @nvdimm_bus_type
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ndbus%d"

l_.str.1:                               ; @.str.1
	.asciz	"registration failed: %d\n"

.subsections_via_symbols
