	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_rx_checksum
_sky2_rx_checksum:                      ## @sky2_rx_checksum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	_SKY2_HW_NEW_LE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	(%rax), %edi
	callq	_BUG_ON
	movl	%r14d, %eax
	sarl	$16, %eax
	xorl	%edi, %edi
	cmpl	%r14d, %eax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	32(%rbx), %rcx
	movq	(%rcx,%rax,8), %rbx
	movq	_CHECKSUM_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	%r14d, %edi
	callq	_le16_to_cpu
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	8(%rax), %rdi
	movl	4(%rcx), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %ecx
	callq	_dev_notice
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	24(%rbx), %rcx
	andl	%eax, (%rcx)
	movq	8(%rbx), %rax
	movq	16(%rbx), %rbx
	movq	_rxqaddr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edi
	movq	_Q_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Q_ADDR
	movq	_BMU_DIS_RX_CHKSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sky2_write32                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SKY2_HW_NEW_LE,4,2             ## @SKY2_HW_NEW_LE
	.comm	_CHECKSUM_COMPLETE,4,2          ## @CHECKSUM_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: receive checksum problem (status = %#x)\n"

	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_rxqaddr,8,3                    ## @rxqaddr
	.comm	_Q_CSR,4,2                      ## @Q_CSR
	.comm	_BMU_DIS_RX_CHKSUM,4,2          ## @BMU_DIS_RX_CHKSUM
	.no_dead_strip	_sky2_rx_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_rx_checksum
_sky2_rx_checksum:                      ; @sky2_rx_checksum
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _SKY2_HW_NEW_LE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SKY2_HW_NEW_LE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_BUG_ON
	cmp	w20, w20, asr #16
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #32]
	ldr	x9, [x19]
	ldr	x19, [x8, x9, lsl #3]
Lloh3:
	adrp	x8, _CHECKSUM_COMPLETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHECKSUM_COMPLETE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_le16_to_cpu
	str	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldp	x8, x9, [x19, #16]
	ldr	x0, [x8, #8]
	ldr	w2, [x9, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_dev_notice
Lloh8:
	adrp	x8, _NETIF_F_RXCSUM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x9, [x19, #24]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
Lloh11:
	adrp	x8, _rxqaddr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rxqaddr@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldp	x9, x20, [x19, #8]
	ldr	w0, [x8, x9, lsl #2]
Lloh14:
	adrp	x8, _Q_CSR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _Q_CSR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_Q_ADDR
	mov	x1, x0
Lloh17:
	adrp	x8, _BMU_DIS_RX_CHKSUM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BMU_DIS_RX_CHKSUM@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sky2_write32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SKY2_HW_NEW_LE,4,2             ; @SKY2_HW_NEW_LE
	.comm	_CHECKSUM_COMPLETE,4,2          ; @CHECKSUM_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: receive checksum problem (status = %#x)\n"

	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_rxqaddr,8,3                    ; @rxqaddr
	.comm	_Q_CSR,4,2                      ; @Q_CSR
	.comm	_BMU_DIS_RX_CHKSUM,4,2          ; @BMU_DIS_RX_CHKSUM
	.no_dead_strip	_sky2_rx_checksum
.subsections_via_symbols
