	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ether_crc32_be                 ## -- Begin function ether_crc32_be
	.p2align	4, 0x90
_ether_crc32_be:                        ## @ether_crc32_be
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	_ETHER_CRC_POLY_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$-1, %eax
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%r9,4), %r10d
	movl	%eax, %edx
	shrl	$31, %edx
	movl	%r10d, %ecx
	andl	$1, %ecx
	xorl	%edx, %ecx
	addl	%eax, %eax
	movl	%r8d, %edx
	xorl	%eax, %edx
	orl	%ecx, %edx
	testl	%ecx, %ecx
	cmovel	%eax, %edx
	movl	%r10d, %eax
	shrl	%eax
	movl	%edx, %ecx
	shrl	$31, %ecx
	andl	$1, %eax
	xorl	%ecx, %eax
	addl	%edx, %edx
	movl	%r8d, %ecx
	xorl	%edx, %ecx
	orl	%eax, %ecx
	testl	%eax, %eax
	cmovel	%edx, %ecx
	movl	%r10d, %eax
	shrl	$2, %eax
	movl	%ecx, %edx
	shrl	$31, %edx
	andl	$1, %eax
	xorl	%edx, %eax
	addl	%ecx, %ecx
	movl	%r8d, %edx
	xorl	%ecx, %edx
	orl	%eax, %edx
	testl	%eax, %eax
	cmovel	%ecx, %edx
	movl	%r10d, %eax
	shrl	$3, %eax
	movl	%edx, %ecx
	shrl	$31, %ecx
	andl	$1, %eax
	xorl	%ecx, %eax
	addl	%edx, %edx
	movl	%r8d, %ecx
	xorl	%edx, %ecx
	orl	%eax, %ecx
	testl	%eax, %eax
	cmovel	%edx, %ecx
	movl	%r10d, %eax
	shrl	$4, %eax
	movl	%ecx, %edx
	shrl	$31, %edx
	andl	$1, %eax
	xorl	%edx, %eax
	addl	%ecx, %ecx
	movl	%r8d, %edx
	xorl	%ecx, %edx
	orl	%eax, %edx
	testl	%eax, %eax
	cmovel	%ecx, %edx
	movl	%r10d, %eax
	shrl	$5, %eax
	movl	%edx, %ecx
	shrl	$31, %ecx
	andl	$1, %eax
	xorl	%ecx, %eax
	addl	%edx, %edx
	movl	%r8d, %ecx
	xorl	%edx, %ecx
	orl	%eax, %ecx
	testl	%eax, %eax
	cmovel	%edx, %ecx
	movl	%r10d, %eax
	shrl	$6, %eax
	movl	%ecx, %edx
	shrl	$31, %edx
	andl	$1, %eax
	xorl	%edx, %eax
	addl	%ecx, %ecx
	movl	%r8d, %edx
	xorl	%ecx, %edx
	orl	%eax, %edx
	testl	%eax, %eax
	cmovel	%ecx, %edx
	shrl	$7, %r10d
	movl	%edx, %eax
	shrl	$31, %eax
	andl	$1, %r10d
	xorl	%eax, %r10d
	addl	%edx, %edx
	movl	%r8d, %eax
	xorl	%edx, %eax
	orl	%r10d, %eax
	testl	%r10d, %r10d
	cmovel	%edx, %eax
	incq	%r9
	cmpq	%r9, %rsi
	jne	LBB0_3
## %bb.4:
	popq	%rbp
	retq
LBB0_1:
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHER_CRC_POLY_BE,4,2          ## @ETHER_CRC_POLY_BE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ether_crc32_be                 ; -- Begin function ether_crc32_be
	.p2align	2
_ether_crc32_be:                        ; @ether_crc32_be
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ETHER_CRC_POLY_BE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHER_CRC_POLY_BE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	mov	w8, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x0], #4
	and	w11, w10, #0x1
	eor	w11, w11, w8, lsr #31
	lsl	w8, w8, #1
	eor	w12, w9, w8
	orr	w12, w12, w11
	cmp	w11, #0
	csel	w8, w8, w12, eq
	ubfx	w11, w10, #1, #1
	eor	w11, w11, w8, lsr #31
	lsl	w8, w8, #1
	eor	w12, w9, w8
	orr	w12, w12, w11
	cmp	w11, #0
	csel	w8, w8, w12, eq
	ubfx	w11, w10, #2, #1
	eor	w11, w11, w8, lsr #31
	lsl	w8, w8, #1
	eor	w12, w9, w8
	orr	w12, w12, w11
	cmp	w11, #0
	csel	w8, w8, w12, eq
	ubfx	w11, w10, #3, #1
	eor	w11, w11, w8, lsr #31
	lsl	w8, w8, #1
	eor	w12, w9, w8
	orr	w12, w12, w11
	cmp	w11, #0
	csel	w8, w8, w12, eq
	ubfx	w11, w10, #4, #1
	eor	w11, w11, w8, lsr #31
	lsl	w8, w8, #1
	eor	w12, w9, w8
	orr	w12, w12, w11
	cmp	w11, #0
	csel	w8, w8, w12, eq
	ubfx	w11, w10, #5, #1
	eor	w11, w11, w8, lsr #31
	lsl	w8, w8, #1
	eor	w12, w9, w8
	orr	w12, w12, w11
	cmp	w11, #0
	csel	w8, w8, w12, eq
	ubfx	w11, w10, #6, #1
	eor	w11, w11, w8, lsr #31
	lsl	w8, w8, #1
	eor	w12, w9, w8
	orr	w12, w12, w11
	cmp	w11, #0
	csel	w8, w8, w12, eq
	ubfx	w10, w10, #7, #1
	eor	w10, w10, w8, lsr #31
	lsl	w8, w8, #1
	eor	w11, w9, w8
	orr	w11, w11, w10
	cmp	w10, #0
	csel	w8, w8, w11, eq
	subs	x1, x1, #1
	b.ne	LBB0_2
; %bb.3:
	mov	x0, x8
	ret
LBB0_4:
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHER_CRC_POLY_BE,4,2          ; @ETHER_CRC_POLY_BE
.subsections_via_symbols
