	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc_setmulticast
_smc_setmulticast:                      ## @smc_setmulticast
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r15d
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.1:
	testq	%r12, %r12
	je	LBB0_7
## %bb.2:
	movl	$1, %ebx
	leaq	L___const.smc_setmulticast.invert3(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	testb	$1, (%rsi)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$6, %edi
	callq	_ether_crc_le
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	shrl	$3, %ecx
	andl	$7, %ecx
	movzbl	(%rcx,%r13), %ecx
	movl	$1, %edx
	shll	%cl, %edx
	andl	$7, %eax
	movzbl	(%rax,%r13), %eax
	orb	%dl, -56(%rbp,%rax)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r15d, %ebx
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %r12
	incl	%ebx
	testq	%r12, %r12
	jne	LBB0_3
LBB0_7:
	movl	$3, %edi
	callq	_SMC_SELECT_BANK
	movslq	%r14d, %rbx
	movzbl	-56(%rbp), %edi
	movq	_MULTICAST1@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	callq	_outb
	movzbl	-55(%rbp), %edi
	movq	(%r14), %rax
	leaq	(%rbx,%rax), %rsi
	incq	%rsi
	callq	_outb
	movzbl	-54(%rbp), %edi
	movq	(%r14), %rax
	leaq	(%rbx,%rax), %rsi
	addq	$2, %rsi
	callq	_outb
	movzbl	-53(%rbp), %edi
	movq	(%r14), %rax
	leaq	(%rbx,%rax), %rsi
	addq	$3, %rsi
	callq	_outb
	movzbl	-52(%rbp), %edi
	movq	(%r14), %rax
	leaq	(%rbx,%rax), %rsi
	addq	$4, %rsi
	callq	_outb
	movzbl	-51(%rbp), %edi
	movq	(%r14), %rax
	leaq	(%rbx,%rax), %rsi
	addq	$5, %rsi
	callq	_outb
	movzbl	-50(%rbp), %edi
	movq	(%r14), %rax
	leaq	(%rbx,%rax), %rsi
	addq	$6, %rsi
	callq	_outb
	movzbl	-49(%rbp), %edi
	movq	(%r14), %rax
	leaq	(%rbx,%rax), %rsi
	addq	$7, %rsi
	callq	_outb
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal8,8byte_literals
L___const.smc_setmulticast.invert3:     ## @__const.smc_setmulticast.invert3
	.ascii	"\000\004\002\006\001\005\003\007"

	.comm	_MULTICAST1,8,3                 ## @MULTICAST1
	.no_dead_strip	_smc_setmulticast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc_setmulticast
_smc_setmulticast:                      ; @smc_setmulticast
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.1:
	cbz	x20, LBB0_7
; %bb.2:
	mov	w22, #1
	mov	x23, sp
	mov	w24, #1
Lloh3:
	adrp	x25, l___const.smc_setmulticast.invert3@PAGE
Lloh4:
	add	x25, x25, l___const.smc_setmulticast.invert3@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x20]
	ldrb	w8, [x1]
	tbz	w8, #0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #6
	bl	_ether_crc_le
                                        ; kill: def $w0 killed $w0 def $x0
	ubfx	x8, x0, #3, #3
	ldrb	w8, [x25, x8]
	and	x9, x0, #0x7
	ldrb	w9, [x25, x9]
	lsl	w8, w22, w8
	ldrb	w10, [x23, x9]
	orr	w8, w10, w8
	strb	w8, [x23, x9]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w24, w21
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x20, #8]
	add	w24, w24, #1
	cbnz	x20, LBB0_3
LBB0_7:
	mov	w0, #3
	bl	_SMC_SELECT_BANK
	sxtw	x19, w19
	ldrb	w0, [sp]
Lloh5:
	adrp	x20, _MULTICAST1@GOTPAGE
Lloh6:
	ldr	x20, [x20, _MULTICAST1@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x1, x8, x19
	bl	_outb
	ldrb	w0, [sp, #1]
	ldr	x8, [x20]
	add	x8, x19, x8
	add	x1, x8, #1
	bl	_outb
	ldrb	w0, [sp, #2]
	ldr	x8, [x20]
	add	x8, x19, x8
	add	x1, x8, #2
	bl	_outb
	ldrb	w0, [sp, #3]
	ldr	x8, [x20]
	add	x8, x19, x8
	add	x1, x8, #3
	bl	_outb
	ldrb	w0, [sp, #4]
	ldr	x8, [x20]
	add	x8, x19, x8
	add	x1, x8, #4
	bl	_outb
	ldrb	w0, [sp, #5]
	ldr	x8, [x20]
	add	x8, x19, x8
	add	x1, x8, #5
	bl	_outb
	ldrb	w0, [sp, #6]
	ldr	x8, [x20]
	add	x8, x19, x8
	add	x1, x8, #6
	bl	_outb
	ldrb	w0, [sp, #7]
	ldr	x8, [x20]
	add	x8, x19, x8
	add	x1, x8, #7
	bl	_outb
	ldr	x8, [sp, #8]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal8,8byte_literals
l___const.smc_setmulticast.invert3:     ; @__const.smc_setmulticast.invert3
	.ascii	"\000\004\002\006\001\005\003\007"

	.comm	_MULTICAST1,8,3                 ; @MULTICAST1
	.no_dead_strip	_smc_setmulticast
.subsections_via_symbols
