	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r5l_recovery_verify_data_checksum_for_mb
_r5l_recovery_verify_data_checksum_for_mb: ## @r5l_recovery_verify_data_checksum_for_mb
	.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
	subq	$24, %rsp
	.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, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	4(%rsi), %edi
	callq	_page_address
	movq	%rax, %rbx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	movq	_BLOCK_SECTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_r5l_ring_add
	movl	%eax, %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_alloc_page
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movl	(%rbx), %edi
	callq	_le32_to_cpu
	cmpl	$5, %eax
	jl	LBB0_17
## %bb.2:
	movl	$4, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx,%r12), %edi
	callq	_le32_to_cpu
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_r5l_ring_add
	movl	%eax, %r13d
	movl	(%rbx,%r12), %edi
	callq	_le32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	addb	$-9, %cl
	sarl	%cl, %eax
	leal	16(,%rax,4), %eax
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_le32_to_cpu
	cmpl	%eax, %r14d
	jge	LBB0_17
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r14d, %r12
	movl	4(%rbx,%r12), %edi
	callq	_le16_to_cpu
	movq	_R5LOG_PAYLOAD_DATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx,%r12), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_r5l_recovery_verify_data_checksum
	testq	%rax, %rax
	jns	LBB0_13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rbx,%r12), %edi
	callq	_le16_to_cpu
	movq	_R5LOG_PAYLOAD_PARITY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx,%r12), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_r5l_recovery_verify_data_checksum
	testq	%rax, %rax
	js	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$2, (%rax)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_BLOCK_SECTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_r5l_ring_add
	movq	8(%rbx,%r12), %rcx
	movl	4(%rcx), %r8d
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rbx,%r12), %edi
	callq	_le16_to_cpu
	movq	_R5LOG_PAYLOAD_FLUSH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rbx,%r12), %edi
	callq	_le16_to_cpu
	movq	_R5LOG_PAYLOAD_FLUSH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx,%r12), %edi
	callq	_le32_to_cpu
	addl	$4, %eax
	jmp	LBB0_16
LBB0_17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_put_page
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_put_page
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLOCK_SECTORS,4,2              ## @BLOCK_SECTORS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_R5LOG_PAYLOAD_DATA,8,3         ## @R5LOG_PAYLOAD_DATA
	.comm	_R5LOG_PAYLOAD_PARITY,8,3       ## @R5LOG_PAYLOAD_PARITY
	.comm	_R5LOG_PAYLOAD_FLUSH,8,3        ## @R5LOG_PAYLOAD_FLUSH
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_r5l_recovery_verify_data_checksum_for_mb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r5l_recovery_verify_data_checksum_for_mb
_r5l_recovery_verify_data_checksum_for_mb: ; @r5l_recovery_verify_data_checksum_for_mb
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x24, [x8]
	ldr	w0, [x1, #4]
	bl	_page_address
	mov	x21, x0
	ldr	w1, [x19]
Lloh0:
	adrp	x8, _BLOCK_SECTORS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLOCK_SECTORS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_r5l_ring_add
	mov	x23, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_alloc_page
	cbz	x0, LBB0_15
; %bb.1:
	mov	x22, x0
	ldr	w0, [x21]
	bl	_le32_to_cpu
	cmp	w0, #5
	b.lt	LBB0_14
; %bb.2:
	mov	w26, #4
Lloh6:
	adrp	x27, _R5LOG_PAYLOAD_DATA@GOTPAGE
Lloh7:
	ldr	x27, [x27, _R5LOG_PAYLOAD_DATA@GOTPAGEOFF]
Lloh8:
	adrp	x28, _R5LOG_PAYLOAD_FLUSH@GOTPAGE
Lloh9:
	ldr	x28, [x28, _R5LOG_PAYLOAD_FLUSH@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	bl	_le32_to_cpu
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_r5l_ring_add
	mov	x23, x0
	ldr	w0, [x25]
	bl	_le32_to_cpu
Lloh10:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	sub	w8, w8, #9
	asr	w8, w0, w8
	lsl	w8, w8, #2
	add	w8, w8, #16
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w26, w8, w26
	ldr	w0, [x21]
	bl	_le32_to_cpu
	cmp	w26, w0
	b.ge	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x21, w26, sxtw
	ldr	w0, [x25, #4]
	bl	_le16_to_cpu
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25, #8]
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x23
	bl	_r5l_recovery_verify_data_checksum
	tbz	x0, #63, LBB0_12
	b	LBB0_16
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25, #4]
	bl	_le16_to_cpu
Lloh13:
	adrp	x8, _R5LOG_PAYLOAD_PARITY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _R5LOG_PAYLOAD_PARITY@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25, #8]
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x23
	bl	_r5l_recovery_verify_data_checksum
	tbnz	x0, #63, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24]
	cmp	w8, #2
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh16:
	adrp	x8, _BLOCK_SECTORS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BLOCK_SECTORS@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x23
	bl	_r5l_ring_add
	mov	x3, x0
	ldr	x8, [x25, #8]
	ldr	w4, [x8, #4]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_r5l_recovery_verify_data_checksum
	tbz	x0, #63, LBB0_12
	b	LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25, #4]
	bl	_le16_to_cpu
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25, #4]
	bl	_le16_to_cpu
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	bl	_le32_to_cpu
	add	w8, w0, #4
	b	LBB0_4
LBB0_14:
	mov	x0, x22
	bl	_put_page
	mov	w0, #0
	b	LBB0_18
LBB0_15:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
	mov	x0, x22
	bl	_put_page
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_BLOCK_SECTORS,4,2              ; @BLOCK_SECTORS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_R5LOG_PAYLOAD_DATA,8,3         ; @R5LOG_PAYLOAD_DATA
	.comm	_R5LOG_PAYLOAD_PARITY,8,3       ; @R5LOG_PAYLOAD_PARITY
	.comm	_R5LOG_PAYLOAD_FLUSH,8,3        ; @R5LOG_PAYLOAD_FLUSH
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_r5l_recovery_verify_data_checksum_for_mb
.subsections_via_symbols
