	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_rx
_rtl_rx:                                ## @rtl_rx
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	(%rsi), %ebx
	movq	_NUM_RX_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subl	%ebx, %edi
	addl	4(%rsi), %edi
	movl	%edx, %esi
	callq	_min
	testl	%eax, %eax
	je	LBB0_25
## %bb.1:
	leaq	24(%r13), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	decl	%eax
	je	LBB0_25
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %eax
	xorl	%edx, %edx
	movq	_NUM_RX_DESC@GOTPCREL(%rip), %rcx
	divl	(%rcx)
	movl	%edx, %r14d
	movq	%r13, %rbx
	movq	40(%r13), %r13
	leaq	(%r14,%r14,2), %r12
	xorl	%eax, %eax
	callq	_rmb
	movl	8(%r13,%r12,4), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	andl	8(%rbx), %r15d
	movq	_DescOwn@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(,%r12,4), %rax
	addq	%r13, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_RxRES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r15d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdx
	leaq	L_.str(%rip), %rcx
	movl	%r15d, %r8d
	callq	_netif_info
	incl	24(%r12)
	movq	_RxRUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RxRWT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r15d, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	12(%r12)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_RxCRC@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	20(%r12)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_RxFOVF@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RTL_FLAG_TASK_RESET_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rtl_schedule_task
	incl	16(%r12)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_rx_buf_sz@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_rtl8169_mark_to_asic
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %r14d
	movl	$268427264, %edi                ## imm = 0xFFFE000
	callq	_cpu_to_le32
	testl	%r14d, %eax
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	16(%r13), %rax
	movq	_RTL_GIGA_MAC_VER_05@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, (%r15)
	incl	%ebx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13,%r12,4), %edi
	callq	_le64_to_cpu
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_rtl8169_fragmented_frame
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	incl	8(%r12)
	incl	12(%r12)
	movq	_rx_buf_sz@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_rtl8169_mark_to_asic
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %ebx
	andl	$16383, %ebx                    ## imm = 0x3FFF
	addl	$-4, %ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	32(%r13), %rax
	movl	(%rax,%r14,4), %edi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_rtl8169_try_rx_copy
	movq	%rax, %r14
	movq	_rx_buf_sz@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_rtl8169_mark_to_asic
	testq	%r14, %r14
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_rtl8169_rx_csum
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_skb_put
	movq	%r14, %rdi
	movq	%r12, %r15
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_eth_type_trans
	movl	%eax, (%r14)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_rtl8169_rx_vlan_skb
	testq	%rax, %rax
	jns	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_napi_gro_receive
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	%ebx, (%r12)
	incl	4(%r12)
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_19
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	incl	8(%r12)
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_23
LBB0_3:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_25:
	movl	%ebx, %eax
	subl	(%r13), %eax
	movl	%ebx, (%r13)
	addl	%eax, 4(%r13)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_RX_DESC,4,2                ## @NUM_RX_DESC
	.comm	_DescOwn,4,2                    ## @DescOwn
	.comm	_RxRES,4,2                      ## @RxRES
	.comm	_rx_err,4,2                     ## @rx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Rx ERROR. status = %08x\n"

	.comm	_RxRWT,4,2                      ## @RxRWT
	.comm	_RxRUNT,4,2                     ## @RxRUNT
	.comm	_RxCRC,4,2                      ## @RxCRC
	.comm	_RxFOVF,4,2                     ## @RxFOVF
	.comm	_RTL_FLAG_TASK_RESET_PENDING,4,2 ## @RTL_FLAG_TASK_RESET_PENDING
	.comm	_rx_buf_sz,4,2                  ## @rx_buf_sz
	.comm	_RTL_GIGA_MAC_VER_05,8,3        ## @RTL_GIGA_MAC_VER_05
	.no_dead_strip	_rtl_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_rx
_rtl_rx:                                ; @rtl_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x27, _NUM_RX_DESC@GOTPAGE
Lloh1:
	ldr	x27, [x27, _NUM_RX_DESC@GOTPAGEOFF]
	ldr	w8, [x27]
	ldp	w28, w9, [x1]
	sub	w8, w8, w28
	add	w0, w8, w9
	mov	x1, x2
	bl	_min
	cbz	w0, LBB0_23
; %bb.1:
	mov	x21, x0
	add	x8, x19, #24
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh2:
	adrp	x23, _DescOwn@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DescOwn@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, x27
	mov	w8, #12
	madd	x8, x22, x8, x26
	ldr	w0, [x8, #4]
	bl	_le64_to_cpu
	mov	x27, x0
	mov	x0, x25
	bl	_rtl8169_fragmented_frame
	bl	_unlikely
	cbz	x0, LBB0_18
; %bb.3:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	d0, [x20, #8]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x20, #8]
Lloh4:
	adrp	x8, _rx_buf_sz@GOTPAGE
Lloh5:
	ldr	x8, [x8, _rx_buf_sz@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_rtl8169_mark_to_asic
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, x23
Lloh7:
	adrp	x23, _DescOwn@GOTPAGE
Lloh8:
	ldr	x23, [x23, _DescOwn@GOTPAGEOFF]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w28, w28, #1
	subs	w21, w21, #1
	b.eq	LBB0_23
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	udiv	w9, w28, w8
	msub	w22, w9, w8, w28
	ldr	x26, [x19, #40]
	mov	w8, #12
	umaddl	x24, w22, w8, x26
	bl	_rmb
	ldr	w0, [x24, #8]
	bl	_le32_to_cpu
	ldr	w8, [x19, #8]
	and	w25, w8, w0
	ldr	w8, [x23]
	tst	w25, w8
	b.ne	LBB0_23
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh9:
	adrp	x8, _RxRES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RxRES@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w0, w8, w25
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh12:
	adrp	x8, _rx_err@GOTPAGE
Lloh13:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
	mov	x4, x25
	bl	_netif_info
	ldr	w8, [x20, #24]
	add	w8, w8, #1
	str	w8, [x20, #24]
Lloh17:
	adrp	x8, _RxRWT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RxRWT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _RxRUNT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RxRUNT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w25
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh23:
	adrp	x8, _RxCRC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RxCRC@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh26:
	adrp	x8, _RxFOVF@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RxFOVF@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh29:
	adrp	x8, _RTL_FLAG_TASK_RESET_PENDING@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RTL_FLAG_TASK_RESET_PENDING@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl_schedule_task
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh32:
	adrp	x8, _rx_buf_sz@GOTPAGE
Lloh33:
	ldr	x8, [x8, _rx_buf_sz@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_rtl8169_mark_to_asic
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w22, [x24]
	mov	w0, #268427264
	bl	_cpu_to_le32
	tst	w0, w22
	b.eq	LBB0_5
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #16]
Lloh35:
	adrp	x9, _RTL_GIGA_MAC_VER_05@GOTPAGE
Lloh36:
	ldr	x9, [x9, _RTL_GIGA_MAC_VER_05@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	str	wzr, [x24]
	add	w28, w28, #1
	b	LBB0_5
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	and	w8, w25, #0x3fff
	sub	w26, w8, #4
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x22, lsl #2]
	mov	x1, x19
	mov	x2, x26
	mov	x3, x27
	bl	_rtl8169_try_rx_copy
	mov	x27, x0
Lloh38:
	adrp	x8, _rx_buf_sz@GOTPAGE
Lloh39:
	ldr	x8, [x8, _rx_buf_sz@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_rtl8169_mark_to_asic
	cbz	x27, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x27
	mov	x1, x25
	bl	_rtl8169_rx_csum
	mov	x0, x27
	mov	x1, x26
	bl	_skb_put
	mov	x0, x27
	mov	x1, x20
	bl	_eth_type_trans
	str	w0, [x27]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x27
	bl	_rtl8169_rx_vlan_skb
	tbz	x0, #63, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x27
	bl	_napi_gro_receive
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	d0, [x20]
	movi.2s	v1, #1
	mov.s	v1[0], w26
	add.2s	v0, v0, v1
	str	d0, [x20]
	mov	x27, x23
Lloh41:
	adrp	x23, _DescOwn@GOTPAGE
Lloh42:
	ldr	x23, [x23, _DescOwn@GOTPAGEOFF]
	b	LBB0_15
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	b	LBB0_4
LBB0_23:
	ldp	w8, w9, [x19]
	sub	w0, w28, w8
	add	w8, w9, w0
	stp	w28, w8, [x19]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_RX_DESC,4,2                ; @NUM_RX_DESC
	.comm	_DescOwn,4,2                    ; @DescOwn
	.comm	_RxRES,4,2                      ; @RxRES
	.comm	_rx_err,4,2                     ; @rx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rx ERROR. status = %08x\n"

	.comm	_RxRWT,4,2                      ; @RxRWT
	.comm	_RxRUNT,4,2                     ; @RxRUNT
	.comm	_RxCRC,4,2                      ; @RxCRC
	.comm	_RxFOVF,4,2                     ; @RxFOVF
	.comm	_RTL_FLAG_TASK_RESET_PENDING,4,2 ; @RTL_FLAG_TASK_RESET_PENDING
	.comm	_rx_buf_sz,4,2                  ; @rx_buf_sz
	.comm	_RTL_GIGA_MAC_VER_05,8,3        ; @RTL_GIGA_MAC_VER_05
	.no_dead_strip	_rtl_rx
.subsections_via_symbols
