	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function rtc_from4_calculate_ecc
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	2                               ## 0x2
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	4                               ## 0x4
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	6                               ## 0x6
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
LCPI0_1:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_2:
	.space	2
	.space	2
	.space	2
	.short	15                              ## 0xf
	.space	2
	.space	2
	.space	2
	.space	2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_rtc_from4_calculate_ecc:               ## @rtc_from4_calculate_ecc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_rtc_from4_fio_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_RTC_FROM4_RS_ECCN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movzwl	(%rcx,%rax), %esi
	movd	%esi, %xmm0
	pinsrw	$1, 2(%rcx,%rax), %xmm0
	pinsrw	$2, 4(%rcx,%rax), %xmm0
	pinsrw	$3, 6(%rcx,%rax), %xmm0
	pshufb	LCPI0_0(%rip), %xmm0            ## xmm0 = xmm0[0],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[4],zero,zero,zero,xmm0[6],zero,zero,zero
	movdqu	%xmm0, (%rdx)
	movzwl	8(%rcx,%rax), %esi
	movd	%esi, %xmm0
	pinsrw	$1, 10(%rcx,%rax), %xmm0
	pinsrw	$2, 12(%rcx,%rax), %xmm0
	movzwl	14(%rcx,%rax), %eax
	andl	$240, %eax
	movdqa	%xmm0, %xmm1
	pinsrw	$3, %eax, %xmm1
	pand	LCPI0_1(%rip), %xmm0
	por	LCPI0_2(%rip), %xmm1
	pblendw	$247, %xmm0, %xmm1              ## xmm1 = xmm0[0,1,2],xmm1[3],xmm0[4,5,6,7]
	pmovzxwd	%xmm1, %xmm0                    ## xmm0 = xmm1[0],zero,xmm1[1],zero,xmm1[2],zero,xmm1[3],zero
	movdqu	%xmm0, 16(%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rtc_from4_fio_base,8,3         ## @rtc_from4_fio_base
	.comm	_RTC_FROM4_RS_ECCN,8,3          ## @RTC_FROM4_RS_ECCN
	.no_dead_strip	_rtc_from4_calculate_ecc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtc_from4_calculate_ecc
_rtc_from4_calculate_ecc:               ; @rtc_from4_calculate_ecc
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _rtc_from4_fio_base@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rtc_from4_fio_base@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _RTC_FROM4_RS_ECCN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RTC_FROM4_RS_ECCN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x8, x9, x8
	ldrh	w9, [x8]
	and	w9, w9, #0xff
	str	w9, [x2]
	ldrh	w9, [x8, #2]
	and	w9, w9, #0xff
	str	w9, [x2, #4]
	ldrh	w9, [x8, #4]
	and	w9, w9, #0xff
	str	w9, [x2, #8]
	ldrh	w9, [x8, #6]
	and	w9, w9, #0xff
	str	w9, [x2, #12]
	ldrh	w9, [x8, #8]
	and	w9, w9, #0xff
	str	w9, [x2, #16]
	ldrh	w9, [x8, #10]
	and	w9, w9, #0xff
	str	w9, [x2, #20]
	ldrh	w9, [x8, #12]
	and	w9, w9, #0xff
	str	w9, [x2, #24]
	ldrh	w8, [x8, #14]
	and	w8, w8, #0xf0
	orr	w8, w8, #0xf
	str	w8, [x2, #28]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_rtc_from4_fio_base,8,3         ; @rtc_from4_fio_base
	.comm	_RTC_FROM4_RS_ECCN,8,3          ; @RTC_FROM4_RS_ECCN
	.no_dead_strip	_rtc_from4_calculate_ecc
.subsections_via_symbols
