	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpmac_stop
_cpmac_stop:                            ## @cpmac_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, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_netif_tx_stop_all_queues
	leaq	36(%r12), %rdi
	callq	_cancel_work_sync
	leaq	32(%r12), %rdi
	callq	_napi_disable
	movl	8(%rbx), %edi
	callq	_phy_stop
	movq	%rbx, %rdi
	callq	_cpmac_hw_stop
	movl	28(%r12), %r15d
	xorl	%edi, %edi
	callq	_CPMAC_TX_PTR
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	28(%r12), %r15d
	movl	$1, %edi
	callq	_CPMAC_TX_PTR
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	28(%r12), %r15d
	movl	$2, %edi
	callq	_CPMAC_TX_PTR
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	28(%r12), %r15d
	movl	$3, %edi
	callq	_CPMAC_TX_PTR
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	28(%r12), %r15d
	movl	$4, %edi
	callq	_CPMAC_TX_PTR
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	28(%r12), %r15d
	movl	$5, %edi
	callq	_CPMAC_TX_PTR
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	28(%r12), %r15d
	movl	$6, %edi
	callq	_CPMAC_TX_PTR
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	28(%r12), %r15d
	movl	$7, %edi
	callq	_CPMAC_TX_PTR
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	28(%r12), %r15d
	xorl	%edi, %edi
	callq	_CPMAC_RX_PTR
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	28(%r12), %edi
	movq	_CPMAC_MBP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	4(%rbx), %edi
	movq	%rbx, %r15
	movq	%rbx, %rsi
	callq	_free_irq
	movl	28(%r12), %edi
	callq	_iounmap
	movl	24(%r12), %edi
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_platform_get_resource_byname
	movl	(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_release_mem_region
	movq	8(%r12), %rdx
	movq	_CPMAC_QUEUES@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rsi, %rcx
	shlq	$4, %rcx
	addq	%rdx, %rcx
	movq	%rcx, 16(%r12)
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movl	$1, %r13d
	xorl	%ebx, %ebx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r14
	cmpq	$0, (%rcx,%rbx)
	je	LBB0_4
	.p2align	4, 0x90
LBB0_3:
	movl	8(%rcx,%rbx), %esi
	movq	_CPMAC_SKB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movq	%r15, %rdi
	callq	_dma_unmap_single
	movq	16(%r12), %rax
	movq	(%rax,%rbx), %rdi
	callq	_kfree_skb
	movl	(%r12), %eax
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r12), %rcx
	addq	$16, %rbx
	incq	%r13
	cmpq	$0, (%rcx,%rbx)
	jne	LBB0_3
	jmp	LBB0_4
LBB0_6:
	movq	_CPMAC_QUEUES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	8(%r12), %rdx
LBB0_7:
	addl	%eax, %esi
	shll	$2, %esi
	movl	4(%r12), %ecx
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dma_free_coherent
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPMAC_MBP,4,2                  ## @CPMAC_MBP
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"regs"

	.comm	_CPMAC_QUEUES,8,3               ## @CPMAC_QUEUES
	.comm	_CPMAC_SKB_SIZE,4,2             ## @CPMAC_SKB_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_cpmac_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpmac_stop
_cpmac_stop:                            ; @cpmac_stop
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_netif_tx_stop_all_queues
	add	x0, x20, #36
	bl	_cancel_work_sync
	add	x0, x20, #32
	bl	_napi_disable
	ldr	w0, [x19, #8]
	bl	_phy_stop
	mov	x0, x19
	bl	_cpmac_hw_stop
	ldr	w21, [x20, #28]
	mov	w0, #0
	bl	_CPMAC_TX_PTR
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_cpmac_write
	ldr	w21, [x20, #28]
	mov	w0, #1
	bl	_CPMAC_TX_PTR
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_cpmac_write
	ldr	w21, [x20, #28]
	mov	w0, #2
	bl	_CPMAC_TX_PTR
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_cpmac_write
	ldr	w21, [x20, #28]
	mov	w0, #3
	bl	_CPMAC_TX_PTR
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_cpmac_write
	ldr	w21, [x20, #28]
	mov	w0, #4
	bl	_CPMAC_TX_PTR
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_cpmac_write
	ldr	w21, [x20, #28]
	mov	w0, #5
	bl	_CPMAC_TX_PTR
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_cpmac_write
	ldr	w21, [x20, #28]
	mov	w0, #6
	bl	_CPMAC_TX_PTR
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_cpmac_write
	ldr	w21, [x20, #28]
	mov	w0, #7
	bl	_CPMAC_TX_PTR
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_cpmac_write
	ldr	w21, [x20, #28]
	mov	w0, #0
	bl	_CPMAC_RX_PTR
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_cpmac_write
	ldr	w0, [x20, #28]
Lloh0:
	adrp	x8, _CPMAC_MBP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPMAC_MBP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_cpmac_write
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_free_irq
	ldr	w0, [x20, #28]
	bl	_iounmap
	ldr	w0, [x20, #24]
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_platform_get_resource_byname
	ldr	w21, [x0]
	bl	_resource_size
	mov	x1, x0
	mov	x0, x21
	bl	_release_mem_region
Lloh8:
	adrp	x21, _CPMAC_QUEUES@GOTPAGE
Lloh9:
	ldr	x21, [x21, _CPMAC_QUEUES@GOTPAGEOFF]
	ldr	x2, [x20, #8]
	ldr	x10, [x21]
	add	x9, x2, x10, lsl #4
	str	x9, [x20, #16]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, #0
	mov	w23, #1
Lloh10:
	adrp	x24, _CPMAC_SKB_SIZE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _CPMAC_SKB_SIZE@GOTPAGEOFF]
Lloh12:
	adrp	x25, _DMA_FROM_DEVICE@GOTPAGE
Lloh13:
	ldr	x25, [x25, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	x10, [x9, x22]
	cbz	x10, LBB0_3
LBB0_2:
	add	x8, x9, x22
	ldr	w1, [x8, #8]
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	x0, x19
	bl	_dma_unmap_single
	ldr	x8, [x20, #16]
	ldr	x0, [x8, x22]
	bl	_kfree_skb
	ldr	w8, [x20]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x23, w8, sxtw
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x20, #16]
	add	x22, x22, #16
	add	x23, x23, #1
	ldr	x10, [x9, x22]
	cbnz	x10, LBB0_2
	b	LBB0_3
LBB0_5:
	ldr	x10, [x21]
	ldr	x2, [x20, #8]
LBB0_6:
	add	w8, w8, w10
	lsl	w1, w8, #2
	ldr	w3, [x20, #4]
	mov	x0, x19
	bl	_dma_free_coherent
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CPMAC_MBP,4,2                  ; @CPMAC_MBP
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"regs"

	.comm	_CPMAC_QUEUES,8,3               ; @CPMAC_QUEUES
	.comm	_CPMAC_SKB_SIZE,4,2             ; @CPMAC_SKB_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_cpmac_stop
.subsections_via_symbols
