	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moxart_mac_reset
_moxart_mac_reset:                      ## @moxart_mac_reset
	.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
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_SW_RST@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_REG_MAC_CTRL@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	8(%rax), %rsi
	callq	_writel
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	testl	%eax, (%r14)
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_mdelay
	jmp	LBB0_2
LBB0_3:
	movq	_REG_INTERRUPT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_RX_BROADPKT@GOTPCREL(%rip), %rax
	movq	_FULLDUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CRC_APD@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_RX_FTL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SW_RST,4,2                     ## @SW_RST
	.comm	_REG_MAC_CTRL,8,3               ## @REG_MAC_CTRL
	.comm	_REG_INTERRUPT_MASK,8,3         ## @REG_INTERRUPT_MASK
	.comm	_RX_BROADPKT,4,2                ## @RX_BROADPKT
	.comm	_FULLDUP,4,2                    ## @FULLDUP
	.comm	_CRC_APD,4,2                    ## @CRC_APD
	.comm	_RX_FTL,4,2                     ## @RX_FTL
	.no_dead_strip	_moxart_mac_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moxart_mac_reset
_moxart_mac_reset:                      ; @moxart_mac_reset
	.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
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x20, _SW_RST@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SW_RST@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x21, _REG_MAC_CTRL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _REG_MAC_CTRL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_mdelay
	b	LBB0_1
LBB0_3:
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x9, _REG_INTERRUPT_MASK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _REG_INTERRUPT_MASK@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh7:
	adrp	x8, _RX_BROADPKT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RX_BROADPKT@GOTPAGEOFF]
Lloh9:
	adrp	x9, _FULLDUP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FULLDUP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _CRC_APD@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CRC_APD@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh16:
	adrp	x9, _RX_FTL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _RX_FTL@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SW_RST,4,2                     ; @SW_RST
	.comm	_REG_MAC_CTRL,8,3               ; @REG_MAC_CTRL
	.comm	_REG_INTERRUPT_MASK,8,3         ; @REG_INTERRUPT_MASK
	.comm	_RX_BROADPKT,4,2                ; @RX_BROADPKT
	.comm	_FULLDUP,4,2                    ; @FULLDUP
	.comm	_CRC_APD,4,2                    ; @CRC_APD
	.comm	_RX_FTL,4,2                     ; @RX_FTL
	.no_dead_strip	_moxart_mac_reset
.subsections_via_symbols
