	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r5l_recovery_read_meta_block
_r5l_recovery_read_meta_block:          ## @r5l_recovery_read_meta_block
	.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, %r13
	movq	%rdi, %r14
	movq	(%rsi), %rcx
	movq	24(%rsi), %rbx
	movq	%rbx, %rdx
	callq	_r5l_recovery_read_page
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	callq	_page_address
	movq	%rax, %r15
	movq	32(%rax), %rdi
	callq	_le32_to_cpu
	movq	%rax, %r12
	movq	$0, 32(%r15)
	movq	24(%r15), %rdi
	callq	_le32_to_cpu
	movq	_R5LOG_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movl	20(%r15), %edi
	callq	_le64_to_cpu
	cmpq	8(%r13), %rax
	jne	LBB0_5
## %bb.3:
	movq	(%r15), %rax
	movq	_R5LOG_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	16(%r15), %edi
	callq	_le64_to_cpu
	cmpq	(%r13), %rax
	jne	LBB0_5
## %bb.6:
	movl	(%r14), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	%r15, %rsi
	callq	_crc32c_le
	cmpq	%rax, %r12
	jne	LBB0_5
## %bb.7:
	movq	8(%r15), %rdi
	callq	_le32_to_cpu
	cmpq	(%rbx), %rax
	jle	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_BLOCK_SECTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_R5LOG_MAGIC,8,3                ## @R5LOG_MAGIC
	.comm	_R5LOG_VERSION,8,3              ## @R5LOG_VERSION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_BLOCK_SECTORS,4,2              ## @BLOCK_SECTORS
	.no_dead_strip	_r5l_recovery_read_meta_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r5l_recovery_read_meta_block
_r5l_recovery_read_meta_block:          ; @r5l_recovery_read_meta_block
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x1, #24]
	ldr	x3, [x1]
	mov	x2, x21
	bl	_r5l_recovery_read_page
	cbnz	w0, LBB0_8
; %bb.1:
	mov	x0, x21
	bl	_page_address
	mov	x21, x0
	ldr	x0, [x0, #32]
	bl	_le32_to_cpu
	mov	x22, x0
	str	xzr, [x21, #32]
	ldr	x0, [x21, #24]
	bl	_le32_to_cpu
Lloh0:
	adrp	x8, _R5LOG_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R5LOG_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
	ldr	w0, [x21, #20]
	bl	_le64_to_cpu
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _R5LOG_VERSION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _R5LOG_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	ldr	w0, [x21, #16]
	bl	_le64_to_cpu
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
	ldr	w0, [x20]
Lloh6:
	adrp	x20, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x2, [x20]
	mov	x1, x21
	bl	_crc32c_le
	cmp	x22, x0
	b.ne	LBB0_7
; %bb.6:
	ldr	x0, [x21, #8]
	bl	_le32_to_cpu
	ldr	x8, [x20]
	cmp	x0, x8
	b.le	LBB0_9
LBB0_7:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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_9:
	mov	w0, #0
Lloh11:
	adrp	x8, _BLOCK_SECTORS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BLOCK_SECTORS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_R5LOG_MAGIC,8,3                ; @R5LOG_MAGIC
	.comm	_R5LOG_VERSION,8,3              ; @R5LOG_VERSION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_BLOCK_SECTORS,4,2              ; @BLOCK_SECTORS
	.no_dead_strip	_r5l_recovery_read_meta_block
.subsections_via_symbols
