	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_lag_dev_add_pf
_mlx5_lag_dev_add_pf:                   ## @mlx5_lag_dev_add_pf
	.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
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rsi), %rax
	movl	(%rax), %edi
	callq	_PCI_FUNC
	movl	%eax, %ebx
	movq	_MLX5_MAX_PORTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jae	LBB0_1
## %bb.2:
	movq	_lag_mutex@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	8(%r14), %rax
	movl	%ebx, %ecx
	shlq	$4, %rcx
	movq	%r12, 8(%rax,%rcx)
	movq	%r15, (%rax,%rcx)
	movq	(%r14), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax,%rcx)
	movq	%r14, (%r12)
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_MAX_PORTS,4,2             ## @MLX5_MAX_PORTS
	.comm	_lag_mutex,4,2                  ## @lag_mutex
	.no_dead_strip	_mlx5_lag_dev_add_pf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_lag_dev_add_pf
_mlx5_lag_dev_add_pf:                   ; @mlx5_lag_dev_add_pf
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #8]
	ldr	w0, [x8]
	bl	_PCI_FUNC
Lloh0:
	adrp	x8, _MLX5_MAX_PORTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_MAX_PORTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.hs	LBB0_2
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x23, _lag_mutex@GOTPAGE
Lloh4:
	ldr	x23, [x23, _lag_mutex@GOTPAGEOFF]
	mov	x0, x23
	bl	_mutex_lock
	mov	w8, w22
	ldp	x10, x9, [x20]
	lsl	x8, x8, #4
	add	x9, x9, x8
	stp	x21, x19, [x9]
	add	x8, x10, x8
	stp	xzr, xzr, [x8]
	str	x20, [x19]
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mutex_unlock
LBB0_2:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_MAX_PORTS,4,2             ; @MLX5_MAX_PORTS
	.comm	_lag_mutex,4,2                  ; @lag_mutex
	.no_dead_strip	_mlx5_lag_dev_add_pf
.subsections_via_symbols
