	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _omap_calculate_ecc_bch
__omap_calculate_ecc_bch:               ## @_omap_calculate_ecc_bch
	.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
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	callq	_mtd_to_omap
	movq	%rax, %r14
	movl	(%rax), %eax
	movl	64(%r14), %r12d
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_3
## %bb.1:
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_4
## %bb.2:
	movq	8(%r14), %rax
	movslq	%r15d, %r13
	movl	(%rax,%r13,4), %edi
	callq	_readl
	movq	%rax, %r15
	movq	16(%r14), %rax
	movl	(%rax,%r13,4), %edi
	callq	_readl
	movl	%eax, %ecx
	shrl	$12, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, (%rbx)
	movl	%eax, %ecx
	shrl	$4, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 4(%rbx)
	shldl	$4, %r15d, %eax
	movzbl	%al, %eax
	movl	%eax, 8(%rbx)
	movl	%r15d, %eax
	shrl	$20, %eax
	movzbl	%al, %eax
	movl	%eax, 12(%rbx)
	movl	%r15d, %eax
	shrl	$12, %eax
	movzbl	%al, %eax
	movl	%eax, 16(%rbx)
	movl	%r15d, %eax
	shrl	$4, %eax
	movzbl	%al, %eax
	movl	%eax, 20(%rbx)
	shll	$4, %r15d
	movzbl	%r15b, %eax
	movl	%eax, 24(%rbx)
	jmp	LBB0_6
LBB0_3:
	movq	8(%r14), %rax
	movslq	%r15d, %r15
	movl	(%rax,%r15,4), %edi
	callq	_readl
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rax
	movl	(%rax,%r15,4), %edi
	callq	_readl
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	movq	24(%r14), %rax
	movl	(%rax,%r15,4), %edi
	callq	_readl
	movq	%rax, %r13
	movq	32(%r14), %rax
	movl	(%rax,%r15,4), %edi
	callq	_readl
	movzbl	%al, %eax
	movl	%eax, (%rbx)
	movq	%r13, %rcx
	movl	%ecx, %eax
	shrl	$24, %eax
	movl	%eax, 4(%rbx)
	movl	%ecx, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, 8(%rbx)
	movzbl	%ch, %eax
	movl	%eax, 12(%rbx)
	movzbl	%cl, %eax
	movl	%eax, 16(%rbx)
	movq	%r12, %rcx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	%ecx, %eax
	shrl	$24, %eax
	movl	%eax, 20(%rbx)
	movl	%ecx, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, 24(%rbx)
	movzbl	%ch, %eax
	movl	%eax, 28(%rbx)
	movzbl	%cl, %eax
	movl	%eax, 32(%rbx)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%edx, %eax
	shrl	$24, %eax
	movl	%eax, 36(%rbx)
	movl	%edx, %eax
	movzbl	%dh, %ecx
	movzbl	%dl, %edx
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, 40(%rbx)
	movl	%ecx, 44(%rbx)
	movl	%edx, 48(%rbx)
	jmp	LBB0_6
LBB0_4:
	cmpl	$132, %eax
	jne	LBB0_9
## %bb.5:
	movq	56(%r14), %rax
	movslq	%r15d, %r15
	movl	(%rax,%r15,4), %edi
	callq	_readl
	movzbl	%ah, %ecx
	movl	%ecx, (%rbx)
	movzbl	%al, %eax
	movl	%eax, 4(%rbx)
	movq	48(%r14), %rax
	movl	(%rax,%r15,4), %edi
	callq	_readl
	movl	%eax, %ecx
	movzbl	%ah, %edx
	movzbl	%al, %esi
                                        ## kill: def $eax killed $eax killed $rax
	shrl	$24, %eax
	movl	%eax, 8(%rbx)
	shrl	$16, %ecx
	movzbl	%cl, %eax
	movl	%eax, 12(%rbx)
	movl	%edx, 16(%rbx)
	movl	%esi, 20(%rbx)
	movq	40(%r14), %rax
	movl	(%rax,%r15,4), %edi
	callq	_readl
	movl	%eax, %ecx
	movzbl	%ah, %edx
	movzbl	%al, %esi
                                        ## kill: def $eax killed $eax killed $rax
	shrl	$24, %eax
	movl	%eax, 24(%rbx)
	shrl	$16, %ecx
	movzbl	%cl, %eax
	movl	%eax, 28(%rbx)
	movl	%edx, 32(%rbx)
	movl	%esi, 36(%rbx)
	movq	32(%r14), %rax
	movl	(%rax,%r15,4), %edi
	callq	_readl
	movl	%eax, %ecx
	movzbl	%ah, %edx
	movzbl	%al, %esi
                                        ## kill: def $eax killed $eax killed $rax
	shrl	$24, %eax
	movl	%eax, 40(%rbx)
	shrl	$16, %ecx
	movzbl	%cl, %eax
	movl	%eax, 44(%rbx)
	movl	%edx, 48(%rbx)
	movl	%esi, 52(%rbx)
	movq	24(%r14), %rax
	movl	(%rax,%r15,4), %edi
	callq	_readl
	movl	%eax, %ecx
	movzbl	%ah, %edx
	movzbl	%al, %esi
                                        ## kill: def $eax killed $eax killed $rax
	shrl	$24, %eax
	movl	%eax, 56(%rbx)
	shrl	$16, %ecx
	movzbl	%cl, %eax
	movl	%eax, 60(%rbx)
	movl	%edx, 64(%rbx)
	movl	%esi, 68(%rbx)
	movq	16(%r14), %rax
	movl	(%rax,%r15,4), %edi
	callq	_readl
	movl	%eax, %ecx
	movzbl	%ah, %edx
	movzbl	%al, %esi
                                        ## kill: def $eax killed $eax killed $rax
	shrl	$24, %eax
	movl	%eax, 72(%rbx)
	shrl	$16, %ecx
	movzbl	%cl, %eax
	movl	%eax, 76(%rbx)
	movl	%edx, 80(%rbx)
	movl	%esi, 84(%rbx)
	movq	8(%r14), %rax
	movl	(%rax,%r15,4), %edi
	callq	_readl
	movl	%eax, %ecx
	movzbl	%ah, %edx
	movzbl	%al, %esi
                                        ## kill: def $eax killed $eax killed $rax
	shrl	$24, %eax
	movl	%eax, 88(%rbx)
	shrl	$16, %ecx
	movzbl	%cl, %eax
	movl	%eax, 92(%rbx)
	movl	%edx, 96(%rbx)
	movl	%esi, 100(%rbx)
LBB0_6:
	movl	(%r14), %edx
	addl	$-128, %edx
	cmpl	$4, %edx
	ja	LBB0_9
## %bb.7:
	movslq	%r12d, %rcx
	xorl	%eax, %eax
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_8:
	movl	$0, -4(%rbx,%rcx,4)
	jmp	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	testl	%r12d, %r12d
	jle	LBB0_10
## %bb.12:
	movq	_bch8_polynomial@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpl	$8, %r12d
	jb	LBB0_13
## %bb.17:
	leaq	(%rcx,%r12,4), %rax
	cmpq	%rbx, %rax
	jbe	LBB0_23
## %bb.18:
	leaq	(%rbx,%r12,4), %rax
	cmpq	%rax, %rcx
	jae	LBB0_23
LBB0_13:
	xorl	%edx, %edx
LBB0_33:
	movq	%rdx, %rsi
	notq	%rsi
	addq	%r12, %rsi
	movq	%r12, %rax
	andq	$3, %rax
	je	LBB0_35
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %edi
	xorl	%edi, (%rbx,%rdx,4)
	incq	%rdx
	decq	%rax
	jne	LBB0_34
LBB0_35:
	xorl	%eax, %eax
	cmpq	$3, %rsi
	jb	LBB0_10
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %esi
	xorl	%esi, (%rbx,%rdx,4)
	movl	4(%rcx,%rdx,4), %esi
	xorl	%esi, 4(%rbx,%rdx,4)
	movl	8(%rcx,%rdx,4), %esi
	xorl	%esi, 8(%rbx,%rdx,4)
	movl	12(%rcx,%rdx,4), %esi
	xorl	%esi, 12(%rbx,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %r12
	jne	LBB0_36
	jmp	LBB0_10
LBB0_14:
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.15:
	movq	_bch4_polynomial@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpl	$8, %r12d
	jb	LBB0_16
## %bb.20:
	leaq	(%rcx,%r12,4), %rax
	cmpq	%rbx, %rax
	jbe	LBB0_26
## %bb.21:
	leaq	(%rbx,%r12,4), %rax
	cmpq	%rax, %rcx
	jae	LBB0_26
LBB0_16:
	xorl	%edx, %edx
LBB0_41:
	movq	%rdx, %rsi
	notq	%rsi
	addq	%r12, %rsi
	movq	%r12, %rax
	andq	$3, %rax
	je	LBB0_43
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %edi
	xorl	%edi, (%rbx,%rdx,4)
	incq	%rdx
	decq	%rax
	jne	LBB0_42
LBB0_43:
	xorl	%eax, %eax
	cmpq	$3, %rsi
	jb	LBB0_10
	.p2align	4, 0x90
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %esi
	xorl	%esi, (%rbx,%rdx,4)
	movl	4(%rcx,%rdx,4), %esi
	xorl	%esi, 4(%rbx,%rdx,4)
	movl	8(%rcx,%rdx,4), %esi
	xorl	%esi, 8(%rbx,%rdx,4)
	movl	12(%rcx,%rdx,4), %esi
	xorl	%esi, 12(%rbx,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %r12
	jne	LBB0_44
	jmp	LBB0_10
LBB0_23:
	movl	%r12d, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rax
	movq	%rax, %rsi
	shrq	$3, %rsi
	incq	%rsi
	testq	%rax, %rax
	je	LBB0_29
## %bb.24:
	movq	%rsi, %rdi
	andq	$-2, %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rcx,%rax,4), %xmm0
	movups	16(%rcx,%rax,4), %xmm1
	movups	(%rbx,%rax,4), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%rbx,%rax,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	32(%rbx,%rax,4), %xmm1
	movups	48(%rbx,%rax,4), %xmm3
	movups	%xmm2, (%rbx,%rax,4)
	movups	%xmm0, 16(%rbx,%rax,4)
	movups	32(%rcx,%rax,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	48(%rcx,%rax,4), %xmm1
	xorps	%xmm3, %xmm1
	movups	%xmm0, 32(%rbx,%rax,4)
	movups	%xmm1, 48(%rbx,%rax,4)
	addq	$16, %rax
	addq	$-2, %rdi
	jne	LBB0_25
	jmp	LBB0_30
LBB0_26:
	movl	%r12d, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rax
	movq	%rax, %rsi
	shrq	$3, %rsi
	incq	%rsi
	testq	%rax, %rax
	je	LBB0_37
## %bb.27:
	movq	%rsi, %rdi
	andq	$-2, %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rcx,%rax,4), %xmm0
	movups	16(%rcx,%rax,4), %xmm1
	movups	(%rbx,%rax,4), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%rbx,%rax,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	32(%rbx,%rax,4), %xmm1
	movups	48(%rbx,%rax,4), %xmm3
	movups	%xmm2, (%rbx,%rax,4)
	movups	%xmm0, 16(%rbx,%rax,4)
	movups	32(%rcx,%rax,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	48(%rcx,%rax,4), %xmm1
	xorps	%xmm3, %xmm1
	movups	%xmm0, 32(%rbx,%rax,4)
	movups	%xmm1, 48(%rbx,%rax,4)
	addq	$16, %rax
	addq	$-2, %rdi
	jne	LBB0_28
	jmp	LBB0_38
LBB0_29:
	xorl	%eax, %eax
LBB0_30:
	testb	$1, %sil
	je	LBB0_32
## %bb.31:
	movups	(%rcx,%rax,4), %xmm0
	movups	16(%rcx,%rax,4), %xmm1
	movups	(%rbx,%rax,4), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%rbx,%rax,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	%xmm2, (%rbx,%rax,4)
	movups	%xmm0, 16(%rbx,%rax,4)
LBB0_32:
	xorl	%eax, %eax
	cmpq	%r12, %rdx
	je	LBB0_10
	jmp	LBB0_33
LBB0_37:
	xorl	%eax, %eax
LBB0_38:
	testb	$1, %sil
	je	LBB0_40
## %bb.39:
	movups	(%rcx,%rax,4), %xmm0
	movups	16(%rcx,%rax,4), %xmm1
	movups	(%rbx,%rax,4), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%rbx,%rax,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	%xmm2, (%rbx,%rax,4)
	movups	%xmm0, 16(%rbx,%rax,4)
LBB0_40:
	xorl	%eax, %eax
	cmpq	%r12, %rdx
	je	LBB0_10
	jmp	LBB0_41
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_14
	.long	L0_0_set_8
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_bch4_polynomial,8,3            ## @bch4_polynomial
	.comm	_bch8_polynomial,8,3            ## @bch8_polynomial
	.no_dead_strip	__omap_calculate_ecc_bch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function _omap_calculate_ecc_bch
lCPI0_0:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
lCPI0_1:
	.long	4294967284                      ; 0xfffffff4
	.long	4294967292                      ; 0xfffffffc
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_2:
	.long	4294967276                      ; 0xffffffec
	.long	4294967284                      ; 0xfffffff4
	.long	4294967292                      ; 0xfffffffc
	.long	4294967292                      ; 0xfffffffc
lCPI0_3:
	.long	20                              ; 0x14
	.long	12                              ; 0xc
	.long	4                               ; 0x4
	.long	4                               ; 0x4
lCPI0_4:
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	240                             ; 0xf0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
__omap_calculate_ecc_bch:               ; @_omap_calculate_ecc_bch
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
	mov	x21, x3
	mov	x19, x2
	bl	_mtd_to_omap
	mov	x20, x0
	ldr	w24, [x0, #64]
	ldr	w8, [x0]
	sub	w9, w8, #128
	cmp	w9, #2
	b.lo	LBB0_3
; %bb.1:
	sub	w9, w8, #130
	cmp	w9, #2
	b.hs	LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sbfiz	x22, x21, #2, #32
	ldr	w0, [x8, x22]
	bl	_readl
	mov	x21, x0
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x22]
	bl	_readl
	dup.2s	v0, w0
Lloh0:
	adrp	x8, lCPI0_1@PAGE
Lloh1:
	ldr	d1, [x8, lCPI0_1@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	str	d0, [x19]
	ubfx	x8, x21, #28, #4
	bfi	w8, w0, #4, #4
	str	w8, [x19, #8]
	dup.4s	v0, w21
Lloh2:
	adrp	x8, lCPI0_2@PAGE
Lloh3:
	ldr	q1, [x8, lCPI0_2@PAGEOFF]
	ushl.4s	v1, v0, v1
Lloh4:
	adrp	x8, lCPI0_3@PAGE
Lloh5:
	ldr	q2, [x8, lCPI0_3@PAGEOFF]
	ushl.4s	v0, v0, v2
	mov.s	v1[3], v0[3]
Lloh6:
	adrp	x8, lCPI0_4@PAGE
Lloh7:
	ldr	q0, [x8, lCPI0_4@PAGEOFF]
	and.16b	v0, v1, v0
	stur	q0, [x19, #12]
	b	LBB0_6
LBB0_3:
	ldr	x8, [x20, #8]
	sbfiz	x25, x21, #2, #32
	ldr	w0, [x8, x25]
	bl	_readl
	mov	x21, x0
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x25]
	bl	_readl
	mov	x22, x0
	ldr	x8, [x20, #24]
	ldr	w0, [x8, x25]
	bl	_readl
	mov	x23, x0
	ldr	x8, [x20, #32]
	ldr	w0, [x8, x25]
	bl	_readl
	and	w8, w0, #0xff
	ubfx	x9, x23, #24, #8
	stp	w8, w9, [x19]
	dup.2s	v0, w23
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d2, #0x0000ff000000ff
	and.8b	v0, v0, v2
	str	d0, [x19, #8]
	and	w8, w23, #0xff
	ubfx	x9, x22, #24, #8
	stp	w8, w9, [x19, #16]
	dup.2s	v0, w22
	ushl.2s	v0, v0, v1
	and.8b	v0, v0, v2
	str	d0, [x19, #24]
	and	w8, w22, #0xff
	ubfx	x9, x21, #24, #8
	dup.2s	v0, w21
	stp	w8, w9, [x19, #32]
	ushl.2s	v0, v0, v1
	and.8b	v0, v0, v2
	str	d0, [x19, #40]
	and	w8, w21, #0xff
	str	w8, [x19, #48]
	b	LBB0_6
LBB0_4:
	cmp	w8, #132
	b.ne	LBB0_9
; %bb.5:
	ldr	x8, [x20, #56]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sbfiz	x21, x21, #2, #32
	ldr	w0, [x8, x21]
	bl	_readl
	ubfx	w8, w0, #8, #8
	and	w9, w0, #0xff
	stp	w8, w9, [x19]
	ldr	x8, [x20, #48]
	ldr	w0, [x8, x21]
	bl	_readl
	ubfx	x8, x0, #24, #8
	dup.2s	v0, w0
	str	w8, [x19, #8]
Lloh10:
	adrp	x8, lCPI0_0@PAGE
Lloh11:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v8
	movi	d9, #0x0000ff000000ff
	and.8b	v0, v0, v9
	stur	d0, [x19, #12]
	and	w8, w0, #0xff
	str	w8, [x19, #20]
	ldr	x8, [x20, #40]
	ldr	w0, [x8, x21]
	bl	_readl
	ubfx	x8, x0, #24, #8
	str	w8, [x19, #24]
	dup.2s	v0, w0
	ushl.2s	v0, v0, v8
	and.8b	v0, v0, v9
	stur	d0, [x19, #28]
	and	w8, w0, #0xff
	str	w8, [x19, #36]
	ldr	x8, [x20, #32]
	ldr	w0, [x8, x21]
	bl	_readl
	ubfx	x8, x0, #24, #8
	str	w8, [x19, #40]
	dup.2s	v0, w0
	ushl.2s	v0, v0, v8
	and.8b	v0, v0, v9
	stur	d0, [x19, #44]
	and	w8, w0, #0xff
	str	w8, [x19, #52]
	ldr	x8, [x20, #24]
	ldr	w0, [x8, x21]
	bl	_readl
	ubfx	x8, x0, #24, #8
	str	w8, [x19, #56]
	dup.2s	v0, w0
	ushl.2s	v0, v0, v8
	and.8b	v0, v0, v9
	stur	d0, [x19, #60]
	and	w8, w0, #0xff
	str	w8, [x19, #68]
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x21]
	bl	_readl
	ubfx	x8, x0, #24, #8
	str	w8, [x19, #72]
	dup.2s	v0, w0
	ushl.2s	v0, v0, v8
	and.8b	v0, v0, v9
	stur	d0, [x19, #76]
	and	w8, w0, #0xff
	str	w8, [x19, #84]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x21]
	bl	_readl
	ubfx	x8, x0, #24, #8
	dup.2s	v0, w0
	str	w8, [x19, #88]
	ushl.2s	v0, v0, v8
	and.8b	v0, v0, v9
	stur	d0, [x19, #92]
	and	w8, w0, #0xff
	str	w8, [x19, #100]
LBB0_6:
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.7:
	mov	w0, #0
Lloh12:
	adrp	x9, lJTI0_0@PAGE
Lloh13:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	mov	w0, #0
	sub	w8, w24, #1
	str	wzr, [x19, w8, sxtw #2]
	b	LBB0_25
LBB0_9:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_25
LBB0_10:
	cmp	w24, #1
	b.lt	LBB0_24
; %bb.11:
Lloh17:
	adrp	x8, _bch8_polynomial@GOTPAGE
Lloh18:
	ldr	x8, [x8, _bch8_polynomial@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	w24, #16
	b.lo	LBB0_14
; %bb.12:
	lsl	x9, x24, #2
	add	x10, x8, x9
	cmp	x10, x19
	b.ls	LBB0_29
; %bb.13:
	add	x9, x19, x9
	cmp	x8, x9
	b.hs	LBB0_29
LBB0_14:
	mov	x9, #0
LBB0_15:
	lsl	x11, x9, #2
	add	x10, x19, x11
	add	x8, x8, x11
	sub	x9, x24, x9
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8], #4
	ldr	w12, [x10]
	eor	w11, w12, w11
	str	w11, [x10], #4
	subs	x9, x9, #1
	b.ne	LBB0_16
	b	LBB0_24
LBB0_17:
	cmp	w24, #1
	b.lt	LBB0_24
; %bb.18:
Lloh20:
	adrp	x8, _bch4_polynomial@GOTPAGE
Lloh21:
	ldr	x8, [x8, _bch4_polynomial@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	w24, #16
	b.lo	LBB0_21
; %bb.19:
	lsl	x9, x24, #2
	add	x10, x8, x9
	cmp	x10, x19
	b.ls	LBB0_26
; %bb.20:
	add	x9, x19, x9
	cmp	x8, x9
	b.hs	LBB0_26
LBB0_21:
	mov	x9, #0
LBB0_22:
	lsl	x11, x9, #2
	add	x10, x19, x11
	add	x8, x8, x11
	sub	x9, x24, x9
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8], #4
	ldr	w12, [x10]
	eor	w11, w12, w11
	str	w11, [x10], #4
	subs	x9, x9, #1
	b.ne	LBB0_23
LBB0_24:
	mov	w0, #0
LBB0_25:
	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	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
LBB0_26:
	and	x9, x24, #0xfffffff0
	add	x10, x19, #32
	add	x11, x8, #32
	mov	x12, x9
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	ldp	q4, q5, [x10, #-32]
	ldp	q6, q7, [x10]
	eor.16b	v0, v4, v0
	eor.16b	v1, v5, v1
	eor.16b	v2, v6, v2
	eor.16b	v3, v7, v3
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #16
	b.ne	LBB0_27
; %bb.28:
	cmp	x9, x24
	b.ne	LBB0_22
	b	LBB0_24
LBB0_29:
	and	x9, x24, #0xfffffff0
	add	x10, x19, #32
	add	x11, x8, #32
	mov	x12, x9
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	ldp	q4, q5, [x10, #-32]
	ldp	q6, q7, [x10]
	eor.16b	v0, v4, v0
	eor.16b	v1, v5, v1
	eor.16b	v2, v6, v2
	eor.16b	v3, v7, v3
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #16
	b.ne	LBB0_30
; %bb.31:
	cmp	x9, x24
	b.ne	LBB0_15
	b	LBB0_24
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpAdrp	Lloh4, Lloh6
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_17-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_25-LBB0_8)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_bch4_polynomial,8,3            ; @bch4_polynomial
	.comm	_bch8_polynomial,8,3            ; @bch8_polynomial
	.no_dead_strip	__omap_calculate_ecc_bch
.subsections_via_symbols
