	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_fix_features
_sky2_fix_features:                     ## @sky2_fix_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	%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	(%r14), %rax
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_3
## %bb.1:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_CHIP_ID_YUKON_EC_U@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rax
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NETIF_F_CSUM_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %ebx
LBB0_3:
	movq	_NETIF_F_RXHASH@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.4:
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %r12
	testl	%ebx, (%r12)
	jne	LBB0_7
## %bb.5:
	movq	(%r15), %rax
	movq	_SKY2_HW_RSS_CHKSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
	orl	(%r12), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_DATA_LEN,8,3               ## @ETH_DATA_LEN
	.comm	_CHIP_ID_YUKON_EC_U,8,3         ## @CHIP_ID_YUKON_EC_U
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"checksum offload not possible with jumbo frames\n"

	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_CSUM_MASK,4,2          ## @NETIF_F_CSUM_MASK
	.comm	_NETIF_F_RXHASH,4,2             ## @NETIF_F_RXHASH
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_SKY2_HW_RSS_CHKSUM,4,2         ## @SKY2_HW_RSS_CHKSUM
L_.str.1:                               ## @.str.1
	.asciz	"receive hashing forces receive checksum\n"

	.no_dead_strip	_sky2_fix_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_fix_features
_sky2_fix_features:                     ; @sky2_fix_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	x8, [x20]
Lloh0:
	adrp	x9, _ETH_DATA_LEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETH_DATA_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_3
; %bb.1:
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _CHIP_ID_YUKON_EC_U@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHIP_ID_YUKON_EC_U@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
Lloh8:
	adrp	x8, _NETIF_F_TSO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETIF_F_TSO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _NETIF_F_CSUM_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NETIF_F_CSUM_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w19, w19, w8
LBB0_3:
Lloh17:
	adrp	x8, _NETIF_F_RXHASH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NETIF_F_RXHASH@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_7
; %bb.4:
Lloh20:
	adrp	x22, _NETIF_F_RXCSUM@GOTPAGE
Lloh21:
	ldr	x22, [x22, _NETIF_F_RXCSUM@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w19
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x21]
	ldr	w8, [x8, #8]
Lloh22:
	adrp	x9, _SKY2_HW_RSS_CHKSUM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SKY2_HW_RSS_CHKSUM@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
	ldr	w8, [x22]
	orr	w19, w8, w19
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_DATA_LEN,8,3               ; @ETH_DATA_LEN
	.comm	_CHIP_ID_YUKON_EC_U,8,3         ; @CHIP_ID_YUKON_EC_U
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"checksum offload not possible with jumbo frames\n"

	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_CSUM_MASK,4,2          ; @NETIF_F_CSUM_MASK
	.comm	_NETIF_F_RXHASH,4,2             ; @NETIF_F_RXHASH
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_SKY2_HW_RSS_CHKSUM,4,2         ; @SKY2_HW_RSS_CHKSUM
l_.str.1:                               ; @.str.1
	.asciz	"receive hashing forces receive checksum\n"

	.no_dead_strip	_sky2_fix_features
.subsections_via_symbols
