	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sysport_set_features
_bcm_sysport_set_features:              ## @bcm_sysport_set_features
	.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, %r14d
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	cmpl	$0, 4(%rax)
	je	LBB0_1
## %bb.2:
	movq	_GIB_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gib_readl
	movq	_GIB_FCS_STRIP@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_GIB_FCS_STRIP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	testl	%eax, %eax
	sete	%al
	jmp	LBB0_3
LBB0_1:
	movq	_UMAC_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_umac_readl
	movq	_CMD_CRC_FWD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	setne	%al
LBB0_3:
	movzbl	%al, %eax
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bcm_sysport_set_rx_csum
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bcm_sysport_set_tx_csum
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UMAC_CMD,4,2                   ## @UMAC_CMD
	.comm	_CMD_CRC_FWD,4,2                ## @CMD_CRC_FWD
	.comm	_GIB_CONTROL,4,2                ## @GIB_CONTROL
	.comm	_GIB_FCS_STRIP,4,2              ## @GIB_FCS_STRIP
	.comm	_GIB_FCS_STRIP_SHIFT,4,2        ## @GIB_FCS_STRIP_SHIFT
	.no_dead_strip	_bcm_sysport_set_features
.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_features
_bcm_sysport_set_features:              ; @bcm_sysport_set_features
	.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	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GIB_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GIB_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_gib_readl
Lloh3:
	adrp	x8, _GIB_FCS_STRIP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GIB_FCS_STRIP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _GIB_FCS_STRIP_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GIB_FCS_STRIP_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cmp	w8, #0
	cset	w8, eq
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _UMAC_CMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UMAC_CMD@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_umac_readl
Lloh12:
	adrp	x8, _CMD_CRC_FWD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CMD_CRC_FWD@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
LBB0_3:
	str	w8, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_bcm_sysport_set_rx_csum
	mov	x0, x20
	mov	x1, x19
	bl	_bcm_sysport_set_tx_csum
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_UMAC_CMD,4,2                   ; @UMAC_CMD
	.comm	_CMD_CRC_FWD,4,2                ; @CMD_CRC_FWD
	.comm	_GIB_CONTROL,4,2                ; @GIB_CONTROL
	.comm	_GIB_FCS_STRIP,4,2              ; @GIB_FCS_STRIP
	.comm	_GIB_FCS_STRIP_SHIFT,4,2        ; @GIB_FCS_STRIP_SHIFT
	.no_dead_strip	_bcm_sysport_set_features
.subsections_via_symbols
