	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_hwlro_rx_uninit
_mtk_hwlro_rx_uninit:                   ## @mtk_hwlro_rx_uninit
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_MTK_LRO_RING_RELINQUISH_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MTK_PDMA_LRO_CTRL_DW0@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_mtk_w32
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mtk_r32
	movq	_MTK_LRO_RING_RELINQUISH_DONE@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.1:
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mtk_r32
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.2:
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mtk_r32
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.3:
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mtk_r32
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.4:
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mtk_r32
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.5:
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mtk_r32
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.6:
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mtk_r32
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.7:
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mtk_r32
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.8:
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mtk_r32
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.9:
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mtk_r32
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.10:
	movl	$20, %edi
	callq	_msleep
LBB0_11:
	movq	_MTK_MAX_RX_RING_NUM@GOTPCREL(%rip), %r12
	cmpl	$2, (%r12)
	jl	LBB0_14
## %bb.12:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_MTK_LRO_CTRL_DW2_CFG
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_mtk_w32
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_13
LBB0_14:
	movl	(%r15), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtk_w32                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MTK_LRO_RING_RELINQUISH_REQ,4,2 ## @MTK_LRO_RING_RELINQUISH_REQ
	.comm	_MTK_PDMA_LRO_CTRL_DW0,4,2      ## @MTK_PDMA_LRO_CTRL_DW0
	.comm	_MTK_LRO_RING_RELINQUISH_DONE,4,2 ## @MTK_LRO_RING_RELINQUISH_DONE
	.comm	_MTK_MAX_RX_RING_NUM,4,2        ## @MTK_MAX_RX_RING_NUM
	.no_dead_strip	_mtk_hwlro_rx_uninit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_hwlro_rx_uninit
_mtk_hwlro_rx_uninit:                   ; @mtk_hwlro_rx_uninit
	.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
Lloh0:
	adrp	x8, _MTK_LRO_RING_RELINQUISH_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTK_LRO_RING_RELINQUISH_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x21, _MTK_PDMA_LRO_CTRL_DW0@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MTK_PDMA_LRO_CTRL_DW0@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_mtk_w32
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mtk_r32
Lloh5:
	adrp	x20, _MTK_LRO_RING_RELINQUISH_DONE@GOTPAGE
Lloh6:
	ldr	x20, [x20, _MTK_LRO_RING_RELINQUISH_DONE@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.1:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mtk_r32
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.2:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mtk_r32
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.3:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mtk_r32
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.4:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mtk_r32
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.5:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mtk_r32
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.6:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mtk_r32
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.7:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mtk_r32
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.8:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mtk_r32
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.9:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mtk_r32
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.10:
	mov	w0, #20
	bl	_msleep
LBB0_11:
Lloh7:
	adrp	x22, _MTK_MAX_RX_RING_NUM@GOTPAGE
Lloh8:
	ldr	x22, [x22, _MTK_MAX_RX_RING_NUM@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_14
; %bb.12:
	mov	w20, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_MTK_LRO_CTRL_DW2_CFG
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_mtk_w32
	add	w20, w20, #1
	ldr	w8, [x22]
	cmp	w20, w8
	b.lt	LBB0_13
LBB0_14:
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	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	_mtk_w32
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MTK_LRO_RING_RELINQUISH_REQ,4,2 ; @MTK_LRO_RING_RELINQUISH_REQ
	.comm	_MTK_PDMA_LRO_CTRL_DW0,4,2      ; @MTK_PDMA_LRO_CTRL_DW0
	.comm	_MTK_LRO_RING_RELINQUISH_DONE,4,2 ; @MTK_LRO_RING_RELINQUISH_DONE
	.comm	_MTK_MAX_RX_RING_NUM,4,2        ; @MTK_MAX_RX_RING_NUM
	.no_dead_strip	_mtk_hwlro_rx_uninit
.subsections_via_symbols
