	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_decode_rs8
_fec_decode_rs8:                        ## @fec_decode_rs8
	.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
	movl	%r8d, %r14d
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DM_VERITY_FEC_RSM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DM_VERITY_FEC_MIN_RSN@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdx
	movq	(%r13), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rcx,4), %esi
	movl	%esi, (%rdx,%rcx,4)
	incq	%rcx
	movslq	(%rax), %rsi
	cmpq	%rsi, %rcx
	jl	LBB0_2
LBB0_3:
	movl	(%r12), %ebx
	movl	4(%r12), %edi
	movl	4(%rax), %ecx
	subq	$8, %rsp
	movq	%r15, %rsi
	xorl	%r8d, %r8d
	movl	%r14d, %r9d
	pushq	$0
	pushq	$0
	pushq	%rbx
	callq	_decode_rs8
	addq	$32, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_VERITY_FEC_RSM,4,2          ## @DM_VERITY_FEC_RSM
	.comm	_DM_VERITY_FEC_MIN_RSN,4,2      ## @DM_VERITY_FEC_MIN_RSN
	.no_dead_strip	_fec_decode_rs8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_decode_rs8
_fec_decode_rs8:                        ; @fec_decode_rs8
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	sp, sp, #16
	mov	x5, x4
	mov	x8, x2
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-8]
Lloh3:
	adrp	x9, _DM_VERITY_FEC_RSM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DM_VERITY_FEC_RSM@GOTPAGEOFF]
Lloh5:
	adrp	x10, _DM_VERITY_FEC_MIN_RSN@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DM_VERITY_FEC_MIN_RSN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	sub	w9, w9, w10
	lsl	x9, x9, #2
	add	x10, x9, #15
	and	x12, x10, #0x7fffffff0
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x2, x9, x12
	mov	sp, x2
	ldr	x9, [x0]
	ldr	w10, [x9]
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x10, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x10, #2
	ldr	w12, [x3, x11]
	str	w12, [x2, x11]
	add	x10, x10, #1
	ldrsw	x11, [x9]
	cmp	x10, x11
	b.lt	LBB0_2
LBB0_3:
	ldr	w3, [x9, #4]
	ldp	w6, w0, [x1]
	str	xzr, [sp, #-16]!
	mov	x1, x8
	mov	x4, #0
	mov	w7, #0
	bl	_decode_rs8
	add	sp, sp, #16
	ldur	x8, [x29, #-8]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	sp, x29
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_VERITY_FEC_RSM,4,2          ; @DM_VERITY_FEC_RSM
	.comm	_DM_VERITY_FEC_MIN_RSN,4,2      ; @DM_VERITY_FEC_MIN_RSN
	.no_dead_strip	_fec_decode_rs8
.subsections_via_symbols
