	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hw_set_grp_addr
_hw_set_grp_addr:                       ## @hw_set_grp_addr
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %rdi
	movq	_HW_MULTICAST_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movl	$6, %edi
	callq	_ether_crc
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	shrl	$26, %ecx
	shrl	$29, %eax
	andb	$7, %cl
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movq	16(%r15), %rcx
	orl	%edx, (%rcx,%rax,4)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	movq	_KS884X_MULTICAST_0_OFFSET@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rsi
	addq	(%r12), %rsi
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	addq	%rbx, %rsi
	callq	_writeb
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_MULTICAST_SIZE,4,2          ## @HW_MULTICAST_SIZE
	.comm	_KS884X_MULTICAST_0_OFFSET,8,3  ## @KS884X_MULTICAST_0_OFFSET
	.no_dead_strip	_hw_set_grp_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hw_set_grp_addr
_hw_set_grp_addr:                       ; @hw_set_grp_addr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x20, _HW_MULTICAST_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HW_MULTICAST_SIZE@GOTPAGEOFF]
	ldr	w8, [x20]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	w22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w1, [x8, x21, lsl #2]
	mov	w0, #6
	bl	_ether_crc
	lsr	w8, w0, #29
	ubfx	w9, w0, #26, #3
	lsl	w9, w22, w9
	ldr	x10, [x19, #16]
	lsl	x8, x8, #2
	ldr	w11, [x10, x8]
	orr	w9, w9, w11
	str	w9, [x10, x8]
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x21, #0
Lloh2:
	adrp	x22, _KS884X_MULTICAST_0_OFFSET@GOTPAGE
Lloh3:
	ldr	x22, [x22, _KS884X_MULTICAST_0_OFFSET@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x19, #8]
	ldr	w0, [x8, x21, lsl #2]
	ldr	x8, [x22]
	add	x8, x9, x8
	add	x1, x21, x8
	bl	_writeb
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_MULTICAST_SIZE,4,2          ; @HW_MULTICAST_SIZE
	.comm	_KS884X_MULTICAST_0_OFFSET,8,3  ; @KS884X_MULTICAST_0_OFFSET
	.no_dead_strip	_hw_set_grp_addr
.subsections_via_symbols
