	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temac_set_multicast_list
_temac_set_multicast_list:              ## @temac_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	%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	%rdi, %r13
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mutex_lock
	movl	(%r13), %eax
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	(%rcx), %ecx
	orl	%edx, %ecx
	testl	%eax, %ecx
	jne	LBB0_2
## %bb.1:
	movl	4(%r13), %esi
	movq	_MULTICAST_CAM_TABLE_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %esi
	jle	LBB0_3
LBB0_2:
	orl	%eax, %edx
	movl	%edx, (%r13)
	movq	_XTE_AFM_EPPRM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %r12
	movq	_XTE_AFM_OFFSET@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_temac_indirect_out32
	addq	$8, %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_dev_info
LBB0_13:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_3:
	testl	%esi, %esi
	je	LBB0_11
## %bb.4:
	movq	16(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.5:
	testl	%esi, %esi
	jle	LBB0_13
## %bb.6:
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.7:
	xorl	%r12d, %r12d
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	12(%rax), %ecx
	shll	$24, %ecx
	movl	4(%rax), %edx
	movl	8(%rax), %esi
	shll	$16, %esi
	orl	%ecx, %esi
	shll	$8, %edx
	orl	%esi, %edx
	orl	(%rax), %edx
	movq	_XTE_MAW0_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_temac_indirect_out32
	movq	(%rbx), %rax
	movl	20(%rax), %ecx
	shll	$8, %ecx
	movl	16(%rax), %edx
	orl	%r12d, %edx
	orl	%ecx, %edx
	movq	_XTE_MAW1_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_temac_indirect_out32
	movq	_MULTICAST_CAM_TABLE_NUM@GOTPCREL(%rip), %rcx
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	4(%r13), %r15d
	jge	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	addl	$65536, %r12d                   ## imm = 0x10000
	leal	1(%r15), %eax
	cmpl	(%rcx), %r15d
	movl	%eax, %r15d
	jl	LBB0_8
	jmp	LBB0_13
LBB0_11:
	movq	_XTE_AFM_OFFSET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_temac_indirect_in32
	movl	(%rbx), %esi
	movq	_XTE_AFM_EPPRM_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r14, %rdi
	callq	_temac_indirect_out32
	movq	_XTE_MAW0_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_temac_indirect_out32
	leaq	L_.str.1(%rip), %r12
	movq	_XTE_MAW1_OFFSET@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_MULTICAST_CAM_TABLE_NUM,4,2    ## @MULTICAST_CAM_TABLE_NUM
	.comm	_XTE_AFM_OFFSET,4,2             ## @XTE_AFM_OFFSET
	.comm	_XTE_AFM_EPPRM_MASK,4,2         ## @XTE_AFM_EPPRM_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Promiscuous mode enabled.\n"

	.comm	_XTE_MAW0_OFFSET,4,2            ## @XTE_MAW0_OFFSET
	.comm	_XTE_MAW1_OFFSET,4,2            ## @XTE_MAW1_OFFSET
L_.str.1:                               ## @.str.1
	.asciz	"Promiscuous mode disabled.\n"

	.no_dead_strip	_temac_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 temac_set_multicast_list
_temac_set_multicast_list:              ; @temac_set_multicast_list
	.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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_mutex_lock
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _IFF_PROMISC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IFF_PROMISC@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x10]
	orr	w9, w11, w9
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w10, [x20, #4]
Lloh6:
	adrp	x21, _MULTICAST_CAM_TABLE_NUM@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MULTICAST_CAM_TABLE_NUM@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w10, w9
	b.le	LBB0_5
LBB0_2:
	orr	w8, w11, w8
Lloh8:
	adrp	x9, _XTE_AFM_EPPRM_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _XTE_AFM_EPPRM_MASK@GOTPAGEOFF]
	str	w8, [x20]
Lloh10:
	ldr	w2, [x9]
Lloh11:
	adrp	x21, l_.str@PAGE
Lloh12:
	add	x21, x21, l_.str@PAGEOFF
Lloh13:
	adrp	x8, _XTE_AFM_OFFSET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _XTE_AFM_OFFSET@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_temac_indirect_out32
	add	x0, x20, #8
	mov	x1, x21
	bl	_dev_info
LBB0_4:
	mov	x0, x19
	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	_mutex_unlock
LBB0_5:
	cbz	w10, LBB0_13
; %bb.6:
	ldr	x22, [x20, #16]
	cbz	x22, LBB0_4
; %bb.7:
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.8:
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.9:
	mov	w23, #0
	mov	w24, #1
Lloh15:
	adrp	x25, _XTE_MAW0_OFFSET@GOTPAGE
Lloh16:
	ldr	x25, [x25, _XTE_MAW0_OFFSET@GOTPAGEOFF]
Lloh17:
	adrp	x26, _XTE_MAW1_OFFSET@GOTPAGE
Lloh18:
	ldr	x26, [x26, _XTE_MAW1_OFFSET@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldp	w10, w9, [x8, #8]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	ldp	w8, w10, [x8]
	orr	w9, w9, w10, lsl #8
	orr	w2, w9, w8
	ldr	w1, [x25]
	mov	x0, x19
	bl	_temac_indirect_out32
	ldr	x8, [x22]
	ldp	w8, w9, [x8, #16]
	orr	w8, w8, w23
	orr	w2, w8, w9, lsl #8
	ldr	w1, [x26]
	mov	x0, x19
	bl	_temac_indirect_out32
	ldr	x22, [x22, #8]
	cbz	x22, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x20, #4]
	cmp	w24, w8
	b.ge	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x21]
	add	w23, w23, #16, lsl #12          ; =65536
	add	w9, w24, #1
	cmp	w24, w8
	mov	x24, x9
	b.lt	LBB0_10
	b	LBB0_4
LBB0_13:
Lloh19:
	adrp	x21, _XTE_AFM_OFFSET@GOTPAGE
Lloh20:
	ldr	x21, [x21, _XTE_AFM_OFFSET@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_temac_indirect_in32
	ldr	w1, [x21]
Lloh21:
	adrp	x8, _XTE_AFM_EPPRM_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _XTE_AFM_EPPRM_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x19
	bl	_temac_indirect_out32
Lloh24:
	adrp	x8, _XTE_MAW0_OFFSET@GOTPAGE
Lloh25:
	ldr	x8, [x8, _XTE_MAW0_OFFSET@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_temac_indirect_out32
	mov	w2, #0
Lloh27:
	adrp	x21, l_.str.1@PAGE
Lloh28:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh29:
	adrp	x8, _XTE_MAW1_OFFSET@GOTPAGE
Lloh30:
	ldr	x8, [x8, _XTE_MAW1_OFFSET@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_MULTICAST_CAM_TABLE_NUM,4,2    ; @MULTICAST_CAM_TABLE_NUM
	.comm	_XTE_AFM_OFFSET,4,2             ; @XTE_AFM_OFFSET
	.comm	_XTE_AFM_EPPRM_MASK,4,2         ; @XTE_AFM_EPPRM_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Promiscuous mode enabled.\n"

	.comm	_XTE_MAW0_OFFSET,4,2            ; @XTE_MAW0_OFFSET
	.comm	_XTE_MAW1_OFFSET,4,2            ; @XTE_MAW1_OFFSET
l_.str.1:                               ; @.str.1
	.asciz	"Promiscuous mode disabled.\n"

	.no_dead_strip	_temac_set_multicast_list
.subsections_via_symbols
