	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_decode_rsb
_fec_decode_rsb:                        ## @fec_decode_rsb
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	movq	%rdx, %rsi
	callq	_fec_alloc_bufs
	movl	%eax, %r14d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
LBB0_10:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	leaq	-44(%rbp), %rax
	cmoveq	%r15, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_fec_init_bufs
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, %r8d
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_fec_read_bufs
	movl	%eax, %r14d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %r9d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	callq	_fec_decode_bufs
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %eax
	movq	_DM_VERITY_FEC_BUF_RS_BITS@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %eax
	addl	%eax, %r15d
	movzbl	(%r12), %ecx
	movl	%r15d, %eax
	shrl	%cl, %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.6:
	movq	%r12, %rdi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_verity_io_hash_req
	movl	%eax, %r14d
	movl	4(%rbx), %r15d
	movb	(%r12), %cl
	movl	$1, %ebx
	shll	%cl, %ebx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_verity_io_real_digest
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_verity_hash
	movl	%eax, %r14d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_10
## %bb.7:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_verity_io_real_digest
	movl	%eax, %ebx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_verity_io_want_digest
	movl	16(%r12), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	8(%r12), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %ecx
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rdx
	callq	_DMERR_LIMIT
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_4:
	movl	%eax, %r14d
	jmp	LBB0_10
LBB0_8:
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_VERITY_FEC_BUF_RS_BITS,4,2  ## @DM_VERITY_FEC_BUF_RS_BITS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: FEC %llu: failed to correct (%d erasures)"

	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.no_dead_strip	_fec_decode_rsb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_decode_rsb
_fec_decode_rsb:                        ; @fec_decode_rsb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x25, x5
	mov	x23, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	str	wzr, [sp, #12]
	mov	x1, x2
	bl	_fec_alloc_bufs
	mov	x26, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	mov	w24, #0
	cmp	w25, #0
	add	x8, sp, #12
	csel	x25, xzr, x8, eq
Lloh0:
	adrp	x27, _DM_VERITY_FEC_BUF_RS_BITS@GOTPAGE
Lloh1:
	ldr	x27, [x27, _DM_VERITY_FEC_BUF_RS_BITS@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_fec_init_bufs
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x23
	mov	x4, x24
	mov	x5, x25
	bl	_fec_read_bufs
	mov	x26, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w5, [sp, #12]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x3, x26
	mov	x4, x24
	bl	_fec_decode_bufs
	tbnz	w0, #31, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x27]
	lsl	w8, w8, w9
	add	w24, w8, w24
	ldr	w8, [x20]
	lsr	w8, w24, w8
	cbz	w8, LBB0_3
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	bl	_verity_io_hash_req
	mov	x23, x0
	ldr	w22, [x22, #4]
	ldr	w8, [x20]
	mov	w9, #1
	lsl	w24, w9, w8
	mov	x0, x20
	mov	x1, x21
	bl	_verity_io_real_digest
	mov	x4, x0
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x3, x24
	bl	_verity_hash
	mov	x26, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_1
; %bb.7:
	mov	x0, x20
	mov	x1, x21
	bl	_verity_io_real_digest
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	bl	_verity_io_want_digest
	mov	x1, x0
	ldr	w2, [x20, #16]
	mov	x0, x22
	bl	_memcmp
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	ldr	w3, [sp, #12]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_DMERR_LIMIT
Lloh4:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_1
LBB0_9:
	mov	x26, x0
	b	LBB0_1
LBB0_10:
	mov	w26, #0
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_VERITY_FEC_BUF_RS_BITS,4,2  ; @DM_VERITY_FEC_BUF_RS_BITS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: FEC %llu: failed to correct (%d erasures)"

	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.no_dead_strip	_fec_decode_rsb
.subsections_via_symbols
