	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s2io_ethtool_set_flags
_s2io_ethtool_set_flags:                ## @s2io_ethtool_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_ETH_FLAG_LRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	notl	%ecx
	testl	%ebx, %ecx
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	testl	%ebx, %eax
	je	LBB0_6
## %bb.3:
	movq	_lro_enable@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.4:
	movl	(%r15), %eax
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	testl	%eax, %ecx
	jne	LBB0_13
## %bb.5:
	orl	%eax, %ecx
	movl	%ecx, (%r15)
	jmp	LBB0_9
LBB0_6:
	movl	(%r15), %eax
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_7
## %bb.8:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r15)
LBB0_9:
	movq	%r15, %rdi
	callq	_netif_running
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%r14, %rdi
	callq	_s2io_stop_all_tx_queue
	movq	%r14, %rdi
	callq	_s2io_card_down
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%r15), %eax
	setne	%cl
	movl	%ecx, (%r14)
	movq	%r14, %rdi
	callq	_s2io_card_up
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_s2io_reset
	movl	%r15d, %ebx
	jmp	LBB0_13
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_12:
	movq	%r14, %rdi
	callq	_s2io_start_all_tx_queue
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_FLAG_LRO,4,2               ## @ETH_FLAG_LRO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_lro_enable,8,3                 ## @lro_enable
	.comm	_NETIF_F_LRO,4,2                ## @NETIF_F_LRO
	.no_dead_strip	_s2io_ethtool_set_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s2io_ethtool_set_flags
_s2io_ethtool_set_flags:                ; @s2io_ethtool_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
Lloh0:
	adrp	x8, _ETH_FLAG_LRO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_FLAG_LRO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bics	wzr, w21, w8
	b.eq	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_2:
	mov	x19, x0
	tst	w8, w21
	b.eq	LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _lro_enable@GOTPAGE
Lloh7:
	ldr	x8, [x8, _lro_enable@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.4:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _NETIF_F_LRO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NETIF_F_LRO@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.5:
	orr	w8, w9, w8
	b	LBB0_8
LBB0_6:
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _NETIF_F_LRO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NETIF_F_LRO@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.7:
	bic	w8, w8, w9
LBB0_8:
	str	w8, [x20]
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_s2io_stop_all_tx_queue
	mov	x0, x19
	bl	_s2io_card_down
	ldr	w8, [x20]
Lloh15:
	adrp	x9, _NETIF_F_LRO@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NETIF_F_LRO@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x19]
	mov	x0, x19
	bl	_s2io_card_up
	mov	x20, x0
	cbz	w0, LBB0_13
; %bb.10:
	mov	x0, x19
	bl	_s2io_reset
	b	LBB0_12
LBB0_11:
	mov	w20, #0
LBB0_12:
	mov	x0, x20
	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_13:
	mov	x0, x19
	bl	_s2io_start_all_tx_queue
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_FLAG_LRO,4,2               ; @ETH_FLAG_LRO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_lro_enable,8,3                 ; @lro_enable
	.comm	_NETIF_F_LRO,4,2                ; @NETIF_F_LRO
	.no_dead_strip	_s2io_ethtool_set_flags
.subsections_via_symbols
