	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_nic_set_flags
_netxen_nic_set_flags:                  ## @netxen_nic_set_flags
	.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
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_ethtool_op_get_flags
	movq	_ETH_FLAG_LRO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	xorl	%r12d, %eax
	testl	%edx, %eax
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_NX_FW_CAPABILITY_HW_LRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_1
## %bb.5:
	cmpl	$0, 4(%r14)
	je	LBB0_9
## %bb.6:
	testl	%r12d, %ecx
	setne	%sil
	movl	(%r15), %edi
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%edi, %eax
	sete	%dl
	xorl	%ebx, %ebx
	xorb	%sil, %dl
	jne	LBB0_3
## %bb.7:
	movl	%eax, %edx
	notl	%edx
	andl	%edi, %edx
	orl	%edi, %eax
	testl	%r12d, %ecx
	movq	_NETXEN_NIC_LRO_DISABLED@GOTPCREL(%rip), %rcx
	cmovneq	_NETXEN_NIC_LRO_ENABLED@GOTPCREL(%rip), %rcx
	cmovel	%edx, %eax
	movl	(%rcx), %r12d
	movl	%eax, (%r15)
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_netxen_config_hw_lro
	testq	%rax, %rax
	je	LBB0_10
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_info
	jmp	LBB0_1
LBB0_10:
	testl	%r12d, %r12d
	jne	LBB0_3
## %bb.11:
	movq	%r14, %rdi
	callq	_netxen_send_lro_cleanup
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_FLAG_LRO,4,2               ## @ETH_FLAG_LRO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NX_FW_CAPABILITY_HW_LRO,4,2    ## @NX_FW_CAPABILITY_HW_LRO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx csum is off, cannot toggle LRO\n"

	.comm	_NETIF_F_LRO,4,2                ## @NETIF_F_LRO
	.comm	_NETXEN_NIC_LRO_ENABLED,4,2     ## @NETXEN_NIC_LRO_ENABLED
	.comm	_NETXEN_NIC_LRO_DISABLED,4,2    ## @NETXEN_NIC_LRO_DISABLED
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_netxen_nic_set_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_nic_set_flags
_netxen_nic_set_flags:                  ; @netxen_nic_set_flags
	.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
	mov	x0, x20
	bl	_ethtool_op_get_flags
Lloh0:
	adrp	x8, _ETH_FLAG_LRO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_FLAG_LRO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	eor	w9, w0, w21
	bics	wzr, w9, w8
	b.eq	LBB0_4
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
LBB0_4:
	ldr	w9, [x19]
Lloh5:
	adrp	x10, _NX_FW_CAPABILITY_HW_LRO@GOTPAGE
Lloh6:
	ldr	x10, [x10, _NX_FW_CAPABILITY_HW_LRO@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_1
; %bb.5:
	ldr	w9, [x19, #4]
	cbz	w9, LBB0_8
; %bb.6:
	ands	w8, w8, w21
	cset	w11, ne
	ldr	w9, [x20]
Lloh8:
	adrp	x10, _NETIF_F_LRO@GOTPAGE
Lloh9:
	ldr	x10, [x10, _NETIF_F_LRO@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w12, eq
	eor	w11, w11, w12
	tbz	w11, #0, LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_3
LBB0_8:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
	b	LBB0_1
LBB0_9:
	bic	w11, w9, w10
	orr	w9, w10, w9
Lloh13:
	adrp	x10, _NETXEN_NIC_LRO_ENABLED@GOTPAGE
Lloh14:
	ldr	x10, [x10, _NETXEN_NIC_LRO_ENABLED@GOTPAGEOFF]
	cmp	w8, #0
	csel	w8, w9, w11, ne
Lloh15:
	adrp	x9, _NETXEN_NIC_LRO_DISABLED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NETXEN_NIC_LRO_DISABLED@GOTPAGEOFF]
	csel	x9, x10, x9, ne
	ldr	w21, [x9]
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x21
	bl	_netxen_config_hw_lro
	cbz	x0, LBB0_11
LBB0_10:
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
	cbnz	w21, LBB0_7
; %bb.12:
	mov	x0, x19
	bl	_netxen_send_lro_cleanup
	cbnz	x0, LBB0_10
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_FLAG_LRO,4,2               ; @ETH_FLAG_LRO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NX_FW_CAPABILITY_HW_LRO,4,2    ; @NX_FW_CAPABILITY_HW_LRO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx csum is off, cannot toggle LRO\n"

	.comm	_NETIF_F_LRO,4,2                ; @NETIF_F_LRO
	.comm	_NETXEN_NIC_LRO_ENABLED,4,2     ; @NETXEN_NIC_LRO_ENABLED
	.comm	_NETXEN_NIC_LRO_DISABLED,4,2    ; @NETXEN_NIC_LRO_DISABLED
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_netxen_nic_set_flags
.subsections_via_symbols
