	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_feature_lro
_set_feature_lro:                       ## @set_feature_lro
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r13
	callq	_netdev_priv
	movq	%rax, %r15
	movq	32(%rax), %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	%rax, %rdi
	callq	_mutex_lock
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.6:
	movq	24(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.7:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netdev_warn
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_1:
	leaq	8(%r15), %r14
	jmp	LBB0_2
LBB0_9:
	leaq	8(%r15), %r14
	movq	_MLX5E_PFLAG_RX_STRIDING_RQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_MLX5E_GET_PFLAG
	testl	%eax, %eax
	je	LBB0_10
LBB0_2:
	movq	_MLX5E_STATE_OPENED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$4, %rsi
	callq	_test_bit
	movl	%eax, %r13d
	movups	(%r14), %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	%r12d, -64(%rbp)
	movq	16(%r15), %rax
	movq	_MLX5_WQ_TYPE_CYCLIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_mlx5e_rx_mpwqe_is_linear_skb
	movq	%rax, %r12
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mlx5e_rx_mpwqe_is_linear_skb
	cmpq	%rax, %r12
	je	LBB0_5
LBB0_4:
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.11:
	movq	_mlx5e_modify_tirs_lro@GOTPCREL(%rip), %rdx
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mlx5e_safe_switch_channels
	jmp	LBB0_12
LBB0_5:
	movaps	-64(%rbp), %xmm0
	movups	%xmm0, (%r14)
	movq	%r15, %rdi
	callq	_mlx5e_modify_tirs_lro
LBB0_12:
	movl	%eax, %ebx
LBB0_13:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netdev_warn
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LRO is incompatible with AF_XDP (%hu XSKs are active)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX5E_PFLAG_RX_STRIDING_RQ,4,2 ## @MLX5E_PFLAG_RX_STRIDING_RQ
L_.str.1:                               ## @.str.1
	.asciz	"can't set LRO with legacy RQ\n"

	.comm	_MLX5E_STATE_OPENED,4,2         ## @MLX5E_STATE_OPENED
	.comm	_MLX5_WQ_TYPE_CYCLIC,8,3        ## @MLX5_WQ_TYPE_CYCLIC
	.no_dead_strip	_set_feature_lro
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_feature_lro
_set_feature_lro:                       ; @set_feature_lro
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x1
	mov	x23, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x20, [x0, #32]
	stp	xzr, xzr, [sp, #16]
	bl	_mutex_lock
	cbz	w22, LBB0_4
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.2:
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x23
	bl	_netdev_warn
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_4:
	add	x21, x19, #8
	b	LBB0_6
LBB0_5:
	add	x21, x19, #8
Lloh5:
	adrp	x8, _MLX5E_PFLAG_RX_STRIDING_RQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLX5E_PFLAG_RX_STRIDING_RQ@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_MLX5E_GET_PFLAG
	cbz	w0, LBB0_13
LBB0_6:
Lloh8:
	adrp	x8, _MLX5E_STATE_OPENED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX5E_STATE_OPENED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_test_bit
	mov	x23, x0
	ldr	q0, [x21]
	str	q0, [sp, #16]
	str	w22, [sp, #16]
	ldr	x8, [x19, #16]
Lloh11:
	adrp	x9, _MLX5_WQ_TYPE_CYCLIC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MLX5_WQ_TYPE_CYCLIC@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	cbz	w23, LBB0_10
LBB0_8:
Lloh14:
	adrp	x2, _mlx5e_modify_tirs_lro@GOTPAGE
Lloh15:
	ldr	x2, [x2, _mlx5e_modify_tirs_lro@GOTPAGEOFF]
	add	x1, sp, #16
	mov	x0, x19
	bl	_mlx5e_safe_switch_channels
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	mov	x1, x21
	mov	x2, #0
	bl	_mlx5e_rx_mpwqe_is_linear_skb
	mov	x22, x0
	add	x1, sp, #16
	mov	x0, x20
	mov	x2, #0
	bl	_mlx5e_rx_mpwqe_is_linear_skb
	cmp	x22, x0
	ccmp	w23, #0, #4, ne
	b.ne	LBB0_8
LBB0_10:
	ldr	q0, [sp, #16]
	str	q0, [x21]
	mov	x0, x19
	bl	_mlx5e_modify_tirs_lro
LBB0_11:
	mov	x20, x0
LBB0_12:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LRO is incompatible with AF_XDP (%hu XSKs are active)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX5E_PFLAG_RX_STRIDING_RQ,4,2 ; @MLX5E_PFLAG_RX_STRIDING_RQ
l_.str.1:                               ; @.str.1
	.asciz	"can't set LRO with legacy RQ\n"

	.comm	_MLX5E_STATE_OPENED,4,2         ; @MLX5E_STATE_OPENED
	.comm	_MLX5_WQ_TYPE_CYCLIC,8,3        ; @MLX5_WQ_TYPE_CYCLIC
	.no_dead_strip	_set_feature_lro
.subsections_via_symbols
