	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_verity_fec_decode              ## -- Begin function verity_fec_decode
	.p2align	4, 0x90
_verity_fec_decode:                     ## @verity_fec_decode
	.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	%r9, %r14
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rdi, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_fec_io
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_verity_fec_is_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	(%r15), %rax
	movq	_DM_VERITY_FEC_MAX_RECURSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
## %bb.5:
	incq	%rax
	movq	%rax, (%r15)
	movq	_DM_VERITY_BLOCK_TYPE_METADATA@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_7
## %bb.6:
	addl	16(%rbx), %r12d
LBB0_7:
	movb	(%rbx), %cl
	shll	%cl, %r12d
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	shll	%cl, %esi
	movl	%r12d, %edi
	callq	_div64_u64
	movq	8(%rbx), %rcx
	movl	(%rcx), %edx
	movb	(%rbx), %cl
	shll	%cl, %edx
	imull	%eax, %edx
	movl	%r12d, %r14d
	subl	%edx, %r14d
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	callq	_fec_decode_rsb
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	movl	$1, %r9d
	callq	_fec_decode_rsb
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_13
LBB0_9:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	movl	16(%r15), %esi
	movb	(%rbx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	callq	_memcpy
	jmp	LBB0_13
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DMWARN_LIMIT
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_14
LBB0_11:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_13
## %bb.12:
	movq	$0, 8(%r15)
	movq	_fec_bv_copy@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_verity_for_bv_block
	movl	%eax, %r13d
LBB0_13:
	decq	(%r15)
LBB0_14:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_DM_VERITY_FEC_MAX_RECURSION,8,3 ## @DM_VERITY_FEC_MAX_RECURSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: FEC: recursion too deep"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_DM_VERITY_BLOCK_TYPE_METADATA,4,2 ## @DM_VERITY_BLOCK_TYPE_METADATA
	.comm	_fec_bv_copy,4,2                ## @fec_bv_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_verity_fec_decode              ; -- Begin function verity_fec_decode
	.p2align	2
_verity_fec_decode:                     ; @verity_fec_decode
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x22, x1
	mov	x21, x0
	mov	x0, x1
	bl	_fec_io
	mov	x19, x0
	mov	x0, x21
	bl	_verity_fec_is_enabled
	cbz	w0, LBB0_8
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _DM_VERITY_FEC_MAX_RECURSION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DM_VERITY_FEC_MAX_RECURSION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_9
; %bb.2:
	add	x8, x8, #1
	str	x8, [x19]
Lloh3:
	adrp	x8, _DM_VERITY_BLOCK_TYPE_METADATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DM_VERITY_BLOCK_TYPE_METADATA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w25
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x21, #16]
	add	w24, w8, w24
LBB0_4:
	ldr	w8, [x21]
	lsl	w25, w24, w8
	ldr	x9, [x21, #8]
	ldr	w9, [x9]
	lsl	w1, w9, w8
	mov	x0, x25
	bl	_div64_u64
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	ldr	w9, [x21]
	lsl	w8, w8, w9
	msub	w26, w8, w0, w25
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	mov	x3, x26
	mov	x4, x25
	mov	w5, #0
	bl	_fec_decode_rsb
	mov	x24, x0
	tbz	w0, #31, LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	mov	x3, x26
	mov	x4, x25
	mov	w5, #1
	bl	_fec_decode_rsb
	mov	x24, x0
	tbnz	w0, #31, LBB0_13
LBB0_6:
	cbz	x23, LBB0_11
; %bb.7:
	ldr	w1, [x19, #16]
	ldr	w8, [x21]
	mov	w9, #1
	lsl	w2, w9, w8
	mov	x0, x23
	bl	_memcpy
	b	LBB0_13
LBB0_8:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	ldr	x8, [x21, #24]
	ldr	w1, [x8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMWARN_LIMIT
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_14
LBB0_11:
	cbz	x20, LBB0_13
; %bb.12:
	str	xzr, [x19, #8]
Lloh12:
	adrp	x8, _fec_bv_copy@GOTPAGE
Lloh13:
	ldr	x8, [x8, _fec_bv_copy@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_verity_for_bv_block
	mov	x24, x0
LBB0_13:
	ldr	x8, [x19]
	sub	x8, x8, #1
	str	x8, [x19]
LBB0_14:
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_DM_VERITY_FEC_MAX_RECURSION,8,3 ; @DM_VERITY_FEC_MAX_RECURSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: FEC: recursion too deep"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_DM_VERITY_BLOCK_TYPE_METADATA,4,2 ; @DM_VERITY_BLOCK_TYPE_METADATA
	.comm	_fec_bv_copy,4,2                ; @fec_bv_copy
.subsections_via_symbols
