	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_lag_add                   ## -- Begin function mlx5_lag_add
	.p2align	4, 0x90
_mlx5_lag_add:                          ## @mlx5_lag_add
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_vport_group_manager@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	_lag_master@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	_num_lag_ports@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MLX5_CAP_GEN
	movq	_MLX5_MAX_PORTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.3:
	movq	%rbx, %rdi
	callq	_mlx5_get_next_phys_dev
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rax), %r15
	testq	%r15, %r15
	jne	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	callq	_mlx5_lag_dev_alloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_11
LBB0_6:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_mlx5_lag_dev_add_pf
	cmpq	$0, (%r15)
	jne	LBB0_9
## %bb.7:
	movq	_mlx5_lag_netdev_event@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_register_netdevice_notifier
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	$0, (%r15)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_mlx5_core_err
LBB0_9:
	movq	%r15, %rdi
	callq	_mlx5_lag_mp_init
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx5_core_err                  ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx5_core_err                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vport_group_manager,4,2        ## @vport_group_manager
	.comm	_lag_master,4,2                 ## @lag_master
	.comm	_num_lag_ports,4,2              ## @num_lag_ports
	.comm	_MLX5_MAX_PORTS,8,3             ## @MLX5_MAX_PORTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to alloc lag dev\n"

	.comm	_mlx5_lag_netdev_event,8,3      ## @mlx5_lag_netdev_event
L_.str.1:                               ## @.str.1
	.asciz	"Failed to register LAG netdev notifier\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to init multipath lag err=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_lag_add                   ; -- Begin function mlx5_lag_add
	.p2align	2
_mlx5_lag_add:                          ; @mlx5_lag_add
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _vport_group_manager@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vport_group_manager@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_11
; %bb.1:
Lloh3:
	adrp	x8, _lag_master@GOTPAGE
Lloh4:
	ldr	x8, [x8, _lag_master@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_11
; %bb.2:
Lloh6:
	adrp	x8, _num_lag_ports@GOTPAGE
Lloh7:
	ldr	x8, [x8, _num_lag_ports@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MLX5_CAP_GEN
Lloh9:
	adrp	x8, _MLX5_MAX_PORTS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX5_MAX_PORTS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.3:
	mov	x0, x19
	bl	_mlx5_get_next_phys_dev
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x21, [x0]
	cbnz	x21, LBB0_6
LBB0_5:
	bl	_mlx5_lag_dev_alloc
	mov	x21, x0
	cbz	x0, LBB0_12
LBB0_6:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_mlx5_lag_dev_add_pf
	ldr	x8, [x21]
	cbnz	x8, LBB0_9
; %bb.7:
Lloh12:
	adrp	x8, _mlx5_lag_netdev_event@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mlx5_lag_netdev_event@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x21]
	mov	x0, x21
	bl	_register_netdevice_notifier
	cbz	x0, LBB0_9
; %bb.8:
	str	xzr, [x21]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
LBB0_9:
	mov	x0, x21
	bl	_mlx5_lag_mp_init
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_11
; %bb.10:
	str	x0, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
LBB0_11:
	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
LBB0_12:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	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
	b	_mlx5_core_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_vport_group_manager,4,2        ; @vport_group_manager
	.comm	_lag_master,4,2                 ; @lag_master
	.comm	_num_lag_ports,4,2              ; @num_lag_ports
	.comm	_MLX5_MAX_PORTS,8,3             ; @MLX5_MAX_PORTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to alloc lag dev\n"

	.comm	_mlx5_lag_netdev_event,8,3      ; @mlx5_lag_netdev_event
l_.str.1:                               ; @.str.1
	.asciz	"Failed to register LAG netdev notifier\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to init multipath lag err=%d\n"

.subsections_via_symbols
