	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_region_size
_validate_region_size:                  ## @validate_region_size
	.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, %r15
	movq	%rdi, %r12
	movq	16(%rdi), %rax
	movl	(%rax), %eax
	leal	2097151(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	callq	_rs_is_raid0
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	sarl	$21, %ebx
	movslq	%ebx, %rdx
	testq	%r15, %r15
	je	LBB0_2
## %bb.4:
	movq	16(%r12), %rax
	movslq	(%rax), %rcx
	cmpq	%r15, %rcx
	jae	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_6
LBB0_2:
	cmpl	$8193, %ebx                     ## imm = 0x2001
	jb	LBB0_13
## %bb.3:
	movq	%rdx, %rdi
	callq	_roundup_pow_of_two
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_DMINFO
	jmp	LBB0_14
LBB0_7:
	cmpq	%r15, %rdx
	jbe	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	callq	_DMERR
	movq	16(%r12), %rax
	leaq	L_.str.4(%rip), %rcx
	jmp	LBB0_6
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DMINFO
	movl	$8192, %r15d                    ## imm = 0x2000
	jmp	LBB0_14
LBB0_9:
	movq	%r15, %rdi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	cmpq	%r15, (%r12)
	jbe	LBB0_14
## %bb.12:
	movq	16(%r12), %rax
	leaq	L_.str.6(%rip), %rcx
	jmp	LBB0_6
LBB0_14:
	movq	%r15, %rdi
	callq	_to_bytes
	movl	%eax, 8(%r12)
	jmp	LBB0_15
LBB0_10:
	movq	16(%r12), %rax
	leaq	L_.str.5(%rip), %rcx
LBB0_6:
	movq	%rcx, 8(%rax)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_15:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Choosing default region size of %lu sectors"

L_.str.1:                               ## @.str.1
	.asciz	"Choosing default region size of 4MiB"

L_.str.2:                               ## @.str.2
	.asciz	"Supplied region size is too large"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"Supplied region_size (%lu sectors) below minimum (%lu)"

L_.str.4:                               ## @.str.4
	.asciz	"Supplied region size is too small"

L_.str.5:                               ## @.str.5
	.asciz	"Region size is not a power of 2"

L_.str.6:                               ## @.str.6
	.asciz	"Region size is smaller than the chunk size"

	.no_dead_strip	_validate_region_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_region_size
_validate_region_size:                  ; @validate_region_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	mov	w9, #2097151
	add	w9, w8, w9
	cmp	w8, #0
	csel	w21, w9, w8, lt
	bl	_rs_is_raid0
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_17
LBB0_2:
	sbfx	x2, x21, #21, #11
	cbz	x20, LBB0_5
; %bb.3:
	ldr	x8, [x19, #16]
	ldrsw	x9, [x8]
	cmp	x9, x20
	b.hs	LBB0_7
; %bb.4:
Lloh0:
	adrp	x9, l_.str.2@PAGE
Lloh1:
	add	x9, x9, l_.str.2@PAGEOFF
	str	x9, [x8, #8]
	b	LBB0_16
LBB0_5:
	cmp	w2, #2, lsl #12                 ; =8192
	b.ls	LBB0_9
; %bb.6:
	mov	x0, x2
	bl	_roundup_pow_of_two
	mov	x20, x0
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMINFO
	b	LBB0_10
LBB0_7:
	cmp	x2, x20
	b.ls	LBB0_11
; %bb.8:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_DMERR
Lloh6:
	adrp	x8, l_.str.4@PAGE
Lloh7:
	add	x8, x8, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_9:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DMINFO
	mov	w20, #8192
LBB0_10:
	mov	x0, x20
	bl	_to_bytes
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #8]
	b	LBB0_17
LBB0_11:
	mov	x0, x20
	bl	_is_power_of_2
	cbz	w0, LBB0_14
; %bb.12:
	ldr	x8, [x19]
	cmp	x8, x20
	b.ls	LBB0_10
; %bb.13:
Lloh10:
	adrp	x8, l_.str.6@PAGE
Lloh11:
	add	x8, x8, l_.str.6@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh12:
	adrp	x8, l_.str.5@PAGE
Lloh13:
	add	x8, x8, l_.str.5@PAGEOFF
LBB0_15:
	ldr	x9, [x19, #16]
	str	x8, [x9, #8]
LBB0_16:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Choosing default region size of %lu sectors"

l_.str.1:                               ; @.str.1
	.asciz	"Choosing default region size of 4MiB"

l_.str.2:                               ; @.str.2
	.asciz	"Supplied region size is too large"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"Supplied region_size (%lu sectors) below minimum (%lu)"

l_.str.4:                               ; @.str.4
	.asciz	"Supplied region size is too small"

l_.str.5:                               ; @.str.5
	.asciz	"Region size is not a power of 2"

l_.str.6:                               ; @.str.6
	.asciz	"Region size is smaller than the chunk size"

	.no_dead_strip	_validate_region_size
.subsections_via_symbols
