	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_calculate_ecc_bch_multi
_omap_calculate_ecc_bch_multi:          ## @omap_calculate_ecc_bch_multi
	.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
	movq	%rdx, %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	callq	_mtd_to_omap
	movslq	4(%rax), %r14
	movl	(%rax), %edi
	callq	_readl
	movl	%eax, %r12d
	shrl	$4, %r12d
	andl	$7, %r12d
	shlq	$2, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movl	%ebx, %ecx
	callq	__omap_calculate_ecc_bch
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rbx), %ecx
	addq	%r14, %r13
	cmpl	%ebx, %r12d
	movl	%ecx, %ebx
	jne	LBB0_1
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_omap_calculate_ecc_bch_multi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_calculate_ecc_bch_multi
_omap_calculate_ecc_bch_multi:          ; @omap_calculate_ecc_bch_multi
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_mtd_to_omap
	ldp	w0, w23, [x0]
                                        ; kill: def $w23 killed $w23 def $x23
	sxtw	x23, w23
	bl	_readl
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #0
	bl	__omap_calculate_ecc_bch
	cbnz	w0, LBB0_8
; %bb.1:
	ubfx	w22, w22, #4, #3
	cbz	w22, LBB0_8
; %bb.2:
	add	x21, x21, x23, lsl #2
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #1
	bl	__omap_calculate_ecc_bch
	cmp	w0, #0
	ccmp	w22, #1, #4, eq
	b.eq	LBB0_8
; %bb.3:
	add	x21, x21, x23, lsl #2
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #2
	bl	__omap_calculate_ecc_bch
	cmp	w0, #0
	ccmp	w22, #2, #4, eq
	b.eq	LBB0_8
; %bb.4:
	add	x21, x21, x23, lsl #2
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #3
	bl	__omap_calculate_ecc_bch
	cmp	w0, #0
	ccmp	w22, #3, #4, eq
	b.eq	LBB0_8
; %bb.5:
	add	x21, x21, x23, lsl #2
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #4
	bl	__omap_calculate_ecc_bch
	cmp	w0, #0
	ccmp	w22, #4, #4, eq
	b.eq	LBB0_8
; %bb.6:
	add	x21, x21, x23, lsl #2
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #5
	bl	__omap_calculate_ecc_bch
	cmp	w0, #0
	ccmp	w22, #5, #4, eq
	b.eq	LBB0_8
; %bb.7:
	add	x21, x21, x23, lsl #2
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #6
	bl	__omap_calculate_ecc_bch
	cmp	w0, #0
	ccmp	w22, #6, #4, eq
	b.ne	LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	add	x2, x21, x23, lsl #2
	mov	x0, x20
	mov	x1, x19
	mov	w3, #7
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	__omap_calculate_ecc_bch
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_omap_calculate_ecc_bch_multi
.subsections_via_symbols
