	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbe_ecc_decode
_sbe_ecc_decode:                        ## @sbe_ecc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movl	%edx, %ebx
	movl	$-1, (%rcx)
	movl	$-1, (%r8)
	callq	_calculate_ecc
	movl	%eax, %r12d
	xorl	%ebx, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_syndrome_from_bit
	cmpl	%eax, %r12d
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	cmpl	$64, %ebx
	jne	LBB0_1
## %bb.4:
	xorl	%eax, %eax
	testb	$1, %r12b
	jne	LBB0_5
## %bb.6:
	movl	$1, %eax
	testb	$2, %r12b
	jne	LBB0_5
## %bb.7:
	movl	$2, %eax
	testb	$4, %r12b
	jne	LBB0_5
## %bb.8:
	movl	$3, %eax
	testb	$8, %r12b
	jne	LBB0_5
## %bb.9:
	movl	$4, %eax
	testb	$16, %r12b
	jne	LBB0_5
## %bb.10:
	movl	$5, %eax
	testb	$32, %r12b
	jne	LBB0_5
## %bb.11:
	movl	$6, %eax
	testb	$64, %r12b
	jne	LBB0_5
## %bb.12:
	movl	$7, %eax
	testb	$-128, %r12b
	je	LBB0_13
LBB0_5:
	movl	%eax, (%r14)
	jmp	LBB0_13
LBB0_2:
	movl	%ebx, (%r15)
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sbe_ecc_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbe_ecc_decode
_sbe_ecc_decode:                        ; @sbe_ecc_decode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	w8, #-1
	str	w8, [x3]
	str	w8, [x4]
	bl	_calculate_ecc
	mov	w21, #0
	eor	w22, w0, w22
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_syndrome_from_bit
	cmp	w22, w0
	b.eq	LBB0_12
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w21, w21, #1
	cmp	w21, #64
	b.ne	LBB0_1
; %bb.3:
	tbnz	w22, #0, LBB0_13
; %bb.4:
	tbnz	w22, #1, LBB0_14
; %bb.5:
	tbnz	w22, #2, LBB0_15
; %bb.6:
	tbnz	w22, #3, LBB0_16
; %bb.7:
	tbnz	w22, #4, LBB0_17
; %bb.8:
	tbnz	w22, #5, LBB0_18
; %bb.9:
	tbnz	w22, #6, LBB0_19
; %bb.10:
	tbz	w22, #7, LBB0_21
; %bb.11:
	mov	w8, #7
	b	LBB0_20
LBB0_12:
	str	w21, [x20]
	b	LBB0_21
LBB0_13:
	mov	w8, #0
	b	LBB0_20
LBB0_14:
	mov	w8, #1
	b	LBB0_20
LBB0_15:
	mov	w8, #2
	b	LBB0_20
LBB0_16:
	mov	w8, #3
	b	LBB0_20
LBB0_17:
	mov	w8, #4
	b	LBB0_20
LBB0_18:
	mov	w8, #5
	b	LBB0_20
LBB0_19:
	mov	w8, #6
LBB0_20:
	str	w8, [x19]
LBB0_21:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sbe_ecc_decode
.subsections_via_symbols
