	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_exception_store_set_chunk_size ## -- Begin function dm_exception_store_set_chunk_size
	.p2align	4, 0x90
_dm_exception_store_set_chunk_size:     ## @dm_exception_store_set_chunk_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	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	12(%r14), %edi
	callq	_dm_snap_cow
	movl	(%rax), %edi
	callq	_bdev_logical_block_size
	movl	%eax, %ecx
	sarl	$9, %ecx
	xorl	%ebx, %ebx
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	testl	%edx, %edx
	jne	LBB0_3
## %bb.2:
	movl	12(%r14), %edi
	callq	_dm_snap_origin
	movl	(%rax), %edi
	callq	_bdev_logical_block_size
	movl	%eax, %ecx
	sarl	$9, %ecx
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	testl	%edx, %edx
	je	LBB0_8
LBB0_3:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rax
LBB0_5:
	movq	%rax, (%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %eax
	cmpl	%r12d, %eax
	jae	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_5
LBB0_10:
	movl	%r12d, (%r14)
	leal	-1(%r12), %eax
	movl	%eax, 4(%r14)
	movl	%r12d, %edi
	callq	___ffs
	movl	%eax, 8(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Chunk size is not a power of 2"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Chunk size is not a multiple of device blocksize"

	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_SECTOR_SHIFT,4,2               ## @SECTOR_SHIFT
L_.str.2:                               ## @.str.2
	.asciz	"Chunk size is too high"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_exception_store_set_chunk_size ; -- Begin function dm_exception_store_set_chunk_size
	.p2align	2
_dm_exception_store_set_chunk_size:     ; @dm_exception_store_set_chunk_size
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_is_power_of_2
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w0, [x19, #12]
	bl	_dm_snap_cow
	ldr	w0, [x0]
	bl	_bdev_logical_block_size
	asr	w8, w0, #9
	udiv	w9, w21, w8
	msub	w8, w9, w8, w21
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	w0, [x19, #12]
	bl	_dm_snap_origin
	ldr	w0, [x0]
	bl	_bdev_logical_block_size
	asr	w8, w0, #9
	udiv	w9, w21, w8
	msub	w8, w9, w8, w21
	cbz	w8, LBB0_7
LBB0_3:
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
LBB0_5:
	str	x8, [x20]
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh7:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _SECTOR_SHIFT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SECTOR_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	cmp	w8, w21
	b.hs	LBB0_9
; %bb.8:
Lloh13:
	adrp	x8, l_.str.2@PAGE
Lloh14:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_9:
	sub	w8, w21, #1
	stp	w21, w8, [x19]
	mov	x0, x21
	bl	___ffs
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #8]
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Chunk size is not a power of 2"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Chunk size is not a multiple of device blocksize"

	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_SECTOR_SHIFT,4,2               ; @SECTOR_SHIFT
l_.str.2:                               ; @.str.2
	.asciz	"Chunk size is too high"

.subsections_via_symbols
