	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_set_features
_mlxsw_sp_set_features:                 ## @mlxsw_sp_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, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %r12d
	movq	_NETIF_F_HW_TC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mlxsw_sp_feature_hw_tc@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_mlxsw_sp_handle_feature
	movl	%eax, %r15d
	movq	_NETIF_F_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mlxsw_sp_feature_loopback@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mlxsw_sp_handle_feature
	orl	%r15d, %eax
	je	LBB0_1
## %bb.2:
	movl	%r12d, (%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_HW_TC,4,2              ## @NETIF_F_HW_TC
	.comm	_mlxsw_sp_feature_hw_tc,4,2     ## @mlxsw_sp_feature_hw_tc
	.comm	_NETIF_F_LOOPBACK,4,2           ## @NETIF_F_LOOPBACK
	.comm	_mlxsw_sp_feature_loopback,4,2  ## @mlxsw_sp_feature_loopback
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mlxsw_sp_set_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_set_features
_mlxsw_sp_set_features:                 ; @mlxsw_sp_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	x20, x1
	mov	x19, x0
	ldr	w22, [x0]
Lloh0:
	adrp	x8, _NETIF_F_HW_TC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_F_HW_TC@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _mlxsw_sp_feature_hw_tc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mlxsw_sp_feature_hw_tc@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	bl	_mlxsw_sp_handle_feature
	mov	x21, x0
Lloh6:
	adrp	x8, _NETIF_F_LOOPBACK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NETIF_F_LOOPBACK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _mlxsw_sp_feature_loopback@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mlxsw_sp_feature_loopback@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_mlxsw_sp_handle_feature
	orr	w8, w0, w21
	cbz	w8, LBB0_2
; %bb.1:
	str	w22, [x19]
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	w0, #0
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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_HW_TC,4,2              ; @NETIF_F_HW_TC
	.comm	_mlxsw_sp_feature_hw_tc,4,2     ; @mlxsw_sp_feature_hw_tc
	.comm	_NETIF_F_LOOPBACK,4,2           ; @NETIF_F_LOOPBACK
	.comm	_mlxsw_sp_feature_loopback,4,2  ; @mlxsw_sp_feature_loopback
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mlxsw_sp_set_features
.subsections_via_symbols
