	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gem_setup_multicast
_gem_setup_multicast:                   ## @gem_setup_multicast
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	8(%rdi), %rax
	movl	(%rax), %edx
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	jne	LBB0_2
## %bb.1:
	movl	4(%rax), %ecx
	cmpl	$257, %ecx                      ## imm = 0x101
	jl	LBB0_3
LBB0_2:
	movq	(%r15), %rsi
	movq	_MAC_HASH0@GOTPCREL(%rip), %r14
	addq	(%r14), %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writel
	movq	(%r15), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$4, %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writel
	movq	(%r15), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$8, %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writel
	movq	(%r15), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$12, %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writel
	movq	(%r15), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$16, %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writel
	movq	(%r15), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$20, %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writel
	movq	(%r15), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$24, %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writel
	movq	(%r15), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$28, %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writel
	movq	(%r15), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$32, %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writel
	movq	(%r15), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$36, %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writel
	movq	(%r15), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$40, %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writel
	movq	(%r15), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$44, %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writel
	movq	(%r15), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$48, %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writel
	movq	(%r15), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$52, %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writel
	movq	(%r15), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$56, %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writel
	movq	(%r15), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$60, %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writel
LBB0_12:
	movq	_MAC_RXCFG_HFE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_5
## %bb.4:
	movq	_MAC_RXCFG_PROM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_5:
	movq	8(%rax), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	cmpl	4(%rax), %ebx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	movq	8(%r14), %r14
	testb	$1, (%rsi)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$6, %edi
	callq	_ether_crc_le
	movl	%eax, %ecx
	shrl	$24, %ecx
	notb	%cl
	andb	$15, %cl
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	sarl	$28, %eax
	cltq
	orl	%edx, -96(%rbp,%rax,4)
	movq	8(%r15), %rax
	jmp	LBB0_9
LBB0_10:
	xorl	%ebx, %ebx
	movq	_MAC_HASH0@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	-96(%rbp,%rbx), %edi
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	addq	%rbx, %rsi
	callq	_writel
	addq	$4, %rbx
	cmpq	$64, %rbx
	jne	LBB0_11
	jmp	LBB0_12
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_MAC_HASH0,8,3                  ## @MAC_HASH0
	.comm	_MAC_RXCFG_HFE,4,2              ## @MAC_RXCFG_HFE
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_MAC_RXCFG_PROM,4,2             ## @MAC_RXCFG_PROM
	.no_dead_strip	_gem_setup_multicast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gem_setup_multicast
_gem_setup_multicast:                   ; @gem_setup_multicast
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x8, [x0, #8]
	ldr	w10, [x8]
Lloh3:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w10
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x8, #4]
	cmp	w9, #257
	b.lt	LBB0_6
LBB0_2:
	ldr	x8, [x19]
Lloh6:
	adrp	x20, _MAC_HASH0@GOTPAGE
Lloh7:
	ldr	x20, [x20, _MAC_HASH0@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x8, x9
	mov	w0, #65535
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #4
	mov	w0, #65535
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #8
	mov	w0, #65535
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #12
	mov	w0, #65535
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #16
	mov	w0, #65535
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #20
	mov	w0, #65535
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #24
	mov	w0, #65535
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #28
	mov	w0, #65535
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #32
	mov	w0, #65535
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #36
	mov	w0, #65535
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #40
	mov	w0, #65535
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #44
	mov	w0, #65535
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #48
	mov	w0, #65535
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #52
	mov	w0, #65535
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #56
	mov	w0, #65535
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #60
	mov	w0, #65535
	bl	_writel
LBB0_3:
Lloh8:
	adrp	x8, _MAC_RXCFG_HFE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAC_RXCFG_HFE@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.5:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
Lloh13:
	adrp	x11, _IFF_PROMISC@GOTPAGE
Lloh14:
	ldr	x11, [x11, _IFF_PROMISC@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_8
; %bb.7:
Lloh16:
	adrp	x8, _MAC_RXCFG_PROM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MAC_RXCFG_PROM@GOTPAGEOFF]
	b	LBB0_4
LBB0_8:
	ldr	x20, [x8, #8]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	stp	q0, q0, [sp, #32]
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.9:
	mov	w21, #0
	mov	w22, #15
	mov	w23, #1
	mov	x24, sp
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w21, w21, #1
	ldr	w9, [x8, #4]
	cmp	w21, w9
	b.ge	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	x1, x20, [x20]
	ldrb	w9, [x1]
	tbz	w9, #0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #6
	bl	_ether_crc_le
	bic	w8, w22, w0, lsr #24
	lsl	w8, w23, w8
	asr	w9, w0, #28
	sbfiz	x9, x9, #2, #32
	ldr	w10, [x24, x9]
	orr	w8, w8, w10
	str	w8, [x24, x9]
	ldr	x8, [x19, #8]
	b	LBB0_10
LBB0_13:
	mov	x20, #0
	mov	x21, sp
Lloh18:
	adrp	x22, _MAC_HASH0@GOTPAGE
Lloh19:
	ldr	x22, [x22, _MAC_HASH0@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, x20]
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x8, x8, x9
	add	x1, x20, x8
	bl	_writel
	add	x20, x20, #4
	cmp	x20, #64
	b.ne	LBB0_14
	b	LBB0_3
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_MAC_HASH0,8,3                  ; @MAC_HASH0
	.comm	_MAC_RXCFG_HFE,4,2              ; @MAC_RXCFG_HFE
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_MAC_RXCFG_PROM,4,2             ; @MAC_RXCFG_PROM
	.no_dead_strip	_gem_setup_multicast
.subsections_via_symbols
