	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stripe_recover_get_region
_stripe_recover_get_region:             ## @stripe_recover_get_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_RS
	movq	%rax, %r15
	movq	(%rbx), %r12
	movq	8(%rax), %r14
	movq	16(%rax), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_BUG_ON
	movl	$1, %eax
	cmpq	$0, 16(%r12)
	jne	LBB0_10
## %bb.1:
	movq	%r15, %rdi
	callq	_RSSuspend
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_4:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	cmpq	(%r15), %rax
	jge	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	_recover_bandwidth
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	callq	_dm_rh_recovery_prepare
	movq	%r14, %rdi
	callq	_dm_rh_recovery_start
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%rax, %rdi
	callq	_dm_rh_get_region_key
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dm_rh_region_to_sector
	movq	%rax, %rbx
	movq	%rax, (%r12)
	movq	%r14, %rdi
	callq	_dm_rh_get_region_size
	addq	%rbx, %rax
	movq	%rax, 8(%r12)
	movq	%r15, %rdi
	callq	_io_get
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_5:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_7:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_stripe_recover_get_region
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stripe_recover_get_region
_stripe_recover_get_region:             ; @stripe_recover_get_region
	.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, x0
	ldr	w0, [x0, #8]
	bl	_RS
	mov	x19, x0
	ldr	x22, [x20]
	ldp	x20, x21, [x0, #8]
	cmp	x21, #0
	cset	w0, eq
	bl	_BUG_ON
	cmp	x20, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_11
LBB0_2:
	mov	x0, x19
	bl	_RSSuspend
	cbz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _EPERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
	ldr	x8, [x19]
	cmp	x0, x8
	b.ge	LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_recover_bandwidth
	cbz	w0, LBB0_9
; %bb.6:
	mov	x0, x20
	bl	_dm_rh_recovery_prepare
	mov	x0, x20
	bl	_dm_rh_recovery_start
	str	x0, [x22, #16]
	cbz	x0, LBB0_9
; %bb.7:
	bl	_dm_rh_get_region_key
	mov	x1, x0
	mov	x0, x20
	bl	_dm_rh_region_to_sector
	mov	x21, x0
	str	x0, [x22]
	mov	x0, x20
	bl	_dm_rh_get_region_size
	add	x8, x0, x21
	str	x8, [x22, #8]
	mov	x0, x19
	bl	_io_get
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh4:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_stripe_recover_get_region
.subsections_via_symbols
