	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_set_rx_csum
_bcmgenet_set_rx_csum:                  ## @bcmgenet_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_RBUF_CHK_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_bcmgenet_rbuf_readl
	xorl	%edx, %edx
	movq	_RBUF_RXCHK_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ebx, %ebx
	setne	%dl
	je	LBB0_1
## %bb.3:
	orl	%eax, %ecx
	movl	%edx, (%r14)
	cmpq	$0, 8(%r14)
	je	LBB0_2
## %bb.4:
	movq	_RBUF_SKIP_FCS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, %esi
	jmp	LBB0_5
LBB0_1:
	notl	%ecx
	andl	%eax, %ecx
	movl	%edx, (%r14)
LBB0_2:
	movq	_RBUF_SKIP_FCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%ecx, %esi
LBB0_5:
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_bcmgenet_rbuf_writel
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_RBUF_CHK_CTRL,4,2              ## @RBUF_CHK_CTRL
	.comm	_RBUF_RXCHK_EN,4,2              ## @RBUF_RXCHK_EN
	.comm	_RBUF_SKIP_FCS,4,2              ## @RBUF_SKIP_FCS
	.no_dead_strip	_bcmgenet_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 bcmgenet_set_rx_csum
_bcmgenet_set_rx_csum:                  ; @bcmgenet_set_rx_csum
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _NETIF_F_RXCSUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ands	w22, w8, w20
	cset	w21, ne
Lloh3:
	adrp	x20, _RBUF_CHK_CTRL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _RBUF_CHK_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_bcmgenet_rbuf_readl
Lloh5:
	adrp	x8, _RBUF_RXCHK_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RBUF_RXCHK_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbz	w22, LBB0_3
; %bb.1:
	orr	w8, w8, w0
	str	w21, [x19]
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_4
; %bb.2:
Lloh8:
	adrp	x9, _RBUF_SKIP_FCS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RBUF_SKIP_FCS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
	b	LBB0_5
LBB0_3:
	bic	w8, w0, w8
	str	w21, [x19]
LBB0_4:
Lloh11:
	adrp	x9, _RBUF_SKIP_FCS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RBUF_SKIP_FCS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	bic	w1, w8, w9
LBB0_5:
	ldr	w2, [x20]
	mov	x0, x19
	bl	_bcmgenet_rbuf_writel
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_RBUF_CHK_CTRL,4,2              ; @RBUF_CHK_CTRL
	.comm	_RBUF_RXCHK_EN,4,2              ; @RBUF_RXCHK_EN
	.comm	_RBUF_SKIP_FCS,4,2              ; @RBUF_SKIP_FCS
	.no_dead_strip	_bcmgenet_set_rx_csum
.subsections_via_symbols
