	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ether_gen_crc
_ether_gen_crc:                         ## @ether_gen_crc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	jle	LBB0_1
## %bb.2:
	movq	_ethernet_polynomial@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	incl	%edi
	movq	$-1, %rax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	xorq	%r9, %rax
	addq	$4, %rsi
	decl	%edi
	cmpl	$1, %edi
	jbe	LBB0_20
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %r10d
	leaq	(%rax,%rax), %r9
	shrq	$63, %rax
	movl	%r10d, %edx
	andl	$1, %edx
	movl	$0, %ecx
	cmpl	%eax, %edx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r8, %rcx
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorq	%r9, %rcx
	movl	%r10d, %edx
	shrl	%edx
	leaq	(%rcx,%rcx), %r9
	shrq	$63, %rcx
	andl	$1, %edx
	movl	$0, %eax
	cmpl	%ecx, %edx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r8, %rax
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorq	%r9, %rax
	movl	%r10d, %edx
	shrl	$2, %edx
	leaq	(%rax,%rax), %r9
	shrq	$63, %rax
	andl	$1, %edx
	movl	$0, %ecx
	cmpl	%eax, %edx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r8, %rcx
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorq	%r9, %rcx
	movl	%r10d, %edx
	shrl	$3, %edx
	leaq	(%rcx,%rcx), %r9
	shrq	$63, %rcx
	andl	$1, %edx
	movl	$0, %eax
	cmpl	%ecx, %edx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r8, %rax
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	xorq	%r9, %rax
	movl	%r10d, %edx
	shrl	$4, %edx
	leaq	(%rax,%rax), %r9
	shrq	$63, %rax
	andl	$1, %edx
	movl	$0, %ecx
	cmpl	%eax, %edx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r8, %rcx
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	xorq	%r9, %rcx
	movl	%r10d, %edx
	shrl	$5, %edx
	leaq	(%rcx,%rcx), %r9
	shrq	$63, %rcx
	andl	$1, %edx
	movl	$0, %eax
	cmpl	%ecx, %edx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r8, %rax
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	xorq	%r9, %rax
	movl	%r10d, %edx
	shrl	$6, %edx
	leaq	(%rax,%rax), %r9
	shrq	$63, %rax
	andl	$1, %edx
	movl	$0, %ecx
	cmpl	%eax, %edx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r8, %rcx
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	xorq	%r9, %rcx
	shrl	$7, %r10d
	leaq	(%rcx,%rcx), %r9
	shrq	$63, %rcx
	andl	$1, %r10d
	movl	$0, %eax
	cmpl	%ecx, %r10d
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r8, %rax
	jmp	LBB0_19
LBB0_20:
	popq	%rbp
	retq
LBB0_1:
	movq	$-1, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ethernet_polynomial,8,3        ## @ethernet_polynomial
	.no_dead_strip	_ether_gen_crc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ether_gen_crc
_ether_gen_crc:                         ; @ether_gen_crc
	.cfi_startproc
; %bb.0:
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ethernet_polynomial@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ethernet_polynomial@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	w9, w0, #1
	mov	x0, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x1], #4
	lsr	x11, x0, #63
	and	w12, w10, #0x1
	cmp	w12, w11
	csel	x11, xzr, x8, eq
	eor	x11, x11, x0, lsl #1
	lsr	x12, x11, #63
	ubfx	w13, w10, #1, #1
	cmp	w13, w12
	csel	x12, xzr, x8, eq
	eor	x11, x12, x11, lsl #1
	lsr	x12, x11, #63
	ubfx	w13, w10, #2, #1
	cmp	w13, w12
	csel	x12, xzr, x8, eq
	eor	x11, x12, x11, lsl #1
	lsr	x12, x11, #63
	ubfx	w13, w10, #3, #1
	cmp	w13, w12
	csel	x12, xzr, x8, eq
	eor	x11, x12, x11, lsl #1
	lsr	x12, x11, #63
	ubfx	w13, w10, #4, #1
	cmp	w13, w12
	csel	x12, xzr, x8, eq
	eor	x11, x12, x11, lsl #1
	lsr	x12, x11, #63
	ubfx	w13, w10, #5, #1
	cmp	w13, w12
	csel	x12, xzr, x8, eq
	eor	x11, x12, x11, lsl #1
	lsr	x12, x11, #63
	ubfx	w13, w10, #6, #1
	cmp	w13, w12
	csel	x12, xzr, x8, eq
	eor	x11, x12, x11, lsl #1
	lsr	x12, x11, #63
	ubfx	w10, w10, #7, #1
	cmp	w10, w12
	csel	x10, xzr, x8, eq
	eor	x0, x10, x11, lsl #1
	sub	w9, w9, #1
	cmp	w9, #1
	b.hi	LBB0_2
; %bb.3:
	ret
LBB0_4:
	mov	x0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ethernet_polynomial,8,3        ; @ethernet_polynomial
	.no_dead_strip	_ether_gen_crc
.subsections_via_symbols
