	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_meth_reset                     ## -- Begin function meth_reset
	.p2align	4, 0x90
_meth_reset:                            ## @meth_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
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_SGI_MAC_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_mace@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movl	$1, %edi
	callq	_udelay
	movq	(%r15), %rax
	movl	$0, (%rax)
	movl	$25, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_load_eaddr
	movq	%r14, %rdi
	callq	_mdio_probe
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_METH_ACCEPT_MCAST@GOTPCREL(%rip), %rcx
	movq	_METH_DEFAULT_IPG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r14)
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	_METH_PROMISC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
LBB0_4:
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_meth_check_link
	movq	_METH_RX_OFFSET_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$4, %eax
	shll	%cl, %eax
	movq	_RX_RING_ENTRIES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_METH_RX_DEPTH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%eax, %edx
	movl	%edx, 4(%r14)
	movq	(%r15), %rax
	movl	%edx, 4(%rax)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DPRINTK
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SGI_MAC_RESET,4,2              ## @SGI_MAC_RESET
	.comm	_mace,8,3                       ## @mace
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to find PHY\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_METH_ACCEPT_MCAST,4,2          ## @METH_ACCEPT_MCAST
	.comm	_METH_DEFAULT_IPG,4,2           ## @METH_DEFAULT_IPG
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_METH_PROMISC,4,2               ## @METH_PROMISC
	.comm	_METH_RX_OFFSET_SHIFT,4,2       ## @METH_RX_OFFSET_SHIFT
	.comm	_RX_RING_ENTRIES,4,2            ## @RX_RING_ENTRIES
	.comm	_METH_RX_DEPTH_SHIFT,4,2        ## @METH_RX_DEPTH_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_meth_reset                     ; -- Begin function meth_reset
	.p2align	2
_meth_reset:                            ; @meth_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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _SGI_MAC_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SGI_MAC_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, _mace@GOTPAGE
Lloh4:
	ldr	x21, [x21, _mace@GOTPAGEOFF]
	ldr	x9, [x21]
	str	w8, [x9]
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x21]
	str	wzr, [x8]
	mov	w0, #25
	bl	_udelay
	mov	x0, x20
	bl	_load_eaddr
	mov	x0, x19
	bl	_mdio_probe
	tbnz	x0, #63, LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _METH_ACCEPT_MCAST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _METH_ACCEPT_MCAST@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _METH_DEFAULT_IPG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _METH_DEFAULT_IPG@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w9, [x20]
Lloh11:
	adrp	x10, _IFF_PROMISC@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IFF_PROMISC@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.2:
Lloh14:
	adrp	x9, _METH_PROMISC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _METH_PROMISC@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_3:
	ldr	x9, [x21]
	str	w8, [x9]
	mov	x0, x20
	bl	_meth_check_link
	mov	w0, #0
Lloh17:
	adrp	x8, _METH_RX_OFFSET_SHIFT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _METH_RX_OFFSET_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	mov	w9, #4
	lsl	w8, w9, w8
Lloh20:
	adrp	x9, _RX_RING_ENTRIES@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RX_RING_ENTRIES@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _METH_RX_DEPTH_SHIFT@GOTPAGE
Lloh24:
	ldr	x10, [x10, _METH_RX_DEPTH_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [x19, #4]
	ldr	x9, [x21]
	str	w8, [x9, #4]
	b	LBB0_5
LBB0_4:
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTK
Lloh28:
	adrp	x8, _ENODEV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_SGI_MAC_RESET,4,2              ; @SGI_MAC_RESET
	.comm	_mace,8,3                       ; @mace
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to find PHY\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_METH_ACCEPT_MCAST,4,2          ; @METH_ACCEPT_MCAST
	.comm	_METH_DEFAULT_IPG,4,2           ; @METH_DEFAULT_IPG
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_METH_PROMISC,4,2               ; @METH_PROMISC
	.comm	_METH_RX_OFFSET_SHIFT,4,2       ; @METH_RX_OFFSET_SHIFT
	.comm	_RX_RING_ENTRIES,4,2            ; @RX_RING_ENTRIES
	.comm	_METH_RX_DEPTH_SHIFT,4,2        ; @METH_RX_DEPTH_SHIFT
.subsections_via_symbols
