	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_region_size
_parse_region_size:                     ## @parse_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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	_MIN_REGION_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_MAX_REGION_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	L_.str(%rip), %rax
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rdi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rcx
	callq	_dm_read_arg
	movl	%eax, %ecx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	-36(%rbp), %edi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	-36(%rbp), %r15d
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_bdev_logical_block_size
	movl	%eax, %ecx
	sarl	$9, %ecx
	xorl	%r12d, %r12d
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	testl	%edx, %edx
	jne	LBB0_5
## %bb.4:
	movl	-36(%rbp), %r15d
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_bdev_logical_block_size
	movl	%eax, %esi
	sarl	$9, %esi
	xorl	%ecx, %ecx
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%esi
	testl	%edx, %edx
	je	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %ecx
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_7
LBB0_6:
	movl	-36(%rbp), %eax
	movl	%eax, (%r14)
LBB0_7:
	movl	%ecx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_REGION_SIZE,4,2            ## @MIN_REGION_SIZE
	.comm	_MAX_REGION_SIZE,4,2            ## @MAX_REGION_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid region size"

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

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Region size is not a multiple of device logical block size"

	.no_dead_strip	_parse_region_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_region_size
_parse_region_size:                     ; @parse_region_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _MIN_REGION_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIN_REGION_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MAX_REGION_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_REGION_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #8]
	add	x0, sp, #8
	add	x2, sp, #28
	mov	x3, x19
	bl	_dm_read_arg
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w0, [sp, #28]
	bl	_is_power_of_2
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w21, [sp, #28]
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_bdev_logical_block_size
	asr	w8, w0, #9
	udiv	w9, w21, w8
	msub	w8, w9, w8, w21
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	w21, [sp, #28]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_bdev_logical_block_size
	asr	w8, w0, #9
	udiv	w9, w21, w8
	msub	w8, w9, w8, w21
	cbz	w8, LBB0_8
LBB0_4:
Lloh8:
	adrp	x8, l_.str.2@PAGE
Lloh9:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, l_.str.1@PAGE
Lloh11:
	add	x8, x8, l_.str.1@PAGEOFF
LBB0_6:
	str	x8, [x19]
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	mov	w0, #0
	ldr	w8, [sp, #28]
	str	w8, [x20]
	b	LBB0_7
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_REGION_SIZE,4,2            ; @MIN_REGION_SIZE
	.comm	_MAX_REGION_SIZE,4,2            ; @MAX_REGION_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid region size"

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

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Region size is not a multiple of device logical block size"

	.no_dead_strip	_parse_region_size
.subsections_via_symbols
