	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_deactivate_lag
_mlx5_deactivate_lag:                   ## @mlx5_deactivate_lag
	.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	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	callq	___mlx5_lag_is_roce
	movl	%eax, %r15d
	movq	_MLX5_LAG_MODE_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_mlx5_cmd_destroy_lag
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	testl	%r15d, %r15d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%r14, %rdi
	callq	_mlx5_core_err
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_LAG_MODE_FLAGS,4,2        ## @MLX5_LAG_MODE_FLAGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to deactivate RoCE LAG; driver restart required\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to deactivate VF LAG; driver restart required\nMake sure all VFs are unbound prior to VF LAG activation or deactivation\n"

	.no_dead_strip	_mlx5_deactivate_lag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_deactivate_lag
_mlx5_deactivate_lag:                   ; @mlx5_deactivate_lag
	.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, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	bl	___mlx5_lag_is_roce
	mov	x20, x0
Lloh0:
	adrp	x8, _MLX5_LAG_MODE_FLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_LAG_MODE_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
	mov	x0, x19
	bl	_mlx5_cmd_destroy_lag
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w20, #0
	csel	x1, x9, x8, eq
	mov	x0, x19
	bl	_mlx5_core_err
LBB0_2:
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_LAG_MODE_FLAGS,4,2        ; @MLX5_LAG_MODE_FLAGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to deactivate RoCE LAG; driver restart required\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to deactivate VF LAG; driver restart required\nMake sure all VFs are unbound prior to VF LAG activation or deactivation\n"

	.no_dead_strip	_mlx5_deactivate_lag
.subsections_via_symbols
