	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_devm_nsio_enable               ## -- Begin function devm_nsio_enable
	.p2align	4, 0x90
_devm_nsio_enable:                      ## @devm_nsio_enable
	.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	%rsi, %rbx
	movq	%rdi, %r12
	leaq	4(%rsi), %r15
	leaq	16(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_resource_size
	movl	%eax, 12(%rbx)
	movl	4(%rbx), %r13d
	movq	%r15, %rdi
	callq	_resource_size
	movl	%eax, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_name
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_devm_request_mem_region
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_nsio_rw_bytes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	leaq	8(%rbx), %r14
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_devm_init_badblocks
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_dev_warn
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	16(%rbx), %edi
	callq	_to_nd_region
	movl	%eax, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_nvdimm_badblocks_populate
	movl	4(%rbx), %r14d
	movq	%r15, %rdi
	callq	_resource_size
	movq	_ARCH_MEMREMAP_PMEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_devm_memremap
	movl	%eax, (%rbx)
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not reserve region %pR\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_nsio_rw_bytes,4,2              ## @nsio_rw_bytes
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ARCH_MEMREMAP_PMEM,4,2         ## @ARCH_MEMREMAP_PMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_devm_nsio_enable               ; -- Begin function devm_nsio_enable
	.p2align	2
_devm_nsio_enable:                      ; @devm_nsio_enable
	.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, x1
	mov	x20, x0
	add	x21, x1, #4
	add	x22, x1, #16
	mov	x0, x21
	bl	_resource_size
	str	w0, [x19, #12]
	ldr	w23, [x19, #4]
	mov	x0, x21
	bl	_resource_size
	mov	x24, x0
	mov	x0, x22
	bl	_dev_name
	mov	x3, x0
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	bl	_devm_request_mem_region
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _nsio_rw_bytes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nsio_rw_bytes@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	add	x22, x19, #8
	mov	x0, x20
	mov	x1, x22
	bl	_devm_init_badblocks
	cbz	x0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_warn
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	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_5:
	ldr	w0, [x19, #16]
	bl	_to_nd_region
	mov	x1, x22
	mov	x2, x21
	bl	_nvdimm_badblocks_populate
	ldr	w22, [x19, #4]
	mov	x0, x21
	bl	_resource_size
	mov	x2, x0
Lloh9:
	adrp	x8, _ARCH_MEMREMAP_PMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ARCH_MEMREMAP_PMEM@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_devm_memremap
	str	w0, [x19]
	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	_PTR_ERR_OR_ZERO
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not reserve region %pR\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_nsio_rw_bytes,4,2              ; @nsio_rw_bytes
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ARCH_MEMREMAP_PMEM,4,2         ; @ARCH_MEMREMAP_PMEM
.subsections_via_symbols
