	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ogg_page_checksum_set          ## -- Begin function ogg_page_checksum_set
	.p2align	4, 0x90
_ogg_page_checksum_set:                 ## @ogg_page_checksum_set
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r9
	xorps	%xmm0, %xmm0
	movups	%xmm0, 88(%r9)
	movl	8(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_2
## %bb.3:
	movq	_crc_lookup@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpl	$1, %r8d
	jne	LBB0_10
## %bb.4:
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_2:
	xorl	%ecx, %ecx
	jmp	LBB0_7
LBB0_10:
	movl	%r8d, %r10d
	andl	$-2, %r10d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	shll	$8, %eax
	shrl	$24, %ecx
	xorl	(%r9,%rsi,4), %ecx
	movslq	%ecx, %rcx
	xorl	(%rdx,%rcx,4), %eax
	movl	%eax, %ecx
	shll	$8, %ecx
	shrl	$24, %eax
	xorl	4(%r9,%rsi,4), %eax
	cltq
	xorl	(%rdx,%rax,4), %ecx
	addq	$2, %rsi
	cmpq	%rsi, %r10
	jne	LBB0_11
LBB0_5:
	testb	$1, %r8b
	je	LBB0_7
## %bb.6:
	movl	%ecx, %eax
	shrl	$24, %ecx
	xorl	(%r9,%rsi,4), %ecx
	shll	$8, %eax
	movslq	%ecx, %rcx
	xorl	(%rdx,%rcx,4), %eax
	movl	%eax, %ecx
LBB0_7:
	movl	12(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_16
## %bb.8:
	movq	_crc_lookup@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	16(%rdi), %rsi
	cmpl	$1, %r8d
	jne	LBB0_12
## %bb.9:
	xorl	%edi, %edi
	jmp	LBB0_14
LBB0_12:
	movl	%r8d, %r10d
	andl	$-2, %r10d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	shll	$8, %eax
	shrl	$24, %ecx
	xorl	(%rsi,%rdi,4), %ecx
	movslq	%ecx, %rcx
	xorl	(%rdx,%rcx,4), %eax
	movl	%eax, %ecx
	shll	$8, %ecx
	shrl	$24, %eax
	xorl	4(%rsi,%rdi,4), %eax
	cltq
	xorl	(%rdx,%rax,4), %ecx
	addq	$2, %rdi
	cmpq	%rdi, %r10
	jne	LBB0_13
LBB0_14:
	testb	$1, %r8b
	je	LBB0_16
## %bb.15:
	movl	%ecx, %eax
	shrl	$24, %ecx
	xorl	(%rsi,%rdi,4), %ecx
	shll	$8, %eax
	movslq	%ecx, %rcx
	xorl	(%rdx,%rcx,4), %eax
	movl	%eax, %ecx
LBB0_16:
	movzbl	%cl, %eax
	movl	%eax, 88(%r9)
	movzbl	%ch, %eax
	movl	%eax, 92(%r9)
	movl	%ecx, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, 96(%r9)
	shrl	$24, %ecx
	movl	%ecx, 100(%r9)
	popq	%rbp
LBB0_17:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_crc_lookup,8,3                 ## @crc_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ogg_page_checksum_set
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ogg_page_checksum_set
	.p2align	2
_ogg_page_checksum_set:                 ; @ogg_page_checksum_set
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_9
; %bb.1:
	ldr	x8, [x0]
	stp	xzr, xzr, [x8, #88]
	ldr	w11, [x0, #8]
Lloh0:
	adrp	x10, _crc_lookup@GOTPAGE
Lloh1:
	ldr	x10, [x10, _crc_lookup@GOTPAGEOFF]
	cmp	w11, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w9, #0
	ldr	x12, [x10]
	mov	x13, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x13], #4
	eor	w14, w14, w9, lsr #24
	ldr	w14, [x12, w14, sxtw #2]
	eor	w9, w14, w9, lsl #8
	subs	x11, x11, #1
	b.ne	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	w9, #0
LBB0_5:
	ldr	w11, [x0, #12]
	cmp	w11, #1
	b.lt	LBB0_8
; %bb.6:
	ldr	x10, [x10]
	ldr	x12, [x0, #16]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12], #4
	eor	w13, w13, w9, lsr #24
	ldr	w13, [x10, w13, sxtw #2]
	eor	w9, w13, w9, lsl #8
	subs	x11, x11, #1
	b.ne	LBB0_7
LBB0_8:
	and	w10, w9, #0xff
	str	w10, [x8, #88]
	dup.2s	v0, w9
Lloh2:
	adrp	x10, lCPI0_0@PAGE
Lloh3:
	ldr	d1, [x10, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [x8, #92]
	lsr	w9, w9, #24
	str	w9, [x8, #100]
LBB0_9:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_crc_lookup,8,3                 ; @crc_lookup
.subsections_via_symbols
