	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_tb_checksum               ## -- Begin function acpi_tb_checksum
	.p2align	4, 0x90
_acpi_tb_checksum:                      ## @acpi_tb_checksum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movslq	%esi, %rax
	leaq	(%rdi,%rax,8), %rcx
	leaq	8(%rdi), %rax
	cmpq	%rax, %rcx
	cmovaq	%rcx, %rax
	movq	%rdi, %r9
	notq	%r9
	addq	%rax, %r9
	cmpq	$24, %r9
	jae	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	shrq	$3, %r9
	incq	%r9
	movq	%r9, %r8
	andq	$-4, %r8
	leaq	-4(%r8), %rsi
	movq	%rsi, %rax
	shrq	$2, %rax
	incq	%rax
	movl	%eax, %edx
	andl	$3, %edx
	cmpq	$12, %rsi
	jae	LBB0_6
## %bb.5:
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	jmp	LBB0_8
LBB0_6:
	andq	$-4, %rax
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rsi,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%rdi,%rsi,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	32(%rdi,%rsi,8), %xmm1
	movdqu	48(%rdi,%rsi,8), %xmm3
	movdqu	64(%rdi,%rsi,8), %xmm4
	paddq	%xmm1, %xmm4
	paddq	%xmm2, %xmm4
	movdqu	80(%rdi,%rsi,8), %xmm2
	paddq	%xmm3, %xmm2
	paddq	%xmm0, %xmm2
	movdqu	96(%rdi,%rsi,8), %xmm0
	paddq	%xmm4, %xmm0
	movdqu	112(%rdi,%rsi,8), %xmm1
	paddq	%xmm2, %xmm1
	addq	$16, %rsi
	addq	$-4, %rax
	jne	LBB0_7
LBB0_8:
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.9:
	leaq	(%rdi,%rsi,8), %rax
	addq	$16, %rax
	shlq	$5, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rax,%rsi), %xmm2
	paddq	%xmm2, %xmm0
	movdqu	(%rax,%rsi), %xmm2
	paddq	%xmm2, %xmm1
	addq	$32, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_10
LBB0_11:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rax
	cmpq	%r8, %r9
	je	LBB0_14
## %bb.12:
	leaq	(%rdi,%r8,8), %rdi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	addq	(%rdi), %rax
	addq	$8, %rdi
	cmpq	%rcx, %rdi
	jb	LBB0_13
LBB0_14:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_tb_checksum               ; -- Begin function acpi_tb_checksum
	.p2align	2
_acpi_tb_checksum:                      ; @acpi_tb_checksum
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.1:
	sxtw	x8, w1
	add	x8, x0, x8, lsl #3
	add	x9, x0, #8
	cmp	x8, x9
	csel	x8, x8, x9, hi
	mvn	x9, x0
	add	x8, x8, x9
	cmp	x8, #56
	b.hs	LBB0_4
; %bb.2:
	mov	x8, #0
	mov	x9, x0
	b	LBB0_7
LBB0_3:
	mov	x0, #0
	ret
LBB0_4:
	lsr	x8, x8, #3
	add	x10, x8, #1
	and	x11, x10, #0x3ffffffffffffff8
	add	x9, x0, x11, lsl #3
	add	x8, x0, #32
	movi.2d	v0, #0000000000000000
	mov	x12, x11
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x8, #-32]
	ldp	q6, q7, [x8], #64
	add.2d	v0, v4, v0
	add.2d	v1, v5, v1
	add.2d	v2, v6, v2
	add.2d	v3, v7, v3
	subs	x12, x12, #8
	b.ne	LBB0_5
; %bb.6:
	add.2d	v0, v1, v0
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x8, d0
	cmp	x10, x11
	b.eq	LBB0_9
LBB0_7:
	add	x10, x0, w1, sxtw #3
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9], #8
	add	x8, x11, x8
	cmp	x9, x10
	b.lo	LBB0_8
LBB0_9:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
