	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sysport_set_rx_csum
_bcm_sysport_set_rx_csum:               ## @bcm_sysport_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	andl	(%rax), %ebx
	setne	%cl
	movl	%ecx, (%r15)
	movq	_RXCHK_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_rxchk_readl
	movq	_RXCHK_L2_HDR_DIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	cmpl	$0, (%r15)
	movq	_RXCHK_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_1
## %bb.3:
	orl	%ecx, %eax
	cmpq	$0, 8(%r15)
	je	LBB0_2
## %bb.4:
	movq	_RXCHK_SKIP_FCS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_1:
	notl	%eax
	andl	%ecx, %eax
LBB0_2:
	movq	_RXCHK_SKIP_FCS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_netdev_uses_dsa
	movq	_RXCHK_BRCM_TAG_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %ecx
	orl	%ebx, %ecx
	notl	%esi
	andl	%ebx, %esi
	testq	%rax, %rax
	cmovnel	%ecx, %esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rxchk_writel                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_RXCHK_CONTROL,4,2              ## @RXCHK_CONTROL
	.comm	_RXCHK_L2_HDR_DIS,4,2           ## @RXCHK_L2_HDR_DIS
	.comm	_RXCHK_EN,4,2                   ## @RXCHK_EN
	.comm	_RXCHK_SKIP_FCS,4,2             ## @RXCHK_SKIP_FCS
	.comm	_RXCHK_BRCM_TAG_EN,4,2          ## @RXCHK_BRCM_TAG_EN
	.no_dead_strip	_bcm_sysport_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 bcm_sysport_set_rx_csum
_bcm_sysport_set_rx_csum:               ; @bcm_sysport_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	x21, x1
	mov	x20, x0
	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]
	tst	w8, w21
	cset	w8, ne
	str	w8, [x0]
Lloh3:
	adrp	x21, _RXCHK_CONTROL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _RXCHK_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_rxchk_readl
Lloh5:
	adrp	x8, _RXCHK_L2_HDR_DIS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RXCHK_L2_HDR_DIS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	w10, [x19]
Lloh8:
	adrp	x9, _RXCHK_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RXCHK_EN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cbz	w10, LBB0_3
; %bb.1:
	orr	w8, w9, w8
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_4
; %bb.2:
Lloh11:
	adrp	x9, _RXCHK_SKIP_FCS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RXCHK_SKIP_FCS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w22, w9, w8
	b	LBB0_5
LBB0_3:
	bic	w8, w8, w9
LBB0_4:
Lloh14:
	adrp	x9, _RXCHK_SKIP_FCS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RXCHK_SKIP_FCS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	bic	w22, w8, w9
LBB0_5:
	mov	x0, x20
	bl	_netdev_uses_dsa
Lloh17:
	adrp	x8, _RXCHK_BRCM_TAG_EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RXCHK_BRCM_TAG_EN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w9, w8, w22
	bic	w8, w22, w8
	cmp	x0, #0
	csel	w1, w8, w9, eq
	ldr	w2, [x21]
	mov	x0, x19
	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
	b	_rxchk_writel
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_RXCHK_CONTROL,4,2              ; @RXCHK_CONTROL
	.comm	_RXCHK_L2_HDR_DIS,4,2           ; @RXCHK_L2_HDR_DIS
	.comm	_RXCHK_EN,4,2                   ; @RXCHK_EN
	.comm	_RXCHK_SKIP_FCS,4,2             ; @RXCHK_SKIP_FCS
	.comm	_RXCHK_BRCM_TAG_EN,4,2          ; @RXCHK_BRCM_TAG_EN
	.no_dead_strip	_bcm_sysport_set_rx_csum
.subsections_via_symbols
