	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hydrate_bio_region
_hydrate_bio_region:                    ## @hydrate_bio_region
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_bio_to_region
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_get_hash_table_bucket
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_bucket_lock_irqsave
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	___hash_find
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_bio_list_add
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bucket_unlock_irqrestore       ## TAILCALL
LBB0_1:
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_dm_clone_is_region_hydrated
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_bucket_unlock_irqrestore
	testq	%r12, %r12
	jne	LBB0_4
## %bb.2:
	movq	%r13, %rdi
	callq	_alloc_hydration
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_hydration_init
	movq	%r15, %rdi
	callq	_bucket_lock_irqsave
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_dm_clone_is_region_hydrated
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_bucket_unlock_irqrestore
	movq	%r12, %rdi
	callq	_free_hydration
LBB0_4:
	movq	%r13, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_issue_bio                      ## TAILCALL
LBB0_5:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	___find_or_insert_region_hydration
	cmpq	%r12, %rax
	je	LBB0_6
## %bb.10:
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_bio_list_add
	movq	%r15, %rdi
	callq	_bucket_unlock_irqrestore
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_hydration                 ## TAILCALL
LBB0_6:
	movq	%r13, %rdi
	callq	_get_clone_mode
	movq	_CM_READ_ONLY@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.11:
	movq	%r12, %rdi
	addq	$4, %rdi
	callq	_hlist_del
	movq	%r15, %rdi
	callq	_bucket_unlock_irqrestore
	movq	%r12, %rdi
	callq	_free_hydration
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bio_io_error                   ## TAILCALL
LBB0_7:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_is_overwrite_bio
	testq	%rax, %rax
	je	LBB0_8
## %bb.12:
	movq	%r15, %rdi
	callq	_bucket_unlock_irqrestore
	movq	%r12, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hydration_overwrite            ## TAILCALL
LBB0_8:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_bio_list_add
	movq	%r15, %rdi
	callq	_bucket_unlock_irqrestore
	movq	%r12, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hydration_copy                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_READ_ONLY,8,3               ## @CM_READ_ONLY
	.no_dead_strip	_hydrate_bio_region
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hydrate_bio_region
_hydrate_bio_region:                    ; @hydrate_bio_region
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	bl	_bio_to_region
	mov	x23, x0
	mov	x0, x21
	mov	x1, x23
	bl	_get_hash_table_bucket
	mov	x20, x0
	bl	_bucket_lock_irqsave
	mov	x0, x20
	mov	x1, x23
	bl	___hash_find
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x19
	bl	_bio_list_add
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bucket_unlock_irqrestore
LBB0_2:
	ldr	w0, [x21]
	mov	x1, x23
	bl	_dm_clone_is_region_hydrated
	mov	x22, x0
	mov	x0, x20
	bl	_bucket_unlock_irqrestore
	cbnz	x22, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_alloc_hydration
	mov	x22, x0
	mov	x1, x23
	bl	_hydration_init
	mov	x0, x20
	bl	_bucket_lock_irqsave
	ldr	w0, [x21]
	mov	x1, x23
	bl	_dm_clone_is_region_hydrated
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_bucket_unlock_irqrestore
	mov	x0, x22
	bl	_free_hydration
LBB0_5:
	mov	x0, x21
	mov	x1, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_issue_bio
LBB0_6:
	mov	x0, x20
	mov	x1, x22
	bl	___find_or_insert_region_hydration
	cmp	x0, x22
	b.eq	LBB0_8
; %bb.7:
	mov	x1, x19
	bl	_bio_list_add
	mov	x0, x20
	bl	_bucket_unlock_irqrestore
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_free_hydration
LBB0_8:
	mov	x0, x21
	bl	_get_clone_mode
Lloh0:
	adrp	x8, _CM_READ_ONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CM_READ_ONLY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ge
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.9:
	add	x0, x22, #4
	bl	_hlist_del
	mov	x0, x20
	bl	_bucket_unlock_irqrestore
	mov	x0, x22
	bl	_free_hydration
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bio_io_error
LBB0_10:
	mov	x0, x21
	mov	x1, x19
	bl	_is_overwrite_bio
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_bucket_unlock_irqrestore
	mov	x0, x22
	mov	x1, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_hydration_overwrite
LBB0_12:
	mov	x0, x22
	mov	x1, x19
	bl	_bio_list_add
	mov	x0, x20
	bl	_bucket_unlock_irqrestore
	mov	x0, x22
	mov	w1, #1
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_hydration_copy
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_READ_ONLY,8,3               ; @CM_READ_ONLY
	.no_dead_strip	_hydrate_bio_region
.subsections_via_symbols
