	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_multicast_list
_set_multicast_list:                    ## @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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	8(%rdi), %rbx
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movq	_CSR0@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, 8(%rbx)
	movq	_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_ariadne_init_ring
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_3
## %bb.2:
	movq	_CSR15@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_PROM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	callq	_netdev_mc_count
	xorl	%esi, %esi
	negl	%eax
	sbbl	%esi, %esi
	leaq	-48(%rbp), %rdi
	movl	$8, %edx
	callq	_memset
	movq	_CSR8@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, 8(%rbx)
	movswl	-48(%rbp), %edi
	callq	_swapw
	movl	%eax, (%rbx)
	movl	$256, %eax                      ## imm = 0x100
	addq	(%r12), %rax
	movq	%rax, 8(%rbx)
	movswl	-46(%rbp), %edi
	callq	_swapw
	movl	%eax, (%rbx)
	movl	$512, %eax                      ## imm = 0x200
	addq	(%r12), %rax
	movq	%rax, 8(%rbx)
	movswl	-44(%rbp), %edi
	callq	_swapw
	movl	%eax, (%rbx)
	movl	$768, %eax                      ## imm = 0x300
	addq	(%r12), %rax
	movq	%rax, 8(%rbx)
	movswl	-42(%rbp), %edi
	callq	_swapw
	movl	%eax, (%rbx)
	movq	_CSR15@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	$0, (%rbx)
LBB0_4:
	movq	(%r15), %rax
	movq	%rax, 8(%rbx)
	movq	_INEA@GOTPCREL(%rip), %rax
	movq	_STRT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IDON@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	%r14, %rdi
	callq	_netif_wake_queue
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR0,8,3                       ## @CSR0
	.comm	_STOP,4,2                       ## @STOP
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_CSR15,8,3                      ## @CSR15
	.comm	_PROM,4,2                       ## @PROM
	.comm	_CSR8,8,3                       ## @CSR8
	.comm	_INEA,4,2                       ## @INEA
	.comm	_STRT,4,2                       ## @STRT
	.comm	_IDON,4,2                       ## @IDON
	.no_dead_strip	_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 set_multicast_list
_set_multicast_list:                    ; @set_multicast_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x20, [x0, #8]
	bl	_netif_running
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_netif_stop_queue
Lloh3:
	adrp	x21, _CSR0@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CSR0@GOTPAGEOFF]
	ldr	x8, [x21]
	str	x8, [x20, #8]
Lloh5:
	adrp	x8, _STOP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STOP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x19
	bl	_ariadne_init_ring
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _CSR15@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CSR15@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x20, #8]
Lloh14:
	adrp	x8, _PROM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PROM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_netdev_mc_count
	cmp	w0, #0
	csetm	w1, ne
	mov	x0, sp
	mov	w2, #8
	bl	_memset
Lloh17:
	adrp	x22, _CSR8@GOTPAGE
Lloh18:
	ldr	x22, [x22, _CSR8@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x8, [x20, #8]
	ldrsh	w0, [sp]
	bl	_swapw
	str	w0, [x20]
	ldr	x8, [x22]
	add	x8, x8, #256
	str	x8, [x20, #8]
	ldrsh	w0, [sp, #2]
	bl	_swapw
	str	w0, [x20]
	ldr	x8, [x22]
	add	x8, x8, #512
	str	x8, [x20, #8]
	ldrsh	w0, [sp, #4]
	bl	_swapw
	str	w0, [x20]
	ldr	x8, [x22]
	add	x8, x8, #768
	str	x8, [x20, #8]
	ldrsh	w0, [sp, #6]
	bl	_swapw
	str	w0, [x20]
Lloh19:
	adrp	x8, _CSR15@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CSR15@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	str	wzr, [x20]
LBB0_4:
	ldr	x8, [x21]
	str	x8, [x20, #8]
Lloh22:
	adrp	x8, _INEA@GOTPAGE
Lloh23:
	ldr	x8, [x8, _INEA@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _STRT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _STRT@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh28:
	adrp	x9, _IDON@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IDON@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
	mov	x0, x19
	bl	_netif_wake_queue
LBB0_5:
	ldr	x8, [sp, #8]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR0,8,3                       ; @CSR0
	.comm	_STOP,4,2                       ; @STOP
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_CSR15,8,3                      ; @CSR15
	.comm	_PROM,4,2                       ; @PROM
	.comm	_CSR8,8,3                       ; @CSR8
	.comm	_INEA,4,2                       ; @INEA
	.comm	_STRT,4,2                       ; @STRT
	.comm	_IDON,4,2                       ; @IDON
	.no_dead_strip	_set_multicast_list
.subsections_via_symbols
