	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sysport_stop
_bcm_sysport_stop:                      ## @bcm_sysport_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
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_bcm_sysport_netif_stop
	movq	_CMD_RX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_umac_enable_set
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_tdma_enable_set
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$3000, %esi                     ## imm = 0xBB8
	callq	_usleep_range
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_rdma_enable_set
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_netdev_err
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_CMD_TX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_umac_enable_set
	cmpl	$0, (%r14)
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bcm_sysport_fini_tx_ring
	incl	%ebx
	cmpl	(%r14), %ebx
	jb	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	callq	_bcm_sysport_fini_rx_ring
	movl	8(%r15), %edi
	movq	%r14, %rsi
	callq	_free_irq
	cmpl	$0, 4(%r15)
	jne	LBB0_9
## %bb.8:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_free_irq
LBB0_9:
	movl	4(%r14), %edi
	callq	_phy_disconnect
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_RX_EN,4,2                  ## @CMD_RX_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout disabling RDMA\n"

L_.str.1:                               ## @.str.1
	.asciz	"timeout disabling TDMA\n"

	.comm	_CMD_TX_EN,4,2                  ## @CMD_TX_EN
	.no_dead_strip	_bcm_sysport_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_sysport_stop
_bcm_sysport_stop:                      ; @bcm_sysport_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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_bcm_sysport_netif_stop
Lloh0:
	adrp	x8, _CMD_RX_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_RX_EN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_umac_enable_set
	mov	x0, x20
	mov	w1, #0
	bl	_tdma_enable_set
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	w0, #2000
	mov	w1, #3000
	bl	_usleep_range
	mov	x0, x20
	mov	w1, #0
	bl	_rdma_enable_set
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_netdev_err
LBB0_5:
	mov	x0, x21
	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
	ret
LBB0_6:
Lloh7:
	adrp	x8, _CMD_TX_EN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CMD_TX_EN@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_umac_enable_set
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.7:
	mov	w21, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_bcm_sysport_fini_tx_ring
	add	w21, w21, #1
	ldr	w8, [x19]
	cmp	w21, w8
	b.lo	LBB0_8
LBB0_9:
	mov	x0, x20
	bl	_bcm_sysport_fini_rx_ring
	ldr	w0, [x20, #8]
	mov	x1, x19
	bl	_free_irq
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_11
; %bb.10:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_free_irq
LBB0_11:
	ldr	w0, [x19, #4]
	bl	_phy_disconnect
	mov	w21, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_RX_EN,4,2                  ; @CMD_RX_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout disabling RDMA\n"

l_.str.1:                               ; @.str.1
	.asciz	"timeout disabling TDMA\n"

	.comm	_CMD_TX_EN,4,2                  ; @CMD_TX_EN
	.no_dead_strip	_bcm_sysport_stop
.subsections_via_symbols
