	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_netdev_priv
	movq	%rax, %r14
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_am79c961_get_rx_mode
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%r13), %edi
	movq	_CSR0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_read_rreg
	movq	_CSR0_STOP@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	je	LBB0_1
LBB0_4:
	leaq	-64(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	movq	_LADRL@GOTPCREL(%rip), %r12
	leaq	-64(%rbp), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movl	-64(%rbp,%rbx,4), %edx
	callq	_write_rreg
	incq	%rbx
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movl	(%r13), %edi
	movq	_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_write_rreg
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_9
## %bb.8:
	movl	(%r13), %edi
	movq	_CTRL1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%edx, %edx
	callq	_write_rreg
LBB0_9:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%r13), %edi
	movq	_CTRL1@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	_CTRL1_SPND@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_write_rreg
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	(%rbx), %rsi
	callq	_read_rreg
	testl	%eax, (%r15)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	callq	_nop
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	jmp	LBB0_3
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR0,8,3                       ## @CSR0
	.comm	_CSR0_STOP,4,2                  ## @CSR0_STOP
	.comm	_CTRL1,8,3                      ## @CTRL1
	.comm	_CTRL1_SPND,4,2                 ## @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, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, #24]
	bl	_netdev_priv
	mov	x19, x0
	add	x1, sp, #8
	mov	x0, x20
	bl	_am79c961_get_rx_mode
	mov	x21, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _CSR0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSR0@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	bl	_read_rreg
Lloh6:
	adrp	x8, _CSR0_STOP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CSR0_STOP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ands	w22, w8, w0
	b.eq	LBB0_8
LBB0_1:
	add	x23, sp, #8
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x24, #0
Lloh9:
	adrp	x25, _LADRL@GOTPAGE
Lloh10:
	ldr	x25, [x25, _LADRL@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	x8, [x25]
	add	x1, x24, x8
	ldr	w2, [x23, x24, lsl #2]
	bl	_write_rreg
	add	x24, x24, #1
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.lt	LBB0_3
LBB0_4:
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _MODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MODE@GOTPAGEOFF]
Lloh13:
	ldr	x1, [x8]
	mov	x2, x21
	bl	_write_rreg
	cbnz	w22, LBB0_6
; %bb.5:
	ldr	w0, [x20]
Lloh14:
	adrp	x8, _CTRL1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CTRL1@GOTPAGEOFF]
Lloh16:
	ldr	x1, [x8]
	mov	w2, #0
	bl	_write_rreg
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	ldr	w0, [x20]
Lloh20:
	adrp	x23, _CTRL1@GOTPAGE
Lloh21:
	ldr	x23, [x23, _CTRL1@GOTPAGEOFF]
	ldr	x1, [x23]
Lloh22:
	adrp	x24, _CTRL1_SPND@GOTPAGE
Lloh23:
	ldr	x24, [x24, _CTRL1_SPND@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_write_rreg
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	x1, [x23]
	bl	_read_rreg
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	bl	_nop
	mov	x0, x19
	bl	_spin_lock_irqsave
	b	LBB0_9
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR0,8,3                       ; @CSR0
	.comm	_CSR0_STOP,4,2                  ; @CSR0_STOP
	.comm	_CTRL1,8,3                      ; @CTRL1
	.comm	_CTRL1_SPND,4,2                 ; @CTRL1_SPND
	.comm	_LADRL,8,3                      ; @LADRL
	.comm	_MODE,8,3                       ; @MODE
	.no_dead_strip	_am79c961_setmulticastlist
.subsections_via_symbols
