	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_s2io_add_mc
_do_s2io_add_mc:                        ## @do_s2io_add_mc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_11
## %bb.1:
	movq	%rdi, %r14
	leaq	-1(%rdx), %rcx
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_9
LBB0_3:
	andl	$-4, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_4
## %bb.5:
	movl	-16(%rsi,%rcx,4), %edx
	movl	-12(%rsi,%rcx,4), %ebx
	shll	$16, %edx
	shll	$8, %ebx
	orl	%edx, %ebx
	orl	-8(%rsi,%rcx,4), %ebx
	shll	$8, %ebx
	orl	-4(%rsi,%rcx,4), %ebx
	testq	%rax, %rax
	je	LBB0_9
LBB0_7:
	leaq	(%rsi,%rcx,4), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	shll	$8, %ebx
	orl	(%rcx,%rdx,4), %ebx
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_8
LBB0_9:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	movq	_S2IO_DISABLE_MAC_ENTRY@GOTPCREL(%rip), %r13
	cmpl	(%r13), %ebx
	je	LBB0_11
## %bb.12:
	movl	(%r14), %r15d
	movl	4(%r14), %eax
	cmpl	%eax, %r15d
	jge	LBB0_20
## %bb.13:
                                        ## implicit-def: $r12d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_do_s2io_read_unicast_mc
	xorl	%ecx, %ecx
	movl	%r12d, %edx
	cmpl	%ebx, %eax
	sete	%sil
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_SUCCESS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	cmpl	(%r13), %eax
	movb	%sil, %cl
	movl	$5, %eax
	cmovel	%eax, %ecx
	cmovnel	%edx, %r12d
	testl	%ecx, %ecx
	jne	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	incl	%r15d
	movl	4(%r14), %eax
	cmpl	%eax, %r15d
	jl	LBB0_14
LBB0_20:
	cmpl	%eax, %r15d
	jne	LBB0_24
LBB0_21:
	movq	_ERR_DBG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DBG_PRINT
	movq	_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_11:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %r12d
LBB0_23:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	cmpl	$5, %ecx
	jne	LBB0_23
## %bb.18:
	movl	4(%r14), %eax
	cmpl	%eax, %r15d
	je	LBB0_21
LBB0_24:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_do_s2io_copy_mac_addr
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_s2io_add_mac                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_S2IO_DISABLE_MAC_ENTRY,4,2     ## @S2IO_DISABLE_MAC_ENTRY
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_ERR_DBG,4,2                    ## @ERR_DBG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CAM full no space left for multicast MAC\n"

	.comm	_FAILURE,4,2                    ## @FAILURE
	.no_dead_strip	_do_s2io_add_mc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_s2io_add_mc
_do_s2io_add_mc:                        ; @do_s2io_add_mc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x1], #4
	orr	w20, w9, w20, lsl #8
	subs	x8, x8, #1
	b.ne	LBB0_2
; %bb.3:
Lloh3:
	adrp	x23, _S2IO_DISABLE_MAC_ENTRY@GOTPAGE
Lloh4:
	ldr	x23, [x23, _S2IO_DISABLE_MAC_ENTRY@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w20, #0
	ccmp	w20, w8, #4, ne
	b.ne	LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
LBB0_5:
	ldr	w22, [x8]
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldp	w21, w8, [x19]
	cmp	w21, w8
	b.ge	LBB0_11
; %bb.8:
Lloh7:
	adrp	x24, _SUCCESS@GOTPAGE
Lloh8:
	ldr	x24, [x24, _SUCCESS@GOTPAGEOFF]
	mov	w25, #5
                                        ; implicit-def: $w22
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_do_s2io_read_unicast_mc
	ldr	w8, [x23]
	ldr	w9, [x24]
	cmp	w0, w20
	csel	w9, w9, w22, eq
	cset	w10, eq
	cmp	w0, w8
	csel	w8, w25, w10, eq
	csel	w22, w22, w9, eq
	cbnz	w8, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w21, w21, #1
	ldr	w8, [x19, #4]
	cmp	w21, w8
	b.lt	LBB0_9
LBB0_11:
	cmp	w21, w8
	b.ne	LBB0_15
LBB0_12:
Lloh9:
	adrp	x8, _ERR_DBG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_DBG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DBG_PRINT
Lloh14:
	adrp	x8, _FAILURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
	b	LBB0_5
LBB0_13:
	cmp	w8, #5
	b.ne	LBB0_6
; %bb.14:
	ldr	w8, [x19, #4]
	cmp	w21, w8
	b.eq	LBB0_12
LBB0_15:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_do_s2io_copy_mac_addr
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_do_s2io_add_mac
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_S2IO_DISABLE_MAC_ENTRY,4,2     ; @S2IO_DISABLE_MAC_ENTRY
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_ERR_DBG,4,2                    ; @ERR_DBG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CAM full no space left for multicast MAC\n"

	.comm	_FAILURE,4,2                    ; @FAILURE
	.no_dead_strip	_do_s2io_add_mc
.subsections_via_symbols
