	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_rx_start
_sky2_rx_start:                         ## @sky2_rx_start
	.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
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	64(%rdi), %rbx
	movq	_rxqaddr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %r14d
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rdi)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_sky2_qset
	movl	20(%rbx), %edi
	movq	_PCI_CAP_ID_EXP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_find_capability
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_Q_WM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_Q_ADDR
	movq	_BMU_WM_PEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sky2_write32
LBB0_2:
	movq	(%rbx), %rax
	movq	_CHIP_ID_YUKON_EC_U@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	8(%rbx), %rax
	movq	_CHIP_REV_YU_EC_U_A1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_CHIP_REV_YU_EC_U_B0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_5:
	movq	_Q_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_Q_ADDR
	movq	_F_M_RX_RAM_DIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sky2_write32
LBB0_6:
	movl	40(%r13), %edx
	movq	_RX_LE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	decq	%rcx
	movq	%rbx, %rdi
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	callq	_sky2_prefetch_init
	movq	_SKY2_HW_NEW_LE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testl	%eax, 16(%rbx)
	jne	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	callq	_rx_set_checksum
LBB0_8:
	movq	32(%r13), %rax
	movq	_ETH_HLEN@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	addq	(%rax), %rdi
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movl	$8, %esi
	callq	_roundup
	movl	%eax, %r12d
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r15
	movb	(%r15), %cl
	movl	%eax, %ebx
	shrl	%cl, %ebx
	movl	%ebx, 8(%r13)
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	seta	%dil
	callq	_BUG_ON
	movl	8(%r13), %eax
	movb	(%r15), %cl
	shll	%cl, %eax
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	subl	%eax, %r12d
	movq	_copybreak@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	cmovbel	%eax, %r12d
	movl	(%r14), %eax
	cmpl	%eax, %r12d
	cmovbel	%eax, %r12d
	movl	%r12d, 12(%r13)
	cmpl	$0, 16(%r13)
	je	LBB0_15
## %bb.9:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %r15
	movq	%r13, %rdi
	callq	_sky2_rx_alloc
	movq	%rax, (%r15,%r14)
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	(%r15,%r14), %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	20(%rax), %edi
	movl	12(%r13), %edx
	movq	%rbx, %rsi
	callq	_sky2_rx_map_skb
	testq	%rax, %rax
	jne	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_sky2_rx_submit
	incq	%r12
	movl	16(%r13), %eax
	addq	$16, %r14
	cmpq	%rax, %r12
	jb	LBB0_10
LBB0_15:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	addl	$-8, %ebx
	movq	(%r13), %rdi
	cmpl	$2047, %ebx                     ## imm = 0x7FF
	jbe	LBB0_17
## %bb.16:
	movq	_RX_TRUNC_OFF@GOTPCREL(%rip), %r14
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_17:
	shrl	$2, %ebx
	movq	_RX_GMF_TR_THR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SK_REG
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_sky2_write16
	movq	(%r13), %rdi
	movq	_RX_TRUNC_ON@GOTPCREL(%rip), %r14
LBB0_18:
	movq	_RX_GMF_CTRL_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SK_REG
	movl	(%r14), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sky2_write32
	movq	%r13, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_sky2_rx_update
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_12:
	movq	(%r15,%r14), %rdi
	callq	_dev_kfree_skb
	movq	$0, (%r15,%r14)
LBB0_13:
	movq	%r13, %rdi
	callq	_sky2_rx_clean
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rxqaddr,8,3                    ## @rxqaddr
	.comm	_PCI_CAP_ID_EXP,4,2             ## @PCI_CAP_ID_EXP
	.comm	_Q_WM,4,2                       ## @Q_WM
	.comm	_BMU_WM_PEX,4,2                 ## @BMU_WM_PEX
	.comm	_CHIP_ID_YUKON_EC_U,8,3         ## @CHIP_ID_YUKON_EC_U
	.comm	_CHIP_REV_YU_EC_U_A1,8,3        ## @CHIP_REV_YU_EC_U_A1
	.comm	_CHIP_REV_YU_EC_U_B0,8,3        ## @CHIP_REV_YU_EC_U_B0
	.comm	_Q_TEST,4,2                     ## @Q_TEST
	.comm	_F_M_RX_RAM_DIS,4,2             ## @F_M_RX_RAM_DIS
	.comm	_RX_LE_SIZE,8,3                 ## @RX_LE_SIZE
	.comm	_SKY2_HW_NEW_LE,4,2             ## @SKY2_HW_NEW_LE
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_VLAN_HLEN,8,3                  ## @VLAN_HLEN
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_copybreak,4,2                  ## @copybreak
	.comm	_RX_GMF_CTRL_T,4,2              ## @RX_GMF_CTRL_T
	.comm	_RX_TRUNC_OFF,4,2               ## @RX_TRUNC_OFF
	.comm	_RX_GMF_TR_THR,4,2              ## @RX_GMF_TR_THR
	.comm	_RX_TRUNC_ON,4,2                ## @RX_TRUNC_ON
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_sky2_rx_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_rx_start
_sky2_rx_start:                         ; @sky2_rx_start
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0, #64]
Lloh0:
	adrp	x8, _rxqaddr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rxqaddr@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w20, [x8, x9, lsl #2]
	stp	xzr, xzr, [x0, #48]
	mov	x0, x21
	mov	x1, x20
	bl	_sky2_qset
	ldr	w0, [x21, #20]
Lloh3:
	adrp	x8, _PCI_CAP_ID_EXP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_CAP_ID_EXP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_pci_find_capability
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _Q_WM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Q_WM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_Q_ADDR
	mov	x1, x0
Lloh9:
	adrp	x8, _BMU_WM_PEX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BMU_WM_PEX@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_sky2_write32
LBB0_2:
	ldr	x8, [x21]
Lloh12:
	adrp	x9, _CHIP_ID_YUKON_EC_U@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CHIP_ID_YUKON_EC_U@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x21, #8]
Lloh15:
	adrp	x9, _CHIP_REV_YU_EC_U_A1@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CHIP_REV_YU_EC_U_A1@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _CHIP_REV_YU_EC_U_B0@GOTPAGE
Lloh19:
	ldr	x10, [x10, _CHIP_REV_YU_EC_U_B0@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.4:
Lloh21:
	adrp	x8, _Q_TEST@GOTPAGE
Lloh22:
	ldr	x8, [x8, _Q_TEST@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_Q_ADDR
	mov	x1, x0
Lloh24:
	adrp	x8, _F_M_RX_RAM_DIS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _F_M_RX_RAM_DIS@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_sky2_write32
LBB0_5:
	ldr	w2, [x19, #40]
Lloh27:
	adrp	x8, _RX_LE_SIZE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RX_LE_SIZE@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	sub	x3, x8, #1
	mov	x0, x21
	mov	x1, x20
	bl	_sky2_prefetch_init
	ldr	w8, [x21, #16]
Lloh30:
	adrp	x9, _SKY2_HW_NEW_LE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SKY2_HW_NEW_LE@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_rx_set_checksum
LBB0_7:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
Lloh33:
	adrp	x23, _ETH_HLEN@GOTPAGE
Lloh34:
	ldr	x23, [x23, _ETH_HLEN@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh35:
	adrp	x10, _VLAN_HLEN@GOTPAGE
Lloh36:
	ldr	x10, [x10, _VLAN_HLEN@GOTPAGEOFF]
Lloh37:
	ldr	x10, [x10]
	add	x8, x8, x9
	add	x0, x8, x10
	mov	w1, #8
	bl	_roundup
	mov	x22, x0
Lloh38:
	adrp	x24, _PAGE_SHIFT@GOTPAGE
Lloh39:
	ldr	x24, [x24, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	w8, [x24]
	lsr	w25, w0, w8
	str	w25, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	w25, w0
	cset	w0, hi
	bl	_BUG_ON
	ldr	w8, [x19, #8]
	ldr	w9, [x24]
	lsl	w8, w8, w9
Lloh40:
	adrp	x9, _copybreak@GOTPAGE
Lloh41:
	ldr	x9, [x9, _copybreak@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	sub	w8, w22, w8
	cmp	w8, w9
	csel	w8, w8, w9, hi
	ldr	w9, [x23]
	cmp	w8, w9
	csel	w8, w8, w9, hi
	str	w8, [x19, #12]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_12
; %bb.8:
	mov	x24, #0
	mov	x25, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x19, #24]
	add	x23, x26, x24
	mov	x0, x19
	bl	_sky2_rx_alloc
	str	x0, [x23]
	cbz	x0, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x21, #20]
	ldr	w2, [x19, #12]
	mov	x1, x23
	bl	_sky2_rx_map_skb
	cbnz	x0, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_sky2_rx_submit
	add	x25, x25, #1
	ldr	w8, [x19, #16]
	add	x24, x24, #16
	cmp	x25, x8
	b.lo	LBB0_9
LBB0_12:
	sub	w8, w22, #8
	ldr	x0, [x19]
	cmp	w8, #2047
	b.ls	LBB0_14
; %bb.13:
Lloh43:
	adrp	x22, _RX_TRUNC_OFF@GOTPAGE
Lloh44:
	ldr	x22, [x22, _RX_TRUNC_OFF@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
	lsr	w22, w8, #2
Lloh45:
	adrp	x8, _RX_GMF_TR_THR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _RX_GMF_TR_THR@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	bl	_SK_REG
	mov	x1, x0
	mov	x0, x21
	mov	x2, x22
	bl	_sky2_write16
	ldr	x0, [x19]
Lloh48:
	adrp	x22, _RX_TRUNC_ON@GOTPAGE
Lloh49:
	ldr	x22, [x22, _RX_TRUNC_ON@GOTPAGEOFF]
LBB0_15:
Lloh50:
	adrp	x8, _RX_GMF_CTRL_T@GOTPAGE
Lloh51:
	ldr	x8, [x8, _RX_GMF_CTRL_T@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	bl	_SK_REG
	mov	x1, x0
	ldr	w2, [x22]
	mov	x0, x21
	bl	_sky2_write32
	mov	x0, x19
	mov	x1, x20
	bl	_sky2_rx_update
	mov	w0, #0
	b	LBB0_18
LBB0_16:
	ldr	x0, [x26, x24]
	bl	_dev_kfree_skb
	str	xzr, [x26, x24]
LBB0_17:
	mov	x0, x19
	bl	_sky2_rx_clean
Lloh53:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_rxqaddr,8,3                    ; @rxqaddr
	.comm	_PCI_CAP_ID_EXP,4,2             ; @PCI_CAP_ID_EXP
	.comm	_Q_WM,4,2                       ; @Q_WM
	.comm	_BMU_WM_PEX,4,2                 ; @BMU_WM_PEX
	.comm	_CHIP_ID_YUKON_EC_U,8,3         ; @CHIP_ID_YUKON_EC_U
	.comm	_CHIP_REV_YU_EC_U_A1,8,3        ; @CHIP_REV_YU_EC_U_A1
	.comm	_CHIP_REV_YU_EC_U_B0,8,3        ; @CHIP_REV_YU_EC_U_B0
	.comm	_Q_TEST,4,2                     ; @Q_TEST
	.comm	_F_M_RX_RAM_DIS,4,2             ; @F_M_RX_RAM_DIS
	.comm	_RX_LE_SIZE,8,3                 ; @RX_LE_SIZE
	.comm	_SKY2_HW_NEW_LE,4,2             ; @SKY2_HW_NEW_LE
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_VLAN_HLEN,8,3                  ; @VLAN_HLEN
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_copybreak,4,2                  ; @copybreak
	.comm	_RX_GMF_CTRL_T,4,2              ; @RX_GMF_CTRL_T
	.comm	_RX_TRUNC_OFF,4,2               ; @RX_TRUNC_OFF
	.comm	_RX_GMF_TR_THR,4,2              ; @RX_GMF_TR_THR
	.comm	_RX_TRUNC_ON,4,2                ; @RX_TRUNC_ON
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_sky2_rx_start
.subsections_via_symbols
