	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hydration_copy
_hydration_copy:                        ## @hydration_copy
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %rsi
	movq	8(%rdi), %r12
	movl	(%r12), %eax
	movl	4(%r12), %ecx
	movl	%r15d, %edx
	addq	%rsi, %rdx
	movslq	8(%r12), %rdi
	cmpq	%rdi, %rdx
	jne	LBB0_2
## %bb.1:
	movq	40(%r12), %rdx
	leal	-1(%rax), %edi
	andl	(%rdx), %edi
	cmovel	%eax, %edi
	movl	%edi, %eax
LBB0_2:
	leal	-1(%r15), %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	addl	%eax, %ebx
	movq	32(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%r12, %rdi
	callq	_region_to_sector
	movl	%eax, -60(%rbp)
	movl	%ebx, -64(%rbp)
	movq	24(%r12), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -40(%rbp)
	movl	%eax, -44(%rbp)
	movl	%ebx, -48(%rbp)
	leaq	16(%r12), %rsi
	movl	%r15d, %edi
	callq	_atomic_add
	movl	12(%r12), %edi
	movq	_hydration_kcopyd_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, (%rsp)
	leaq	-64(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_dm_kcopyd_copy
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hydration_kcopyd_callback,4,2  ## @hydration_kcopyd_callback
	.no_dead_strip	_hydration_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hydration_copy
_hydration_copy:                        ; @hydration_copy
	.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	x21, x1
	mov	x19, x0
	ldp	x1, x20, [x0]
	add	x10, x1, w21, uxtw
	ldp	w8, w9, [x20]
	ldrsw	x11, [x20, #8]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.1:
	ldr	x10, [x20, #40]
	ldr	w10, [x10]
	sub	w11, w8, #1
	ands	w10, w10, w11
	csel	w8, w8, w10, eq
LBB0_2:
	sub	w10, w21, #1
	lsl	w9, w10, w9
	add	w22, w8, w9
	ldr	x8, [x20, #32]
	ldr	w8, [x8]
	str	w8, [sp, #24]
	mov	x0, x20
	bl	_region_to_sector
	stp	w22, w0, [sp, #16]
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
	stp	w0, w8, [sp, #4]
	str	w22, [sp]
	add	x1, x20, #16
	mov	x0, x21
	bl	_atomic_add
	ldr	w0, [x20, #12]
Lloh0:
	adrp	x8, _hydration_kcopyd_callback@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hydration_kcopyd_callback@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
	add	x1, sp, #16
	mov	x3, sp
	mov	w2, #1
	mov	w4, #0
	mov	x6, x19
	bl	_dm_kcopyd_copy
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_hydration_kcopyd_callback,4,2  ; @hydration_kcopyd_callback
	.no_dead_strip	_hydration_copy
.subsections_via_symbols
