	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_set_features
_sky2_set_features:                     ## @sky2_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_netdev_priv
	movl	(%r12), %ebx
	xorl	%r14d, %ebx
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %r13
	testl	%ebx, (%r13)
	je	LBB0_6
## %bb.1:
	movq	8(%rax), %r15
	movq	_SKY2_HW_NEW_LE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r15)
	jne	LBB0_6
## %bb.2:
	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
	movl	(%r13), %ecx
	andl	%r14d, %ecx
	jne	LBB0_3
## %bb.4:
	movq	_BMU_DIS_RX_CHKSUM@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_BMU_ENA_RX_CHKSUM@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sky2_write32
LBB0_6:
	movq	_NETIF_F_RXHASH@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_rx_set_rss
LBB0_8:
	movq	_NETIF_F_HW_VLAN_CTAG_TX@GOTPCREL(%rip), %rax
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_sky2_vlan_mode
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_SKY2_HW_NEW_LE,4,2             ## @SKY2_HW_NEW_LE
	.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
	.comm	_NETIF_F_RXHASH,4,2             ## @NETIF_F_RXHASH
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ## @NETIF_F_HW_VLAN_CTAG_TX
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.no_dead_strip	_sky2_set_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_set_features
_sky2_set_features:                     ; @sky2_set_features
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	ldr	w8, [x20]
	eor	w22, w8, w19
Lloh0:
	adrp	x23, _NETIF_F_RXCSUM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NETIF_F_RXCSUM@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w22, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x21, [x0, #8]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _SKY2_HW_NEW_LE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SKY2_HW_NEW_LE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _rxqaddr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rxqaddr@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w0, [x8, x9, lsl #2]
Lloh8:
	adrp	x8, _Q_CSR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _Q_CSR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_Q_ADDR
	mov	x1, x0
Lloh11:
	adrp	x8, _BMU_ENA_RX_CHKSUM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BMU_ENA_RX_CHKSUM@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh13:
	adrp	x10, _BMU_DIS_RX_CHKSUM@GOTPAGE
Lloh14:
	ldr	x10, [x10, _BMU_DIS_RX_CHKSUM@GOTPAGEOFF]
	tst	w9, w19
	csel	x8, x10, x8, eq
	ldr	w2, [x8]
	mov	x0, x21
	bl	_sky2_write32
LBB0_3:
Lloh15:
	adrp	x8, _NETIF_F_RXHASH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NETIF_F_RXHASH@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_rx_set_rss
LBB0_5:
Lloh18:
	adrp	x8, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w22
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_sky2_vlan_mode
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_SKY2_HW_NEW_LE,4,2             ; @SKY2_HW_NEW_LE
	.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
	.comm	_NETIF_F_RXHASH,4,2             ; @NETIF_F_RXHASH
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ; @NETIF_F_HW_VLAN_CTAG_TX
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.no_dead_strip	_sky2_set_features
.subsections_via_symbols
