	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_set_multicast_list
_ehea_set_multicast_list:               ## @ehea_set_multicast_list
	.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
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	andl	(%r15), %eax
	setne	%sil
	movq	%r15, %rdi
	callq	_ehea_promiscuous
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_ehea_allmulti
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ehea_update_bcmc_registrations ## TAILCALL
LBB0_2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ehea_allmulti
	cmpl	$0, 4(%r15)
	je	LBB0_10
## %bb.3:
	movq	%r15, %rdi
	callq	_ehea_drop_multicast_list
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_ehea_allmulti
LBB0_5:
	movl	4(%r15), %eax
	movq	(%r14), %rcx
	movl	(%rcx), %esi
	cmpl	%esi, %eax
	jle	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_ehea_info
	jmp	LBB0_10
LBB0_7:
	testl	%eax, %eax
	jle	LBB0_10
## %bb.8:
	leaq	8(%r15), %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_ehea_add_multicast_entry
	incl	%r12d
	addq	$8, %rbx
	cmpl	4(%r15), %r12d
	jl	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mcast registration limit reached (0x%llx). Use ALLMULTI!"

	.no_dead_strip	_ehea_set_multicast_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_set_multicast_list
_ehea_set_multicast_list:               ; @ehea_set_multicast_list
	.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
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w1, ne
	mov	x0, x19
	bl	_ehea_promiscuous
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_ehea_allmulti
LBB0_2:
	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
	b	_ehea_update_bcmc_registrations
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_ehea_allmulti
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_2
; %bb.4:
	mov	x0, x19
	bl	_ehea_drop_multicast_list
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #1
	bl	_ehea_allmulti
LBB0_6:
	ldr	w8, [x19, #4]
	ldr	x9, [x20]
	ldr	w1, [x9]
	cmp	w8, w1
	b.le	LBB0_8
; %bb.7:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ehea_info
	b	LBB0_2
LBB0_8:
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.9:
	mov	w21, #0
	add	x22, x19, #8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x22]
	ldr	w1, [x22], #8
	mov	x0, x20
	bl	_ehea_add_multicast_entry
	add	w21, w21, #1
	ldr	w8, [x19, #4]
	cmp	w21, w8
	b.lt	LBB0_10
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mcast registration limit reached (0x%llx). Use ALLMULTI!"

	.no_dead_strip	_ehea_set_multicast_list
.subsections_via_symbols
