	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___nd_device_register           ## -- Begin function __nd_device_register
	.p2align	4, 0x90
___nd_device_register:                  ## @__nd_device_register
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_is_nd_region
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_to_nd_region
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_set_dev_node
LBB0_3:
	movq	_nvdimm_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	callq	_get_device
	movq	%rbx, %rdi
	callq	_dev_to_node
	movq	_NUMA_NO_NODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	(%rbx), %rdi
	callq	_dev_to_node
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_set_dev_node
LBB0_6:
	movq	%rbx, %rdi
	callq	_get_device
	movq	_nd_async_device_register@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_nd_async_domain@GOTPCREL(%rip), %rdx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_async_schedule_dev_domain      ## TAILCALL
LBB0_7:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nvdimm_bus_type,4,2            ## @nvdimm_bus_type
	.comm	_NUMA_NO_NODE,8,3               ## @NUMA_NO_NODE
	.comm	_nd_async_device_register,4,2   ## @nd_async_device_register
	.comm	_nd_async_domain,4,2            ## @nd_async_domain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___nd_device_register           ; -- Begin function __nd_device_register
	.p2align	2
___nd_device_register:                  ; @__nd_device_register
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_7
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_is_nd_region
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_to_nd_region
	ldr	x1, [x0]
	mov	x0, x19
	bl	_set_dev_node
LBB0_3:
Lloh0:
	adrp	x8, _nvdimm_bus_type@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nvdimm_bus_type@GOTPAGEOFF]
	str	x8, [x19, #8]
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.4:
	bl	_get_device
	mov	x0, x19
	bl	_dev_to_node
Lloh2:
	adrp	x8, _NUMA_NO_NODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NUMA_NO_NODE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
	ldr	x0, [x19]
	bl	_dev_to_node
	mov	x1, x0
	mov	x0, x19
	bl	_set_dev_node
LBB0_6:
	mov	x0, x19
	bl	_get_device
Lloh5:
	adrp	x8, _nd_async_device_register@GOTPAGE
Lloh6:
	ldr	x8, [x8, _nd_async_device_register@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x2, _nd_async_domain@GOTPAGE
Lloh9:
	ldr	x2, [x2, _nd_async_domain@GOTPAGEOFF]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_async_schedule_dev_domain
LBB0_7:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_nvdimm_bus_type,4,2            ; @nvdimm_bus_type
	.comm	_NUMA_NO_NODE,8,3               ; @NUMA_NO_NODE
	.comm	_nd_async_device_register,4,2   ; @nd_async_device_register
	.comm	_nd_async_domain,4,2            ; @nd_async_domain
.subsections_via_symbols
