	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movslq	(%rbx), %r15
	movq	%rbx, %rdi
	callq	_netdev_mc_count
	movl	%eax, %r12d
	movq	_el3_debug@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_3
## %bb.1:
	cmpl	%r12d, _set_multicast_list.old(%rip)
	je	LBB0_3
## %bb.2:
	movl	%r12d, _set_multicast_list.old(%rip)
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %edx
	callq	_pr_debug
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	4(%rbx), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_SetRxFilter@GOTPCREL(%rip), %rax
	movq	_RxStation@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_RxMulticast@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_RxProm@GOTPCREL(%rip), %rax
	movq	_RxBroadcast@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_5:
	testl	%r12d, %r12d
	jne	LBB0_7
## %bb.6:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
LBB0_7:
	movq	_SetRxFilter@GOTPCREL(%rip), %rax
	movq	_RxStation@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_RxBroadcast@GOTPCREL(%rip), %rax
	movq	_RxMulticast@GOTPCREL(%rip), %rcx
LBB0_9:
	orl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_EL3_CMD@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r15, %rsi
	callq	_outw
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_8:
	movq	_RxStation@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RxBroadcast@GOTPCREL(%rip), %rax
	movq	_SetRxFilter@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_el3_debug,4,2                  ## @el3_debug
.zerofill __DATA,__bss,_set_multicast_list.old,4,2 ## @set_multicast_list.old
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Setting Rx mode to %d addresses.\n"

	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_SetRxFilter,4,2                ## @SetRxFilter
	.comm	_RxStation,4,2                  ## @RxStation
	.comm	_RxMulticast,4,2                ## @RxMulticast
	.comm	_RxBroadcast,4,2                ## @RxBroadcast
	.comm	_RxProm,4,2                     ## @RxProm
	.comm	_EL3_CMD,8,3                    ## @EL3_CMD
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.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:
	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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldrsw	x22, [x20]
	mov	x0, x20
	bl	_netdev_mc_count
	mov	x21, x0
Lloh0:
	adrp	x8, _el3_debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _el3_debug@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	adrp	x8, _set_multicast_list.old@PAGE
	ldr	w10, [x8, _set_multicast_list.old@PAGEOFF]
	cmp	w9, #2
	ccmp	w10, w0, #4, ge
	b.eq	LBB0_2
; %bb.1:
	str	w21, [x8, _set_multicast_list.old@PAGEOFF]
	ldr	w1, [x20, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_pr_debug
LBB0_2:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x20, #4]
Lloh5:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _SetRxFilter@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SetRxFilter@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _RxStation@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RxStation@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _RxMulticast@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RxMulticast@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _RxProm@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RxProm@GOTPAGEOFF]
Lloh19:
	adrp	x10, _RxBroadcast@GOTPAGE
Lloh20:
	ldr	x10, [x10, _RxBroadcast@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	cbnz	w21, LBB0_6
; %bb.5:
Lloh21:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_6:
Lloh24:
	adrp	x8, _SetRxFilter@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SetRxFilter@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _RxStation@GOTPAGE
Lloh28:
	ldr	x9, [x9, _RxStation@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh30:
	adrp	x9, _RxBroadcast@GOTPAGE
Lloh31:
	ldr	x9, [x9, _RxBroadcast@GOTPAGEOFF]
Lloh32:
	adrp	x10, _RxMulticast@GOTPAGE
Lloh33:
	ldr	x10, [x10, _RxMulticast@GOTPAGEOFF]
LBB0_7:
	ldr	w10, [x10]
	orr	w8, w8, w10
	ldr	w9, [x9]
	orr	w0, w8, w9
Lloh34:
	adrp	x8, _EL3_CMD@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EL3_CMD@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	add	x1, x8, x22
	bl	_outw
	mov	x0, x19
	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	_spin_unlock_irqrestore
LBB0_8:
Lloh37:
	adrp	x8, _RxStation@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RxStation@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	adrp	x9, _RxBroadcast@GOTPAGE
Lloh41:
	ldr	x9, [x9, _RxBroadcast@GOTPAGEOFF]
Lloh42:
	adrp	x10, _SetRxFilter@GOTPAGE
Lloh43:
	ldr	x10, [x10, _SetRxFilter@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_el3_debug,4,2                  ; @el3_debug
.zerofill __DATA,__bss,_set_multicast_list.old,4,2 ; @set_multicast_list.old
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Setting Rx mode to %d addresses.\n"

	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_SetRxFilter,4,2                ; @SetRxFilter
	.comm	_RxStation,4,2                  ; @RxStation
	.comm	_RxMulticast,4,2                ; @RxMulticast
	.comm	_RxBroadcast,4,2                ; @RxBroadcast
	.comm	_RxProm,4,2                     ; @RxProm
	.comm	_EL3_CMD,8,3                    ; @EL3_CMD
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.no_dead_strip	_set_multicast_list
.subsections_via_symbols
