	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_set_rx_csum
_sky2_set_rx_csum:                      ## @sky2_set_rx_csum
	.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
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	_SKY2_FLAG_RX_CHECKSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	orl	%ecx, 12(%rax)
	jmp	LBB0_3
LBB0_2:
	notl	%ecx
	andl	%ecx, 12(%rax)
LBB0_3:
	movl	8(%rax), %r14d
	movq	_rxqaddr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %rax
	movl	(%rcx,%rax,4), %edi
	movq	_Q_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Q_ADDR
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.5:
	movq	_BMU_DIS_RX_CHKSUM@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_BMU_ENA_RX_CHKSUM@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_sky2_write32
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SKY2_FLAG_RX_CHECKSUM,4,2      ## @SKY2_FLAG_RX_CHECKSUM
	.comm	_rxqaddr,8,3                    ## @rxqaddr
	.comm	_Q_CSR,4,2                      ## @Q_CSR
	.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	_sky2_set_rx_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_set_rx_csum
_sky2_set_rx_csum:                      ; @sky2_set_rx_csum
	.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, x1
	bl	_netdev_priv
Lloh0:
	adrp	x8, _SKY2_FLAG_RX_CHECKSUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SKY2_FLAG_RX_CHECKSUM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	x19, LBB0_2
; %bb.1:
	ldr	w9, [x0, #12]
	orr	w8, w9, w8
	b	LBB0_3
LBB0_2:
	ldr	w9, [x0, #12]
	bic	w8, w9, w8
LBB0_3:
	str	w8, [x0, #12]
	ldr	w20, [x0, #8]
Lloh3:
	adrp	x8, _rxqaddr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rxqaddr@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w0, [x8, x9, lsl #2]
Lloh6:
	adrp	x8, _Q_CSR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Q_CSR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_Q_ADDR
	mov	x1, x0
Lloh9:
	adrp	x8, _BMU_ENA_RX_CHKSUM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BMU_ENA_RX_CHKSUM@GOTPAGEOFF]
Lloh11:
	adrp	x9, _BMU_DIS_RX_CHKSUM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BMU_DIS_RX_CHKSUM@GOTPAGEOFF]
	cmp	x19, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sky2_write32
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SKY2_FLAG_RX_CHECKSUM,4,2      ; @SKY2_FLAG_RX_CHECKSUM
	.comm	_rxqaddr,8,3                    ; @rxqaddr
	.comm	_Q_CSR,4,2                      ; @Q_CSR
	.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	_sky2_set_rx_csum
.subsections_via_symbols
