	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1000_reset_mac_unlocked
_au1000_reset_mac_unlocked:             ## @au1000_reset_mac_unlocked
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_au1000_hard_stop
	movq	_MAC_EN_CLOCK_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r14), %esi
	callq	_writel
	xorl	%eax, %eax
	callq	_wmb
	movl	$2, %edi
	callq	_mdelay
	movl	32(%r14), %esi
	xorl	%edi, %edi
	callq	_writel
	xorl	%eax, %eax
	callq	_wmb
	movl	$2, %edi
	callq	_mdelay
	movq	$0, 24(%r14)
	movq	_NUM_RX_DMA@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	16(%r14), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	andl	$-16, (%rsi)
	incq	%rdx
	movslq	(%rax), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_2
LBB0_3:
	movq	_NUM_TX_DMA@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.4:
	movq	8(%r14), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	andl	$-16, (%rsi)
	incq	%rdx
	movslq	(%rax), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_5
LBB0_6:
	movq	$0, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_EN_CLOCK_ENABLE,4,2        ## @MAC_EN_CLOCK_ENABLE
	.comm	_NUM_RX_DMA,4,2                 ## @NUM_RX_DMA
	.comm	_NUM_TX_DMA,4,2                 ## @NUM_TX_DMA
	.no_dead_strip	_au1000_reset_mac_unlocked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1000_reset_mac_unlocked
_au1000_reset_mac_unlocked:             ; @au1000_reset_mac_unlocked
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x20
	bl	_au1000_hard_stop
Lloh0:
	adrp	x8, _MAC_EN_CLOCK_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_EN_CLOCK_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #32]
	bl	_writel
	bl	_wmb
	mov	w0, #2
	bl	_mdelay
	ldr	w1, [x19, #32]
	mov	w0, #0
	bl	_writel
	bl	_wmb
	mov	w0, #2
	bl	_mdelay
	str	xzr, [x19, #24]
Lloh3:
	adrp	x8, _NUM_RX_DMA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUM_RX_DMA@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	ldr	x10, [x19, #16]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	ldr	w12, [x11]
	and	w12, w12, #0xfffffff0
	str	w12, [x11]
	add	x9, x9, #1
	ldrsw	x11, [x8]
	cmp	x9, x11
	b.lt	LBB0_2
LBB0_3:
Lloh5:
	adrp	x8, _NUM_TX_DMA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NUM_TX_DMA@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x9, #0
	ldr	x10, [x19, #8]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	ldr	w12, [x11]
	and	w12, w12, #0xfffffff0
	str	w12, [x11]
	add	x9, x9, #1
	ldrsw	x11, [x8]
	cmp	x9, x11
	b.lt	LBB0_5
LBB0_6:
	str	xzr, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_EN_CLOCK_ENABLE,4,2        ; @MAC_EN_CLOCK_ENABLE
	.comm	_NUM_RX_DMA,4,2                 ; @NUM_RX_DMA
	.comm	_NUM_TX_DMA,4,2                 ; @NUM_TX_DMA
	.no_dead_strip	_au1000_reset_mac_unlocked
.subsections_via_symbols
