	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_enet_stop
_bcm_enet_stop:                         ## @bcm_enet_stop
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	104(%rax), %r15
	movq	%r14, %rdi
	callq	_netif_stop_queue
	leaq	100(%r12), %rdi
	callq	_napi_disable
	cmpq	$0, 8(%r12)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	callq	_phy_stop
LBB0_2:
	leaq	96(%r12), %rdi
	callq	_del_timer_sync
	movq	_ENET_IRMASK_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_enet_writel
	movq	_ENETDMAC_IRMASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	84(%r12), %ecx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_enet_dmac_writel
	movl	(%rbx), %edx
	movl	88(%r12), %ecx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_enet_dmac_writel
	movq	%r12, %rdi
	addq	$92, %rdi
	callq	_cancel_work_sync
	movl	88(%r12), %esi
	movq	%r12, %rdi
	callq	_bcm_enet_disable_dma
	movl	84(%r12), %esi
	movq	%r12, %rdi
	callq	_bcm_enet_disable_dma
	movq	%r12, %rdi
	callq	_bcm_enet_disable_mac
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_bcm_enet_tx_reclaim
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	72(%r12), %rcx
	cmpl	$0, (%rcx,%rbx,4)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	48(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movl	80(%r12), %edx
	movl	(%r13), %ecx
	movq	%r15, %rdi
	callq	_dma_unmap_single
	movq	72(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_kfree_skb
	movl	(%r12), %eax
	jmp	LBB0_6
LBB0_7:
	movq	72(%r12), %rdi
	callq	_kfree
	movq	64(%r12), %rdi
	callq	_kfree
	movl	56(%r12), %esi
	movq	48(%r12), %rdx
	movl	44(%r12), %ecx
	movq	%r15, %rdi
	callq	_dma_free_coherent
	movl	40(%r12), %esi
	movq	32(%r12), %rdx
	movl	24(%r12), %ecx
	movq	%r15, %rdi
	callq	_dma_free_coherent
	movl	20(%r12), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movl	16(%r12), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movl	4(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
	cmpq	$0, 8(%r12)
	je	LBB0_9
## %bb.8:
	movl	(%r14), %edi
	callq	_phy_disconnect
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENET_IRMASK_REG,4,2            ## @ENET_IRMASK_REG
	.comm	_ENETDMAC_IRMASK,4,2            ## @ENETDMAC_IRMASK
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_bcm_enet_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_enet_stop
_bcm_enet_stop:                         ; @bcm_enet_stop
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x21, [x0, #104]
	mov	x0, x19
	bl	_netif_stop_queue
	add	x0, x20, #100
	bl	_napi_disable
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_phy_stop
LBB0_2:
	add	x0, x20, #96
	bl	_del_timer_sync
Lloh0:
	adrp	x8, _ENET_IRMASK_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENET_IRMASK_REG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_enet_writel
Lloh3:
	adrp	x22, _ENETDMAC_IRMASK@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ENETDMAC_IRMASK@GOTPAGEOFF]
	ldr	w2, [x22]
	ldr	w3, [x20, #84]
	mov	x0, x20
	mov	w1, #0
	bl	_enet_dmac_writel
	ldr	w2, [x22]
	ldr	w3, [x20, #88]
	mov	x0, x20
	mov	w1, #0
	bl	_enet_dmac_writel
	add	x0, x20, #92
	bl	_cancel_work_sync
	ldr	w1, [x20, #88]
	mov	x0, x20
	bl	_bcm_enet_disable_dma
	ldr	w1, [x20, #84]
	mov	x0, x20
	bl	_bcm_enet_disable_dma
	mov	x0, x20
	bl	_bcm_enet_disable_mac
	mov	x0, x19
	mov	w1, #1
	bl	_bcm_enet_tx_reclaim
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x22, #0
Lloh5:
	adrp	x23, _DMA_FROM_DEVICE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DMA_FROM_DEVICE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #72]
	ldr	w9, [x9, x22, lsl #2]
	cbz	w9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #48]
	lsl	x24, x22, #2
	ldr	w1, [x8, x24]
	ldr	w2, [x20, #80]
	ldr	w3, [x23]
	mov	x0, x21
	bl	_dma_unmap_single
	ldr	x8, [x20, #72]
	ldr	w0, [x8, x24]
	bl	_kfree_skb
	ldr	w8, [x20]
	b	LBB0_4
LBB0_7:
	ldr	x0, [x20, #72]
	bl	_kfree
	ldr	x0, [x20, #64]
	bl	_kfree
	ldr	w1, [x20, #56]
	ldr	x2, [x20, #48]
	ldr	w3, [x20, #44]
	mov	x0, x21
	bl	_dma_free_coherent
	ldr	w1, [x20, #40]
	ldr	x2, [x20, #32]
	ldr	w3, [x20, #24]
	mov	x0, x21
	bl	_dma_free_coherent
	ldr	w0, [x20, #20]
	mov	x1, x19
	bl	_free_irq
	ldr	w0, [x20, #16]
	mov	x1, x19
	bl	_free_irq
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_free_irq
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w0, [x19]
	bl	_phy_disconnect
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENET_IRMASK_REG,4,2            ; @ENET_IRMASK_REG
	.comm	_ENETDMAC_IRMASK,4,2            ; @ENETDMAC_IRMASK
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_bcm_enet_stop
.subsections_via_symbols
