	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function am79c961_setmulticastlist
_am79c961_setmulticastlist:             ## @am79c961_setmulticastlist
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_MODE_PORT_10BT@GOTPCREL(%rip), %rax
	movzwl	(%rax), %edx
	movl	(%r12), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_MODE_PROMISC@GOTPCREL(%rip), %rax
	orw	(%rax), %dx
	movw	%dx, -58(%rbp)                  ## 2-byte Spill
	jmp	LBB0_7
LBB0_2:
	movw	%dx, -58(%rbp)                  ## 2-byte Spill
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	leaq	-56(%rbp), %rdi
	movl	$255, %esi
	movl	$8, %edx
	callq	_memset
	jmp	LBB0_7
LBB0_4:
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	8(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_am79c961_mc_hash
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	4(%r12), %edi
	movq	_CSR0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_read_rreg
	movq	_CSR0_STOP@GOTPCREL(%rip), %rcx
	andw	(%rcx), %ax
	movw	%ax, -60(%rbp)                  ## 2-byte Spill
	je	LBB0_8
LBB0_11:
	leaq	-56(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_14
## %bb.12:
	xorl	%ebx, %ebx
	movq	_LADRL@GOTPCREL(%rip), %r15
	leaq	-56(%rbp), %r13
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %edi
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	movzwl	-56(%rbp,%rbx,2), %edx
	callq	_write_rreg
	incq	%rbx
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_13
LBB0_14:
	movl	4(%r12), %edi
	movq	_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzwl	-58(%rbp), %edx                 ## 2-byte Folded Reload
	callq	_write_rreg
	cmpw	$0, -60(%rbp)                   ## 2-byte Folded Reload
	jne	LBB0_16
## %bb.15:
	movl	4(%r12), %edi
	movq	_CTRL1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%edx, %edx
	callq	_write_rreg
LBB0_16:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	4(%r12), %edi
	movq	_CTRL1@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	_CTRL1_SPND@GOTPCREL(%rip), %r13
	movzwl	(%r13), %edx
	callq	_write_rreg
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %edi
	movq	(%rbx), %rsi
	callq	_read_rreg
	testw	%ax, (%r13)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	callq	_nop
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	jmp	LBB0_10
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_PORT_10BT,2,1             ## @MODE_PORT_10BT
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_MODE_PROMISC,2,1               ## @MODE_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_CSR0,8,3                       ## @CSR0
	.comm	_CSR0_STOP,2,1                  ## @CSR0_STOP
	.comm	_CTRL1,8,3                      ## @CTRL1
	.comm	_CTRL1_SPND,2,1                 ## @CTRL1_SPND
	.comm	_LADRL,8,3                      ## @LADRL
	.comm	_MODE,8,3                       ## @MODE
	.no_dead_strip	_am79c961_setmulticastlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function am79c961_setmulticastlist
_am79c961_setmulticastlist:             ; @am79c961_setmulticastlist
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_netdev_priv
	mov	x19, x0
Lloh3:
	adrp	x8, _MODE_PORT_10BT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MODE_PORT_10BT@GOTPAGEOFF]
	ldrh	w22, [x8]
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _MODE_PROMISC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MODE_PROMISC@GOTPAGEOFF]
	ldrh	w8, [x8]
	orr	w22, w8, w22
	b	LBB0_6
LBB0_2:
Lloh10:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	mov	x0, sp
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	w1, #255
	mov	w2, #8
	bl	_memset
	b	LBB0_6
LBB0_4:
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x21, [x20, #8]
	cbz	x21, LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	mov	x0, x21
	bl	_am79c961_mc_hash
	ldr	x21, [x21]
	cbnz	x21, LBB0_5
LBB0_6:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w0, [x20, #4]
Lloh13:
	adrp	x8, _CSR0@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CSR0@GOTPAGEOFF]
Lloh15:
	ldr	x1, [x8]
	bl	_read_rreg
Lloh16:
	adrp	x8, _CSR0_STOP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CSR0_STOP@GOTPAGEOFF]
	ldrh	w8, [x8]
	ands	w21, w8, w0
	b.eq	LBB0_14
LBB0_7:
	mov	x23, sp
	mov	x0, sp
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x24, #0
Lloh18:
	adrp	x25, _LADRL@GOTPAGE
Lloh19:
	ldr	x25, [x25, _LADRL@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	ldr	x8, [x25]
	add	x1, x24, x8
	ldrh	w2, [x23, x24, lsl #1]
	bl	_write_rreg
	add	x24, x24, #1
	mov	x0, sp
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.lt	LBB0_9
LBB0_10:
	ldr	w0, [x20, #4]
Lloh20:
	adrp	x8, _MODE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MODE@GOTPAGEOFF]
Lloh22:
	ldr	x1, [x8]
	and	w2, w22, #0xffff
	bl	_write_rreg
	cbnz	w21, LBB0_12
; %bb.11:
	ldr	w0, [x20, #4]
Lloh23:
	adrp	x8, _CTRL1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CTRL1@GOTPAGEOFF]
Lloh25:
	ldr	x1, [x8]
	mov	w2, #0
	bl	_write_rreg
LBB0_12:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	x8, [sp, #8]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
	ldr	w0, [x20, #4]
Lloh29:
	adrp	x23, _CTRL1@GOTPAGE
Lloh30:
	ldr	x23, [x23, _CTRL1@GOTPAGEOFF]
	ldr	x1, [x23]
Lloh31:
	adrp	x24, _CTRL1_SPND@GOTPAGE
Lloh32:
	ldr	x24, [x24, _CTRL1_SPND@GOTPAGEOFF]
	ldrh	w2, [x24]
	bl	_write_rreg
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	ldr	x1, [x23]
	bl	_read_rreg
	ldrh	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	bl	_nop
	mov	x0, x19
	bl	_spin_lock_irqsave
	b	LBB0_15
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_PORT_10BT,2,1             ; @MODE_PORT_10BT
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_MODE_PROMISC,2,1               ; @MODE_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_CSR0,8,3                       ; @CSR0
	.comm	_CSR0_STOP,2,1                  ; @CSR0_STOP
	.comm	_CTRL1,8,3                      ; @CTRL1
	.comm	_CTRL1_SPND,2,1                 ; @CTRL1_SPND
	.comm	_LADRL,8,3                      ; @LADRL
	.comm	_MODE,8,3                       ; @MODE
	.no_dead_strip	_am79c961_setmulticastlist
.subsections_via_symbols
