	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saverecovery
_saverecovery:                          ## @saverecovery
	.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	_sblock@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_FS_UFS2_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_DIOCGSECTORSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.2:
	movl	-44(%rbp), %edi
	callq	_Malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r15
	movq	_SBLOCK_UFS2@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	-44(%rbp), %ecx
	subl	%ecx, %eax
	movq	_dev_bsize@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_blread
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movslq	-44(%rbp), %rax
	movq	(%r12), %rcx
	movq	%rcx, -24(%rax,%r15)
	movups	8(%r12), %xmm0
	movups	%xmm0, -16(%rax,%r15)
	movl	(%r13), %eax
	movl	-44(%rbp), %ecx
	subl	%ecx, %eax
	cltd
	idivl	%ecx
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_blwrite
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_sblock,24,3                    ## @sblock
	.comm	_FS_UFS2_MAGIC,8,3              ## @FS_UFS2_MAGIC
	.comm	_DIOCGSECTORSIZE,4,2            ## @DIOCGSECTORSIZE
	.comm	_SBLOCK_UFS2,4,2                ## @SBLOCK_UFS2
	.comm	_dev_bsize,4,2                  ## @dev_bsize
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"RECOVERY DATA COULD NOT BE CREATED"

	.no_dead_strip	_saverecovery
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saverecovery
_saverecovery:                          ; @saverecovery
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x22, _sblock@GOTPAGE
Lloh1:
	ldr	x22, [x22, _sblock@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _FS_UFS2_MAGIC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FS_UFS2_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x21, x0
Lloh5:
	adrp	x8, _DIOCGSECTORSIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DIOCGSECTORSIZE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [sp, #12]
	bl	_Malloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh8:
	adrp	x23, _SBLOCK_UFS2@GOTPAGE
Lloh9:
	ldr	x23, [x23, _SBLOCK_UFS2@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	w3, [sp, #12]
	sub	w8, w8, w3
Lloh10:
	adrp	x9, _dev_bsize@GOTPAGE
Lloh11:
	ldr	x9, [x9, _dev_bsize@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	sdiv	w2, w8, w9
	mov	x0, x21
	mov	x1, x20
	bl	_blread
	cbz	x0, LBB0_6
LBB0_4:
Lloh13:
	adrp	x0, l_str@PAGE
Lloh14:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_5:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	ldrsw	x3, [sp, #12]
	add	x8, x3, x20
	ldr	x9, [x22]
	stur	x9, [x8, #-24]
	ldur	q0, [x22, #8]
	stur	q0, [x8, #-16]
	ldr	w8, [x23]
	sub	w8, w8, w3
	sdiv	w2, w8, w3
	mov	x0, x19
	mov	x1, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_blwrite
	mov	x0, x20
	bl	_free
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_sblock,24,3                    ; @sblock
	.comm	_FS_UFS2_MAGIC,8,3              ; @FS_UFS2_MAGIC
	.comm	_DIOCGSECTORSIZE,4,2            ; @DIOCGSECTORSIZE
	.comm	_SBLOCK_UFS2,4,2                ; @SBLOCK_UFS2
	.comm	_dev_bsize,4,2                  ; @dev_bsize
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"RECOVERY DATA COULD NOT BE CREATED"

	.no_dead_strip	_saverecovery
.subsections_via_symbols
