	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_handle_feature
_mlxsw_sp_handle_feature:               ## @mlxsw_sp_handle_feature
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)
	movl	(%rdi), %eax
	xorl	%esi, %eax
	xorl	%r15d, %r15d
	testl	%edx, %eax
	je	LBB0_7
## %bb.1:
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r14
	xorl	%esi, %esi
	testl	%r12d, %edx
	setne	%sil
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r13d
	testl	%r12d, %ebx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmovneq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r13d, %r8d
	callq	_netdev_err
	movl	%r13d, %r15d
	jmp	LBB0_7
LBB0_3:
	testl	%r12d, %ebx
	je	LBB0_5
## %bb.4:
	orl	(%r14), %ebx
	jmp	LBB0_6
LBB0_5:
	notl	%ebx
	andl	(%r14), %ebx
LBB0_6:
	movl	%ebx, (%r14)
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s feature %pNF failed, err %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Enable"

L_.str.2:                               ## @.str.2
	.asciz	"Disable"

	.no_dead_strip	_mlxsw_sp_handle_feature
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_handle_feature
_mlxsw_sp_handle_feature:               ; @mlxsw_sp_handle_feature
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	w2, [sp, #12]
	ldr	w8, [x0]
	eor	w8, w8, w1
	tst	w8, w2
	b.eq	LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x19, x0
	and	w22, w2, w1
	cmp	w22, #0
	cset	w1, ne
	blr	x3
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x8, l_.str.2@PAGE
Lloh1:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w22, #0
	csel	x2, x9, x8, ne
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #12
	mov	x0, x19
	mov	x4, x20
	bl	_netdev_err
	b	LBB0_8
LBB0_3:
	mov	w20, #0
	b	LBB0_8
LBB0_4:
	cbz	w22, LBB0_6
; %bb.5:
	ldr	w8, [x19]
	orr	w8, w8, w21
	b	LBB0_7
LBB0_6:
	ldr	w8, [x19]
	bic	w8, w8, w21
LBB0_7:
	mov	w20, #0
	str	w8, [x19]
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s feature %pNF failed, err %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Enable"

l_.str.2:                               ; @.str.2
	.asciz	"Disable"

	.no_dead_strip	_mlxsw_sp_handle_feature
.subsections_via_symbols
