	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_syndrome
_decode_syndrome:                       ## @decode_syndrome
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r8d
	cmpl	%edx, %ecx
	jbe	LBB0_1
LBB0_10:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movl	%r8d, %edx
	callq	_edac_dbg
	movl	$-1, %r9d
	jmp	LBB0_11
LBB0_1:
	xorl	%r10d, %r10d
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%ecx
	cmpl	$2, %eax
	movl	$1, %edx
	cmovbl	%edx, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %r10d
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	%r10d, %r9d
	movl	%r10d, %r14d
	imull	%ecx, %r14d
	leal	1(%r9), %r10d
	movl	%r10d, %r11d
	imull	%ecx, %r11d
	movl	$1, %edi
	movl	%r8d, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	testl	%ebx, %edi
	jne	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	leal	(%rdi,%rdi), %edx
	cmpl	$32768, %edi                    ## imm = 0x8000
	movl	%edx, %edi
	jae	LBB0_9
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%r11d, %r14d
	jae	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	%r14d, %edx
	movl	(%rsi,%rdx,4), %edx
	testl	%edi, %edx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	incl	%r14d
	testl	%ebx, %edi
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	xorl	%edx, %ebx
	jne	LBB0_8
LBB0_11:
	movl	%r9d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"syndrome(%x) not found\n"

	.no_dead_strip	_decode_syndrome
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_syndrome
_decode_syndrome:                       ; @decode_syndrome
	.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
	mov	x8, x0
	cmp	w3, w2
	b.ls	LBB0_2
LBB0_1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	mov	x2, x8
	bl	_edac_dbg
	mov	w0, #-1
	b	LBB0_11
LBB0_2:
	mov	w10, #0
	udiv	w9, w2, w3
	cmp	w9, #1
	csinc	w9, w9, wzr, hi
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w10, w9
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x10
	mul	w11, w10, w3
	add	w10, w10, #1
	mul	w12, w10, w3
	mov	w13, #1
	mov	x14, x8
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	tst	w13, w14
	b.ne	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	lsl	w15, w13, #1
	cmp	w13, #8, lsl #12                ; =32768
	mov	x13, x15
	b.hs	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w11, w12
	b.hs	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w15, [x1, w11, uxtw #2]
	tst	w15, w13
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	add	w11, w11, #1
	tst	w13, w14
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	eor	w14, w15, w14
	cbnz	w14, LBB0_6
LBB0_11:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"syndrome(%x) not found\n"

	.no_dead_strip	_decode_syndrome
.subsections_via_symbols
