	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sysport_fini_tx_ring
_bcm_sysport_fini_tx_ring:              ## @bcm_sysport_fini_tx_ring
	.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, %r12
	movq	8(%rdi), %r15
	movl	%esi, %ebx
	shlq	$5, %rbx
	movq	_TDMA_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tdma_readl
	movq	_TDMA_DISABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	cmpq	$0, 16(%r15,%rbx)
	je	LBB0_3
LBB0_4:
	leaq	(%r15,%rbx), %r14
	leaq	(%r15,%rbx), %r13
	addq	$16, %r13
	addq	%rbx, %r15
	addq	$24, %r15
	movq	%r15, %rdi
	callq	_napi_disable
	movq	%r15, %rdi
	callq	_netif_napi_del
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_bcm_sysport_tx_clean
	movq	(%r13), %rdi
	callq	_kfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	movq	$0, 16(%r14)
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_dbg                      ## TAILCALL
LBB0_1:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
	cmpq	$0, 16(%r15,%rbx)
	jne	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDMA_STATUS,4,2                ## @TDMA_STATUS
	.comm	_TDMA_DISABLED,4,2              ## @TDMA_DISABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TDMA not stopped!\n"

	.comm	_hw,4,2                         ## @hw
L_.str.1:                               ## @.str.1
	.asciz	"TDMA fini done\n"

	.no_dead_strip	_bcm_sysport_fini_tx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_sysport_fini_tx_ring
_bcm_sysport_fini_tx_ring:              ; @bcm_sysport_fini_tx_ring
	.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
	ldr	x21, [x0, #8]
	mov	w22, w1
	add	x20, x21, x22, lsl #5
Lloh0:
	adrp	x8, _TDMA_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TDMA_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_tdma_readl
Lloh3:
	adrp	x8, _TDMA_DISABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TDMA_DISABLED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
LBB0_2:
	mov	x23, x20
	ldr	x8, [x23, #16]!
	cbz	x8, LBB0_4
; %bb.3:
	add	x8, x21, x22, lsl #5
	add	x21, x8, #24
	mov	x0, x21
	bl	_napi_disable
	mov	x0, x21
	bl	_netif_napi_del
	mov	x0, x19
	mov	x1, x20
	bl	_bcm_sysport_tx_clean
	ldr	x0, [x23]
	bl	_kfree
	stp	xzr, xzr, [x20, #8]
	str	xzr, [x20]
Lloh8:
	adrp	x8, _hw@GOTPAGE
Lloh9:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	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
	b	_netif_dbg
LBB0_4:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TDMA_STATUS,4,2                ; @TDMA_STATUS
	.comm	_TDMA_DISABLED,4,2              ; @TDMA_DISABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TDMA not stopped!\n"

	.comm	_hw,4,2                         ; @hw
l_.str.1:                               ; @.str.1
	.asciz	"TDMA fini done\n"

	.no_dead_strip	_bcm_sysport_fini_tx_ring
.subsections_via_symbols
