	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function syndrome_from_bit
_syndrome_from_bit:                     ## @syndrome_from_bit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %ecx
	movq	_ecc_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	xorl	%eax, %eax
	cmpl	$32, %edi
	setb	%al
	movl	(%r9,%rax,4), %r8d
	movl	8(%r9,%rax,4), %edi
	xorl	%esi, %esi
	btl	%ecx, %r8d
	setb	%sil
	shrl	%cl, %edi
	andl	$1, %edi
	leal	(%rsi,%rdi,2), %r8d
	movl	16(%r9,%rax,4), %edi
	shrl	%cl, %edi
	movl	24(%r9,%rax,4), %esi
	shrl	%cl, %esi
	andl	$1, %edi
	leal	(%r8,%rdi,4), %edi
	andl	$1, %esi
	leal	(%rdi,%rsi,8), %esi
	movl	32(%r9,%rax,4), %edi
	shrl	%cl, %edi
	shll	$4, %edi
	andl	$16, %edi
	orl	%esi, %edi
	movl	40(%r9,%rax,4), %esi
	shrl	%cl, %esi
	shll	$5, %esi
	movl	48(%r9,%rax,4), %edx
	shrl	%cl, %edx
	andl	$32, %esi
	orl	%edi, %esi
	shll	$6, %edx
	andl	$64, %edx
	movl	56(%r9,%rax,4), %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	shll	$7, %eax
	movzbl	%al, %eax
	orl	%edx, %eax
	orl	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ecc_table,8,3                  ## @ecc_table
	.no_dead_strip	_syndrome_from_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function syndrome_from_bit
_syndrome_from_bit:                     ; @syndrome_from_bit
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ecc_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ecc_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	w0, #32
	cset	w9, lo
	ldr	w9, [x8, w9, uxtw #2]
	lsr	w9, w9, w0
	and	w9, w9, #0x1
	mov	w10, #8
	mov	w11, #12
	csel	x10, x11, x10, lo
	add	x8, x8, x10
	ldr	w10, [x8]
	lsr	w10, w10, w0
	bfi	w9, w10, #1, #1
	ldr	w10, [x8, #8]
	lsr	w10, w10, w0
	bfi	w9, w10, #2, #1
	ldr	w10, [x8, #16]
	lsr	w10, w10, w0
	bfi	w9, w10, #3, #1
	ldr	w10, [x8, #24]
	lsr	w10, w10, w0
	bfi	w9, w10, #4, #1
	ldr	w10, [x8, #32]
	lsr	w10, w10, w0
	bfi	w9, w10, #5, #1
	ldr	w10, [x8, #40]
	lsr	w10, w10, w0
	bfi	w9, w10, #6, #1
	ldr	w8, [x8, #48]
	lsr	w8, w8, w0
	ubfiz	w8, w8, #7, #1
	orr	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ecc_table,8,3                  ; @ecc_table
	.no_dead_strip	_syndrome_from_bit
.subsections_via_symbols
