	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_nic_set_rx_csum
_netxen_nic_set_rx_csum:                ## @netxen_nic_set_rx_csum
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rbx, (%r14)
	jmp	LBB0_7
LBB0_2:
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, (%r15)
	je	LBB0_6
## %bb.3:
	movq	_NETXEN_NIC_LRO_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_netxen_config_hw_lro
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_5:
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_netxen_send_lro_cleanup
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_info
LBB0_6:
	movq	$0, (%r14)
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_LRO,4,2                ## @NETIF_F_LRO
	.comm	_NETXEN_NIC_LRO_DISABLED,4,2    ## @NETXEN_NIC_LRO_DISABLED
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disabling LRO as rx_csum is off\n"

	.no_dead_strip	_netxen_nic_set_rx_csum
.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_rx_csum
_netxen_nic_set_rx_csum:                ; @netxen_nic_set_rx_csum
	.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
	cbz	x21, LBB0_2
; %bb.1:
	mov	w0, #0
	str	x21, [x19]
	b	LBB0_7
LBB0_2:
	ldr	w8, [x20]
Lloh0:
	adrp	x21, _NETIF_F_LRO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NETIF_F_LRO@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _NETXEN_NIC_LRO_DISABLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NETXEN_NIC_LRO_DISABLED@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_netxen_config_hw_lro
	cbz	x0, LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	ldr	w8, [x21]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	mov	x0, x19
	bl	_netxen_send_lro_cleanup
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
LBB0_6:
	mov	w0, #0
	str	xzr, [x19]
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_LRO,4,2                ; @NETIF_F_LRO
	.comm	_NETXEN_NIC_LRO_DISABLED,4,2    ; @NETXEN_NIC_LRO_DISABLED
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disabling LRO as rx_csum is off\n"

	.no_dead_strip	_netxen_nic_set_rx_csum
.subsections_via_symbols
