	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emac_mac_down                  ## -- Begin function emac_mac_down
	.p2align	4, 0x90
_emac_mac_down:                         ## @emac_mac_down
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_netif_stop_queue
	leaq	24(%rbx), %rdi
	callq	_napi_disable
	movl	8(%rbx), %edi
	callq	_phy_stop
	movq	_DIS_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EMAC_INT_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
	movq	_EMAC_INT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movl	12(%rbx), %edi
	callq	_synchronize_irq
	movl	8(%rbx), %edi
	callq	_phy_disconnect
	movq	%rbx, %rdi
	callq	_emac_mac_reset
	movq	%rbx, %rdi
	callq	_emac_tx_q_descs_free
	movq	(%rbx), %rdi
	callq	_netdev_reset_queue
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_emac_rx_q_free_descs           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DIS_INT,4,2                    ## @DIS_INT
	.comm	_EMAC_INT_STATUS,8,3            ## @EMAC_INT_STATUS
	.comm	_EMAC_INT_MASK,8,3              ## @EMAC_INT_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emac_mac_down                  ; -- Begin function emac_mac_down
	.p2align	2
_emac_mac_down:                         ; @emac_mac_down
	.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	x19, x0
	ldr	x0, [x0]
	bl	_netif_stop_queue
	add	x0, x19, #24
	bl	_napi_disable
	ldr	w0, [x19, #8]
	bl	_phy_stop
Lloh0:
	adrp	x8, _DIS_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIS_INT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _EMAC_INT_STATUS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EMAC_INT_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _EMAC_INT_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EMAC_INT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	w0, [x19, #12]
	bl	_synchronize_irq
	ldr	w0, [x19, #8]
	bl	_phy_disconnect
	mov	x0, x19
	bl	_emac_mac_reset
	mov	x0, x19
	bl	_emac_tx_q_descs_free
	ldr	x0, [x19]
	bl	_netdev_reset_queue
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_emac_rx_q_free_descs
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DIS_INT,4,2                    ; @DIS_INT
	.comm	_EMAC_INT_STATUS,8,3            ; @EMAC_INT_STATUS
	.comm	_EMAC_INT_MASK,8,3              ; @EMAC_INT_MASK
.subsections_via_symbols
