	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_receive
_sky2_receive:                          ## @sky2_receive
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	16(%rax), %r9
	movslq	(%rax), %r13
	movq	_GMR_FS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	sarl	$16, %eax
	movslq	%eax, %r14
	movq	_rx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %r8
	movq	%rbx, %rdi
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rcx
	movq	%r9, %r12
	movl	%r13d, %r9d
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	callq	_netif_printk
	addq	$16, %rsp
	movl	(%rbx), %eax
	incl	%eax
	cltd
	idivl	4(%rbx)
	movl	%edx, (%rbx)
	movslq	%edx, %rdi
	shlq	$2, %rdi
	addq	16(%rbx), %rdi
	callq	_prefetch
	movl	(%r12,%r13,4), %edi
	callq	_skb_vlan_tag_present
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_2:
	subq	%rax, %r14
	leaq	(%r12,%r13,4), %r12
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	movq	_CHIP_ID_YUKON_FE_P@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.3:
	movq	8(%rax), %rax
	movq	_CHIP_REV_YU_FE2_A0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	cmpq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	jne	LBB0_9
LBB0_5:
	movq	_GMR_FS_ANY_ERR@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_6
LBB0_14:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	incl	(%r14)
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	%r15d, %r8d
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_netif_info
	xorl	%r13d, %r13d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_6:
	movq	_GMR_FS_RX_OK@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_7
## %bb.8:
	cmpq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	jne	LBB0_14
LBB0_9:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_needs_copy
	movq	%rbx, %rdi
	movq	%r12, %rsi
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_receive_copy
	jmp	LBB0_12
LBB0_15:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_11:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_receive_new
LBB0_12:
	movq	%rax, %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$1, %r13
	adcl	$0, 4(%rax)
	jmp	LBB0_13
LBB0_7:
	xorl	%r13d, %r13d
LBB0_13:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_sky2_rx_submit
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GMR_FS_LEN,4,2                 ## @GMR_FS_LEN
	.comm	_rx_status,4,2                  ## @rx_status
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx slot %u status 0x%x len %d\n"

	.comm	_VLAN_HLEN,8,3                  ## @VLAN_HLEN
	.comm	_CHIP_ID_YUKON_FE_P,8,3         ## @CHIP_ID_YUKON_FE_P
	.comm	_CHIP_REV_YU_FE2_A0,8,3         ## @CHIP_REV_YU_FE2_A0
	.comm	_GMR_FS_ANY_ERR,4,2             ## @GMR_FS_ANY_ERR
	.comm	_GMR_FS_RX_OK,4,2               ## @GMR_FS_RX_OK
	.comm	_rx_err,4,2                     ## @rx_err
L_.str.1:                               ## @.str.1
	.asciz	"rx error, status 0x%x length %d\n"

	.no_dead_strip	_sky2_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_receive
_sky2_receive:                          ; @sky2_receive
	.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	x23, x2
	mov	x22, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldrsw	x5, [x0]
	add	x20, x8, x5, lsl #2
Lloh0:
	adrp	x8, _GMR_FS_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GMR_FS_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w23
	sbfx	x24, x8, #16, #16
Lloh3:
	adrp	x8, _rx_status@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rx_status@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x4, l_.str@PAGE
Lloh10:
	add	x4, x4, l_.str@PAGEOFF
	mov	x3, x21
                                        ; kill: def $w5 killed $w5 killed $x5
	mov	x6, x23
	mov	x7, x22
	bl	_netif_printk
	ldp	w8, w9, [x19]
	add	w8, w8, #1
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x19]
	ldr	x9, [x19, #16]
	add	x0, x9, w8, sxtw #2
	bl	_prefetch
	ldr	w0, [x20]
	bl	_skb_vlan_tag_present
Lloh11:
	adrp	x8, _VLAN_HLEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VLAN_HLEN@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	sub	x8, x24, x8
	ldr	x9, [x19, #8]
	ldr	x10, [x9]
Lloh14:
	adrp	x11, _CHIP_ID_YUKON_FE_P@GOTPAGE
Lloh15:
	ldr	x11, [x11, _CHIP_ID_YUKON_FE_P@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x9, #8]
Lloh17:
	adrp	x10, _CHIP_REV_YU_FE2_A0@GOTPAGE
Lloh18:
	ldr	x10, [x10, _CHIP_REV_YU_FE2_A0@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.2:
	cmp	x8, x22
	b.ne	LBB0_8
LBB0_3:
Lloh20:
	adrp	x9, _GMR_FS_ANY_ERR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _GMR_FS_ANY_ERR@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w23
	b.eq	LBB0_6
LBB0_4:
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	bl	_net_ratelimit
	cbz	x0, LBB0_10
; %bb.5:
Lloh23:
	adrp	x8, _rx_err@GOTPAGE
Lloh24:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x3, l_.str.1@PAGE
Lloh27:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x4, x23
	mov	x5, x22
	bl	_netif_info
	b	LBB0_10
LBB0_6:
Lloh28:
	adrp	x9, _GMR_FS_RX_OK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _GMR_FS_RX_OK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w23
	b.eq	LBB0_10
; %bb.7:
	cmp	x8, x22
	b.ne	LBB0_4
LBB0_8:
	mov	x0, x20
	mov	x1, x22
	bl	_needs_copy
	cbz	x0, LBB0_11
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_receive_copy
	b	LBB0_12
LBB0_10:
	mov	x22, #0
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_receive_new
LBB0_12:
	mov	x22, x0
	cmp	x0, #0
	ldr	w8, [x21, #4]
	cinc	w8, w8, eq
	str	w8, [x21, #4]
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_sky2_rx_submit
	mov	x0, x22
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GMR_FS_LEN,4,2                 ; @GMR_FS_LEN
	.comm	_rx_status,4,2                  ; @rx_status
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx slot %u status 0x%x len %d\n"

	.comm	_VLAN_HLEN,8,3                  ; @VLAN_HLEN
	.comm	_CHIP_ID_YUKON_FE_P,8,3         ; @CHIP_ID_YUKON_FE_P
	.comm	_CHIP_REV_YU_FE2_A0,8,3         ; @CHIP_REV_YU_FE2_A0
	.comm	_GMR_FS_ANY_ERR,4,2             ; @GMR_FS_ANY_ERR
	.comm	_GMR_FS_RX_OK,4,2               ; @GMR_FS_RX_OK
	.comm	_rx_err,4,2                     ; @rx_err
l_.str.1:                               ; @.str.1
	.asciz	"rx error, status 0x%x length %d\n"

	.no_dead_strip	_sky2_receive
.subsections_via_symbols
