	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpmac_hw_stop
_cpmac_hw_stop:                         ## @cpmac_hw_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_netdev_priv
	movq	%rax, %r15
	movq	8(%rax), %rdi
	callq	_dev_get_platdata
	movl	(%rax), %edi
	callq	_ar7_device_reset
	movl	(%r15), %r14d
	movq	_CPMAC_RX_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_cpmac_read
	andl	$-2, %eax
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_cpmac_write
	movl	(%r15), %r14d
	movq	_CPMAC_TX_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_cpmac_read
	andl	$-2, %eax
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_cpmac_write
	movl	(%r15), %ebx
	xorl	%edi, %edi
	callq	_CPMAC_TX_PTR
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	(%r15), %ebx
	xorl	%edi, %edi
	callq	_CPMAC_RX_PTR
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	(%r15), %ebx
	movl	$1, %edi
	callq	_CPMAC_TX_PTR
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	(%r15), %ebx
	movl	$1, %edi
	callq	_CPMAC_RX_PTR
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	(%r15), %ebx
	movl	$2, %edi
	callq	_CPMAC_TX_PTR
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	(%r15), %ebx
	movl	$2, %edi
	callq	_CPMAC_RX_PTR
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	(%r15), %ebx
	movl	$3, %edi
	callq	_CPMAC_TX_PTR
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	(%r15), %ebx
	movl	$3, %edi
	callq	_CPMAC_RX_PTR
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	(%r15), %ebx
	movl	$4, %edi
	callq	_CPMAC_TX_PTR
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	(%r15), %ebx
	movl	$4, %edi
	callq	_CPMAC_RX_PTR
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	(%r15), %ebx
	movl	$5, %edi
	callq	_CPMAC_TX_PTR
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	(%r15), %ebx
	movl	$5, %edi
	callq	_CPMAC_RX_PTR
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	(%r15), %ebx
	movl	$6, %edi
	callq	_CPMAC_TX_PTR
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	(%r15), %ebx
	movl	$6, %edi
	callq	_CPMAC_RX_PTR
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	(%r15), %ebx
	movl	$7, %edi
	callq	_CPMAC_TX_PTR
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	(%r15), %ebx
	movl	$7, %edi
	callq	_CPMAC_RX_PTR
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cpmac_write
	movl	(%r15), %edi
	movq	_CPMAC_UNICAST_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$255, %edx
	callq	_cpmac_write
	movl	(%r15), %edi
	movq	_CPMAC_RX_INT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$255, %edx
	callq	_cpmac_write
	movl	(%r15), %edi
	movq	_CPMAC_TX_INT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$255, %edx
	callq	_cpmac_write
	movl	(%r15), %edi
	movq	_CPMAC_MAC_INT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$255, %edx
	callq	_cpmac_write
	movl	(%r15), %r14d
	movq	_CPMAC_MAC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_cpmac_read
	movq	_MAC_MII@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	%r14d, %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpmac_write                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CPMAC_RX_CONTROL,4,2           ## @CPMAC_RX_CONTROL
	.comm	_CPMAC_TX_CONTROL,4,2           ## @CPMAC_TX_CONTROL
	.comm	_CPMAC_UNICAST_CLEAR,4,2        ## @CPMAC_UNICAST_CLEAR
	.comm	_CPMAC_RX_INT_CLEAR,4,2         ## @CPMAC_RX_INT_CLEAR
	.comm	_CPMAC_TX_INT_CLEAR,4,2         ## @CPMAC_TX_INT_CLEAR
	.comm	_CPMAC_MAC_INT_CLEAR,4,2        ## @CPMAC_MAC_INT_CLEAR
	.comm	_CPMAC_MAC_CONTROL,4,2          ## @CPMAC_MAC_CONTROL
	.comm	_MAC_MII,4,2                    ## @MAC_MII
	.no_dead_strip	_cpmac_hw_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpmac_hw_stop
_cpmac_hw_stop:                         ; @cpmac_hw_stop
	.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
	bl	_netdev_priv
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_dev_get_platdata
	ldr	w0, [x0]
	bl	_ar7_device_reset
	ldr	w20, [x19]
Lloh0:
	adrp	x8, _CPMAC_RX_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPMAC_RX_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_cpmac_read
	and	w2, w0, #0xfffffffe
	mov	x0, x20
	mov	x1, x21
	bl	_cpmac_write
	ldr	w20, [x19]
Lloh3:
	adrp	x8, _CPMAC_TX_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CPMAC_TX_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_cpmac_read
	and	w2, w0, #0xfffffffe
	mov	x0, x20
	mov	x1, x21
	bl	_cpmac_write
	ldr	w20, [x19]
	mov	w0, #0
	bl	_CPMAC_TX_PTR
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_cpmac_write
	ldr	w20, [x19]
	mov	w0, #0
	bl	_CPMAC_RX_PTR
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_cpmac_write
	ldr	w20, [x19]
	mov	w0, #1
	bl	_CPMAC_TX_PTR
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_cpmac_write
	ldr	w20, [x19]
	mov	w0, #1
	bl	_CPMAC_RX_PTR
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_cpmac_write
	ldr	w20, [x19]
	mov	w0, #2
	bl	_CPMAC_TX_PTR
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_cpmac_write
	ldr	w20, [x19]
	mov	w0, #2
	bl	_CPMAC_RX_PTR
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_cpmac_write
	ldr	w20, [x19]
	mov	w0, #3
	bl	_CPMAC_TX_PTR
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_cpmac_write
	ldr	w20, [x19]
	mov	w0, #3
	bl	_CPMAC_RX_PTR
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_cpmac_write
	ldr	w20, [x19]
	mov	w0, #4
	bl	_CPMAC_TX_PTR
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_cpmac_write
	ldr	w20, [x19]
	mov	w0, #4
	bl	_CPMAC_RX_PTR
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_cpmac_write
	ldr	w20, [x19]
	mov	w0, #5
	bl	_CPMAC_TX_PTR
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_cpmac_write
	ldr	w20, [x19]
	mov	w0, #5
	bl	_CPMAC_RX_PTR
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_cpmac_write
	ldr	w20, [x19]
	mov	w0, #6
	bl	_CPMAC_TX_PTR
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_cpmac_write
	ldr	w20, [x19]
	mov	w0, #6
	bl	_CPMAC_RX_PTR
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_cpmac_write
	ldr	w20, [x19]
	mov	w0, #7
	bl	_CPMAC_TX_PTR
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_cpmac_write
	ldr	w20, [x19]
	mov	w0, #7
	bl	_CPMAC_RX_PTR
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_cpmac_write
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _CPMAC_UNICAST_CLEAR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CPMAC_UNICAST_CLEAR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #255
	bl	_cpmac_write
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _CPMAC_RX_INT_CLEAR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CPMAC_RX_INT_CLEAR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #255
	bl	_cpmac_write
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _CPMAC_TX_INT_CLEAR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CPMAC_TX_INT_CLEAR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w2, #255
	bl	_cpmac_write
	ldr	w0, [x19]
Lloh15:
	adrp	x8, _CPMAC_MAC_INT_CLEAR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CPMAC_MAC_INT_CLEAR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w2, #255
	bl	_cpmac_write
	ldr	w19, [x19]
Lloh18:
	adrp	x8, _CPMAC_MAC_CONTROL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CPMAC_MAC_CONTROL@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_cpmac_read
Lloh21:
	adrp	x8, _MAC_MII@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAC_MII@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x19
	mov	x1, x20
	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	_cpmac_write
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CPMAC_RX_CONTROL,4,2           ; @CPMAC_RX_CONTROL
	.comm	_CPMAC_TX_CONTROL,4,2           ; @CPMAC_TX_CONTROL
	.comm	_CPMAC_UNICAST_CLEAR,4,2        ; @CPMAC_UNICAST_CLEAR
	.comm	_CPMAC_RX_INT_CLEAR,4,2         ; @CPMAC_RX_INT_CLEAR
	.comm	_CPMAC_TX_INT_CLEAR,4,2         ; @CPMAC_TX_INT_CLEAR
	.comm	_CPMAC_MAC_INT_CLEAR,4,2        ; @CPMAC_MAC_INT_CLEAR
	.comm	_CPMAC_MAC_CONTROL,4,2          ; @CPMAC_MAC_CONTROL
	.comm	_MAC_MII,4,2                    ; @MAC_MII
	.no_dead_strip	_cpmac_hw_stop
.subsections_via_symbols
