	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eth_port_reset
_eth_port_reset:                        ## @eth_port_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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_wrl
	movq	_INT_CAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_wrl
	movq	_SDMA_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rdl
	movq	%rbx, %rdi
	callq	_abort_dma
	movq	_PORT_CONFIG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rdl
	movq	_PCR_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_wrl
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_stop                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MASK,4,2                   ## @INT_MASK
	.comm	_INT_CAUSE,4,2                  ## @INT_CAUSE
	.comm	_SDMA_CMD,4,2                   ## @SDMA_CMD
	.comm	_SDMA_CMD_ERD,4,2               ## @SDMA_CMD_ERD
	.comm	_PORT_CONFIG,4,2                ## @PORT_CONFIG
	.comm	_PCR_EN,4,2                     ## @PCR_EN
	.no_dead_strip	_eth_port_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eth_port_reset
_eth_port_reset:                        ; @eth_port_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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _INT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_wrl
Lloh3:
	adrp	x8, _INT_CAUSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_CAUSE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_wrl
Lloh6:
	adrp	x8, _SDMA_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDMA_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rdl
	mov	x0, x20
	bl	_abort_dma
Lloh9:
	adrp	x21, _PORT_CONFIG@GOTPAGE
Lloh10:
	ldr	x21, [x21, _PORT_CONFIG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_rdl
Lloh11:
	adrp	x8, _PCR_EN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCR_EN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x20
	bl	_wrl
	ldr	w0, [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
	b	_phy_stop
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MASK,4,2                   ; @INT_MASK
	.comm	_INT_CAUSE,4,2                  ; @INT_CAUSE
	.comm	_SDMA_CMD,4,2                   ; @SDMA_CMD
	.comm	_SDMA_CMD_ERD,4,2               ; @SDMA_CMD_ERD
	.comm	_PORT_CONFIG,4,2                ; @PORT_CONFIG
	.comm	_PCR_EN,4,2                     ; @PCR_EN
	.no_dead_strip	_eth_port_reset
.subsections_via_symbols
