	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1000_enable_mac
_au1000_enable_mac:                     ## @au1000_enable_mac
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%r14)
	jne	LBB0_3
LBB0_2:
	movq	_MAC_EN_CLOCK_ENABLE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	8(%r14), %esi
	callq	_writel
	xorl	%eax, %eax
	callq	_wmb
	movl	$2, %edi
	callq	_mdelay
	movq	_MAC_EN_RESET0@GOTPCREL(%rip), %rax
	movq	_MAC_EN_RESET1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_MAC_EN_RESET2@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	(%r15), %edi
	movl	8(%r14), %esi
	callq	_writel
	xorl	%eax, %eax
	callq	_wmb
	movl	$2, %edi
	callq	_mdelay
	movl	$1, (%r14)
LBB0_3:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_EN_CLOCK_ENABLE,4,2        ## @MAC_EN_CLOCK_ENABLE
	.comm	_MAC_EN_RESET0,4,2              ## @MAC_EN_RESET0
	.comm	_MAC_EN_RESET1,4,2              ## @MAC_EN_RESET1
	.comm	_MAC_EN_RESET2,4,2              ## @MAC_EN_RESET2
	.no_dead_strip	_au1000_enable_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1000_enable_mac
_au1000_enable_mac:                     ; @au1000_enable_mac
	.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	x21, x1
	bl	_netdev_priv
	mov	x19, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	cbnz	w21, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cbnz	w8, LBB0_3
LBB0_2:
Lloh0:
	adrp	x21, _MAC_EN_CLOCK_ENABLE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAC_EN_CLOCK_ENABLE@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x19, #8]
	bl	_writel
	bl	_wmb
	mov	w0, #2
	bl	_mdelay
Lloh2:
	adrp	x8, _MAC_EN_RESET0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAC_EN_RESET0@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MAC_EN_RESET1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAC_EN_RESET1@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _MAC_EN_RESET2@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MAC_EN_RESET2@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh10:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	w9, [x21]
	orr	w0, w8, w9
	ldr	w1, [x19, #8]
	bl	_writel
	bl	_wmb
	mov	w0, #2
	bl	_mdelay
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_EN_CLOCK_ENABLE,4,2        ; @MAC_EN_CLOCK_ENABLE
	.comm	_MAC_EN_RESET0,4,2              ; @MAC_EN_RESET0
	.comm	_MAC_EN_RESET1,4,2              ; @MAC_EN_RESET1
	.comm	_MAC_EN_RESET2,4,2              ; @MAC_EN_RESET2
	.no_dead_strip	_au1000_enable_mac
.subsections_via_symbols
