	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rx_set_checksum
_rx_set_checksum:                       ## @rx_set_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_sky2_next_rx
	movq	%rax, %rbx
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edi
	shll	$16, %edi
	orl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	_OP_TCPSTART@GOTPCREL(%rip), %rax
	movq	_HW_OWNER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	16(%r15), %r14d
	movq	_rxqaddr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_Q_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Q_ADDR
	movq	8(%r15), %rcx
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rcx), %edx
	jne	LBB0_1
## %bb.2:
	movq	_BMU_DIS_RX_CHKSUM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_BMU_ENA_RX_CHKSUM@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sky2_write32                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_OP_TCPSTART,4,2                ## @OP_TCPSTART
	.comm	_HW_OWNER,4,2                   ## @HW_OWNER
	.comm	_rxqaddr,8,3                    ## @rxqaddr
	.comm	_Q_CSR,4,2                      ## @Q_CSR
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_BMU_ENA_RX_CHKSUM,4,2          ## @BMU_ENA_RX_CHKSUM
	.comm	_BMU_DIS_RX_CHKSUM,4,2          ## @BMU_DIS_RX_CHKSUM
	.no_dead_strip	_rx_set_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rx_set_checksum
_rx_set_checksum:                       ; @rx_set_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	x19, x0
	bl	_sky2_next_rx
	mov	x20, x0
Lloh0:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w0, w8, w8, lsl #16
	bl	_cpu_to_le32
	str	w0, [x20, #16]
	str	xzr, [x20, #8]
Lloh3:
	adrp	x8, _OP_TCPSTART@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OP_TCPSTART@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _HW_OWNER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HW_OWNER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	w20, [x19, #16]
Lloh9:
	adrp	x8, _rxqaddr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _rxqaddr@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	w0, [x8, x9, lsl #2]
Lloh12:
	adrp	x8, _Q_CSR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _Q_CSR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_Q_ADDR
	mov	x1, x0
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _BMU_ENA_RX_CHKSUM@GOTPAGE
Lloh19:
	ldr	x10, [x10, _BMU_ENA_RX_CHKSUM@GOTPAGEOFF]
Lloh20:
	adrp	x11, _BMU_DIS_RX_CHKSUM@GOTPAGE
Lloh21:
	ldr	x11, [x11, _BMU_DIS_RX_CHKSUM@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	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 AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_OP_TCPSTART,4,2                ; @OP_TCPSTART
	.comm	_HW_OWNER,4,2                   ; @HW_OWNER
	.comm	_rxqaddr,8,3                    ; @rxqaddr
	.comm	_Q_CSR,4,2                      ; @Q_CSR
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_BMU_ENA_RX_CHKSUM,4,2          ; @BMU_ENA_RX_CHKSUM
	.comm	_BMU_DIS_RX_CHKSUM,4,2          ; @BMU_DIS_RX_CHKSUM
	.no_dead_strip	_rx_set_checksum
.subsections_via_symbols
