	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_modify_lag                ## -- Begin function mlx5_modify_lag
	.p2align	4, 0x90
_mlx5_modify_lag:                       ## @mlx5_modify_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rax
	movq	%rdi, %rbx
	movq	8(%rdi), %rcx
	movq	(%rcx), %r14
	leaq	-32(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	movq	%rax, %rdi
	callq	_mlx5_infer_tx_affinity_mapping
	movq	-32(%rbp), %rdx
	movq	(%rbx), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_2
## %bb.1:
	movq	-24(%rbp), %rcx
	cmpq	8(%rax), %rcx
	je	LBB0_4
LBB0_2:
	movq	%rdx, (%rax)
	movq	-24(%rbp), %rcx
	movq	%rcx, 8(%rax)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_mlx5_core_info
	movq	-32(%rbp), %rsi
	movq	-24(%rbp), %rdx
	movq	%r14, %rdi
	callq	_mlx5_cmd_modify_lag
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_err
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"modify lag map port 1:%d port 2:%d"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to modify LAG (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_modify_lag                ; -- Begin function mlx5_modify_lag
	.p2align	2
_mlx5_modify_lag:                       ; @mlx5_modify_lag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x8, x1
	mov	x20, x0
	ldr	x9, [x0, #8]
	ldr	x19, [x9]
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x8
	bl	_mlx5_infer_tx_affinity_mapping
	ldr	x2, [sp, #8]
	ldr	x8, [x20]
	ldr	x9, [x8]
	cmp	x2, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x9, [sp]
	ldr	x10, [x8, #8]
	cmp	x9, x10
	b.eq	LBB0_4
LBB0_2:
	str	x2, [x8]
	ldr	x3, [sp]
	str	x3, [x8, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_info
	ldp	x2, x1, [sp]
	mov	x0, x19
	bl	_mlx5_cmd_modify_lag
	cbz	w0, LBB0_4
; %bb.3:
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"modify lag map port 1:%d port 2:%d"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to modify LAG (%d)\n"

.subsections_via_symbols
