	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ave_pfsel_set_macaddr
_ave_pfsel_set_macaddr:                 ## @ave_pfsel_set_macaddr
	.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
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_AVE_PF_SIZE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r15d, (%rax)
	setb	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpl	$7, %r12d
	setae	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ave_pfsel_stop
	movl	%r15d, %edi
	callq	_AVE_PKTF
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	callq	_AVE_PKTF
	leaq	4(%rax), %rcx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_ave_hw_write_macaddr
	movl	$31, %edi
	movl	%r12d, %esi
	callq	_GENMASK
	movl	%eax, %r12d
	movq	_AVE_PFMBYTE_MASK0@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	%rbx, %r13
	movq	(%rbx), %rbx
	movl	%r15d, %edi
	callq	_AVE_PFMBYTE
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	_AVE_PFMBYTE_MASK1@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%r13), %rbx
	movl	%r15d, %edi
	callq	_AVE_PFMBYTE
	leaq	(%rbx,%rax), %rsi
	addq	$4, %rsi
	movl	%r12d, %edi
	callq	_writel
	movq	_AVE_PFMBIT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%r13), %rbx
	movl	%r15d, %edi
	callq	_AVE_PFMBIT
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r13), %r12
	movl	%r15d, %edi
	callq	_AVE_PFSEL
	addq	%rax, %r12
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_writel
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ave_pfsel_start
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_AVE_PF_SIZE,4,2                ## @AVE_PF_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AVE_PFMBYTE_MASK0,4,2          ## @AVE_PFMBYTE_MASK0
	.comm	_AVE_PFMBYTE_MASK1,4,2          ## @AVE_PFMBYTE_MASK1
	.comm	_AVE_PFMBIT_MASK,4,2            ## @AVE_PFMBIT_MASK
	.no_dead_strip	_ave_pfsel_set_macaddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ave_pfsel_set_macaddr
_ave_pfsel_set_macaddr:                 ; @ave_pfsel_set_macaddr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _AVE_PF_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVE_PF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w0, lo
	bl	_WARN_ON
	cbnz	x0, LBB0_2
; %bb.1:
	cmp	w22, #6
	cset	w0, hi
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_ave_pfsel_stop
	mov	x0, x19
	bl	_AVE_PKTF
	mov	x24, x0
	mov	x0, x19
	bl	_AVE_PKTF
	add	x3, x0, #4
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	bl	_ave_hw_write_macaddr
	mov	w0, #31
	mov	x1, x22
	bl	_GENMASK
Lloh6:
	adrp	x8, _AVE_PFMBYTE_MASK0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVE_PFMBYTE_MASK0@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w22, w8, w0
	ldr	x23, [x21]
	mov	x0, x19
	bl	_AVE_PFMBYTE
	add	x1, x0, x23
	mov	x0, x22
	bl	_writel
Lloh9:
	adrp	x8, _AVE_PFMBYTE_MASK1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVE_PFMBYTE_MASK1@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	ldr	x23, [x21]
	mov	x0, x19
	bl	_AVE_PFMBYTE
	add	x8, x23, x0
	add	x1, x8, #4
	mov	x0, x22
	bl	_writel
Lloh12:
	adrp	x8, _AVE_PFMBIT_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVE_PFMBIT_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	ldr	x23, [x21]
	mov	x0, x19
	bl	_AVE_PFMBIT
	add	x1, x0, x23
	mov	x0, x22
	bl	_writel
	ldr	x21, [x21]
	mov	x0, x19
	bl	_AVE_PFSEL
	add	x1, x0, x21
	mov	w0, #0
	bl	_writel
	mov	x0, x20
	mov	x1, x19
	bl	_ave_pfsel_start
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AVE_PF_SIZE,4,2                ; @AVE_PF_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AVE_PFMBYTE_MASK0,4,2          ; @AVE_PFMBYTE_MASK0
	.comm	_AVE_PFMBYTE_MASK1,4,2          ; @AVE_PFMBYTE_MASK1
	.comm	_AVE_PFMBIT_MASK,4,2            ; @AVE_PFMBIT_MASK
	.no_dead_strip	_ave_pfsel_set_macaddr
.subsections_via_symbols
