	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slic_eeprom_csum
_slic_eeprom_csum:                      ## @slic_eeprom_csum
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	cmpl	$2, %esi
	jb	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-36(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	-36(%rbp), %edi
	callq	_le16_to_cpu
	addl	%eax, %ebx
	addq	$2, %r14
	addl	$-2, %r15d
	cmpl	$1, %r15d
	ja	LBB0_2
LBB0_3:
	cmpl	$1, %r15d
	jne	LBB0_5
## %bb.4:
	addl	(%r14), %ebx
LBB0_5:
	cmpl	$65536, %ebx                    ## imm = 0x10000
	jb	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	shrl	$16, %eax
	movzwl	%bx, %ebx
	addl	%eax, %ebx
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	ja	LBB0_6
LBB0_7:
	notl	%ebx
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_slic_eeprom_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slic_eeprom_csum
_slic_eeprom_csum:                      ; @slic_eeprom_csum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	cmp	w1, #2
	b.lo	LBB0_8
; %bb.1:
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	mov	x1, x19
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	add	w21, w21, w0
	add	x19, x19, #2
	sub	w20, w20, #2
	cmp	w20, #1
	b.hi	LBB0_2
; %bb.3:
	cmp	w20, #1
	b.ne	LBB0_5
LBB0_4:
	ldr	w8, [x19]
	add	w21, w21, w8
LBB0_5:
	cmp	w21, #16, lsl #12               ; =65536
	b.lo	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w21, #16
	add	w21, w8, w21, uxth
	lsr	w8, w21, #16
	cbnz	w8, LBB0_6
LBB0_7:
	mvn	w0, w21
	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
	add	sp, sp, #64
	ret
LBB0_8:
	mov	w21, #0
	cmp	w20, #1
	b.eq	LBB0_4
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_slic_eeprom_csum
.subsections_via_symbols
