	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_set_features
_lan78xx_set_features:                  ## @lan78xx_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	(%rax), %rbx
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movq	_RFE_CTL_TCPUDP_COE_@GOTPCREL(%rip), %rdx
	movq	_RFE_CTL_IP_COE_@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rdx), %eax
	testl	%r12d, (%rcx)
	je	LBB0_2
## %bb.1:
	orl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_RFE_CTL_ICMP_COE_@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_RFE_CTL_IGMP_COE_@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_RFE_CTL_ICMP_COE_@GOTPCREL(%rip), %rcx
	movq	_RFE_CTL_IGMP_COE_@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, %eax
LBB0_3:
	movl	%eax, (%rbx)
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rdx
	movq	_RFE_CTL_VLAN_STRIP_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r12d, (%rdx)
	je	LBB0_5
## %bb.4:
	orl	%ecx, %eax
	jmp	LBB0_6
LBB0_5:
	notl	%ecx
	andl	%ecx, %eax
LBB0_6:
	movl	%eax, (%rbx)
	movq	_NETIF_F_HW_VLAN_CTAG_FILTER@GOTPCREL(%rip), %rdx
	movq	_RFE_CTL_VLAN_FILTER_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r12d, (%rdx)
	je	LBB0_8
## %bb.7:
	orl	%ecx, %eax
	jmp	LBB0_9
LBB0_8:
	notl	%ecx
	andl	%ecx, %eax
LBB0_9:
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_RFE_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_lan78xx_write_reg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_RFE_CTL_TCPUDP_COE_,4,2        ## @RFE_CTL_TCPUDP_COE_
	.comm	_RFE_CTL_IP_COE_,4,2            ## @RFE_CTL_IP_COE_
	.comm	_RFE_CTL_ICMP_COE_,4,2          ## @RFE_CTL_ICMP_COE_
	.comm	_RFE_CTL_IGMP_COE_,4,2          ## @RFE_CTL_IGMP_COE_
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_RFE_CTL_VLAN_STRIP_,4,2        ## @RFE_CTL_VLAN_STRIP_
	.comm	_NETIF_F_HW_VLAN_CTAG_FILTER,4,2 ## @NETIF_F_HW_VLAN_CTAG_FILTER
	.comm	_RFE_CTL_VLAN_FILTER_,4,2       ## @RFE_CTL_VLAN_FILTER_
	.comm	_RFE_CTL,4,2                    ## @RFE_CTL
	.no_dead_strip	_lan78xx_set_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan78xx_set_features
_lan78xx_set_features:                  ; @lan78xx_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	x21, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x22, [x8]
	add	x20, x22, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _NETIF_F_RXCSUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _RFE_CTL_TCPUDP_COE_@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RFE_CTL_TCPUDP_COE_@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x10, _RFE_CTL_IP_COE_@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RFE_CTL_IP_COE_@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w8, w10, w8
	tst	w9, w21
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x22]
	orr	w8, w8, w9
	str	w8, [x22]
Lloh9:
	adrp	x9, _RFE_CTL_ICMP_COE_@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RFE_CTL_ICMP_COE_@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _RFE_CTL_IGMP_COE_@GOTPAGE
Lloh13:
	ldr	x10, [x10, _RFE_CTL_IGMP_COE_@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w8, w8, w10
	b	LBB0_3
LBB0_2:
	ldr	w9, [x22]
	bic	w8, w9, w8
	str	w8, [x22]
Lloh15:
	adrp	x9, _RFE_CTL_ICMP_COE_@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RFE_CTL_ICMP_COE_@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _RFE_CTL_IGMP_COE_@GOTPAGE
Lloh19:
	ldr	x10, [x10, _RFE_CTL_IGMP_COE_@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w8, w8, w9
LBB0_3:
	str	w8, [x22]
Lloh21:
	adrp	x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x9]
Lloh24:
	adrp	x9, _RFE_CTL_VLAN_STRIP_@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RFE_CTL_VLAN_STRIP_@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w10, w21
	b.eq	LBB0_5
; %bb.4:
	orr	w8, w8, w9
	b	LBB0_6
LBB0_5:
	bic	w8, w8, w9
LBB0_6:
	str	w8, [x22]
Lloh27:
	adrp	x9, _NETIF_F_HW_VLAN_CTAG_FILTER@GOTPAGE
Lloh28:
	ldr	x9, [x9, _NETIF_F_HW_VLAN_CTAG_FILTER@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x9]
Lloh30:
	adrp	x9, _RFE_CTL_VLAN_FILTER_@GOTPAGE
Lloh31:
	ldr	x9, [x9, _RFE_CTL_VLAN_FILTER_@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w10, w21
	b.eq	LBB0_8
; %bb.7:
	orr	w8, w8, w9
	b	LBB0_9
LBB0_8:
	bic	w8, w8, w9
LBB0_9:
	str	w8, [x22]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh33:
	adrp	x8, _RFE_CTL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RFE_CTL@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_lan78xx_write_reg
	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
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_RFE_CTL_TCPUDP_COE_,4,2        ; @RFE_CTL_TCPUDP_COE_
	.comm	_RFE_CTL_IP_COE_,4,2            ; @RFE_CTL_IP_COE_
	.comm	_RFE_CTL_ICMP_COE_,4,2          ; @RFE_CTL_ICMP_COE_
	.comm	_RFE_CTL_IGMP_COE_,4,2          ; @RFE_CTL_IGMP_COE_
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_RFE_CTL_VLAN_STRIP_,4,2        ; @RFE_CTL_VLAN_STRIP_
	.comm	_NETIF_F_HW_VLAN_CTAG_FILTER,4,2 ; @NETIF_F_HW_VLAN_CTAG_FILTER
	.comm	_RFE_CTL_VLAN_FILTER_,4,2       ; @RFE_CTL_VLAN_FILTER_
	.comm	_RFE_CTL,4,2                    ; @RFE_CTL
	.no_dead_strip	_lan78xx_set_features
.subsections_via_symbols
