	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_reset_work
_rtl_reset_work:                        ## @rtl_reset_work
	.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, %r13
	movq	16(%rdi), %r14
	addq	$4, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_napi_disable
	movq	%r14, %rdi
	callq	_netif_stop_queue
	xorl	%eax, %eax
	callq	_synchronize_sched
	movq	%r13, %rdi
	callq	_rtl8169_hw_reset
	movq	_NUM_RX_DESC@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_rx_buf_sz@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	addq	%rbx, %rdi
	movl	(%r15), %esi
	callq	_rtl8169_mark_to_asic
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	%r13, %rdi
	callq	_rtl8169_tx_clear
	movq	%r13, %rdi
	callq	_rtl8169_init_ring_indexes
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_napi_enable
	movq	%r14, %rdi
	callq	_rtl_hw_start
	movq	%r14, %rdi
	callq	_netif_wake_queue
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl8169_check_link_status      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_RX_DESC,4,2                ## @NUM_RX_DESC
	.comm	_rx_buf_sz,4,2                  ## @rx_buf_sz
	.no_dead_strip	_rtl_reset_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_reset_work
_rtl_reset_work:                        ; @rtl_reset_work
	.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	x20, [x0, #16]
	add	x21, x0, #4
	mov	x0, x21
	bl	_napi_disable
	mov	x0, x20
	bl	_netif_stop_queue
	bl	_synchronize_sched
	mov	x0, x19
	bl	_rtl8169_hw_reset
Lloh0:
	adrp	x22, _NUM_RX_DESC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NUM_RX_DESC@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
Lloh2:
	adrp	x24, _rx_buf_sz@GOTPAGE
Lloh3:
	ldr	x24, [x24, _rx_buf_sz@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x23, x8
	ldr	w1, [x24]
	bl	_rtl8169_mark_to_asic
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_rtl8169_tx_clear
	mov	x0, x19
	bl	_rtl8169_init_ring_indexes
	mov	x0, x21
	bl	_napi_enable
	mov	x0, x20
	bl	_rtl_hw_start
	mov	x0, x20
	bl	_netif_wake_queue
	ldr	w2, [x19]
	mov	x0, x20
	mov	x1, 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	_rtl8169_check_link_status
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_RX_DESC,4,2                ; @NUM_RX_DESC
	.comm	_rx_buf_sz,4,2                  ; @rx_buf_sz
	.no_dead_strip	_rtl_reset_work
.subsections_via_symbols
