	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dev_dax_kmem_probe             ## -- Begin function dev_dax_kmem_probe
	.p2align	4, 0x90
_dev_dax_kmem_probe:                    ## @dev_dax_kmem_probe
	.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
	movq	%rdi, %r13
	callq	_to_dev_dax
	movq	16(%rax), %rbx
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	js	LBB0_1
## %bb.2:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r15d
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_memory_block_size_bytes
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ALIGN
	movl	%eax, %r15d
	movl	%eax, -52(%rbp)
	movq	%rbx, %rdi
	callq	_resource_size
	movl	%eax, %r14d
	subl	%r15d, %r14d
	addl	(%rbx), %r14d
	xorl	%eax, %eax
	callq	_memory_block_size_bytes
	negl	%eax
	andl	%eax, %r14d
	leal	(%r14,%r15), %eax
	movl	%eax, -48(%rbp)
	movq	%r13, %rdi
	callq	_dev_name
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_request_mem_region
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	_IORESOURCE_SYSTEM_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r13, %rdi
	callq	_dev_name
	movl	%eax, 4(%rbx)
	movl	(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_resource_size
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_add_memory
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_release_resource
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, 8(%rax)
	xorl	%r12d, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rejecting DAX region %pR with invalid node: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"could not reserve region [%pa-%pa]\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IORESOURCE_SYSTEM_RAM,4,2      ## @IORESOURCE_SYSTEM_RAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dev_dax_kmem_probe             ; -- Begin function dev_dax_kmem_probe
	.p2align	2
_dev_dax_kmem_probe:                    ; @dev_dax_kmem_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
	bl	_to_dev_dax
	ldr	x22, [x0, #16]
	ldr	w21, [x0]
	tbnz	w21, #31, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w23, [x22]
	bl	_memory_block_size_bytes
	mov	x1, x0
	mov	x0, x23
	bl	_ALIGN
	mov	x23, x0
	str	w0, [sp, #28]
	mov	x0, x22
	bl	_resource_size
	ldr	w8, [x22]
	sub	w9, w0, w23
	add	w22, w9, w8
	bl	_memory_block_size_bytes
	neg	w8, w0
	and	w22, w22, w8
	add	w8, w22, w23
	str	w8, [sp, #24]
	mov	x0, x20
	bl	_dev_name
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_request_mem_region
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x8, _IORESOURCE_SYSTEM_RAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_SYSTEM_RAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	mov	x0, x20
	bl	_dev_name
	str	w0, [x22, #4]
	ldr	w20, [x22]
	mov	x0, x22
	bl	_resource_size
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_add_memory
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x22
	bl	_release_resource
	mov	x0, x22
	bl	_kfree
	b	LBB0_8
LBB0_4:
	stp	x22, x21, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	add	x8, sp, #24
	add	x9, sp, #28
	stp	x9, x8, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_7:
	str	x22, [x19, #8]
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rejecting DAX region %pR with invalid node: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"could not reserve region [%pa-%pa]\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IORESOURCE_SYSTEM_RAM,4,2      ; @IORESOURCE_SYSTEM_RAM
.subsections_via_symbols
