	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_nic_vport_affiliate_multiport ## -- Begin function mlx5_nic_vport_affiliate_multiport
	.p2align	4, 0x90
_mlx5_nic_vport_affiliate_multiport:    ## @mlx5_nic_vport_affiliate_multiport
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	_modify_nic_vport_context_in@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_kvzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_mlx5_nic_vport_enable_roce
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_modify_nic_vport_context_in@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_field_select@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	_MLX5_SET
	movq	_modify_nic_vport_context_in@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_nic_vport_context@GOTPCREL(%rip), %rax
	movl	4(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_vhca_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_MLX5_CAP_GEN
	movl	%ebx, %edi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_MLX5_SET
	movq	_modify_nic_vport_context_in@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_nic_vport_context@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_affiliate_nic_vport_criteria@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_MLX5_CAP_GEN
	movl	%ebx, %edi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_MLX5_SET
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_mlx5_modify_nic_vport_context
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mlx5_nic_vport_disable_roce
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%r13, %rdi
	callq	_kvfree
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_modify_nic_vport_context_in,4,2 ## @modify_nic_vport_context_in
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_field_select,4,2               ## @field_select
	.comm	_nic_vport_context,8,2          ## @nic_vport_context
	.comm	_vhca_id,4,2                    ## @vhca_id
	.comm	_affiliate_nic_vport_criteria,4,2 ## @affiliate_nic_vport_criteria
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_nic_vport_affiliate_multiport ; -- Begin function mlx5_nic_vport_affiliate_multiport
	.p2align	2
_mlx5_nic_vport_affiliate_multiport:    ; @mlx5_nic_vport_affiliate_multiport
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x25, _modify_nic_vport_context_in@GOTPAGE
Lloh1:
	ldr	x25, [x25, _modify_nic_vport_context_in@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_MLX5_ST_SZ_BYTES
	mov	x21, x0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kvzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_mlx5_nic_vport_enable_roce
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x25]
Lloh5:
	adrp	x8, _field_select@GOTPAGE
Lloh6:
	ldr	x8, [x8, _field_select@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, x20
	mov	w3, #1
	bl	_MLX5_SET
	ldr	w23, [x25]
Lloh8:
	adrp	x26, _nic_vport_context@GOTPAGE
Lloh9:
	ldr	x26, [x26, _nic_vport_context@GOTPAGEOFF]
	ldr	w24, [x26, #4]
Lloh10:
	adrp	x8, _vhca_id@GOTPAGE
Lloh11:
	ldr	x8, [x8, _vhca_id@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_MLX5_CAP_GEN
	mov	x3, x0
	mov	x0, x23
	mov	x1, x20
	mov	x2, x24
	bl	_MLX5_SET
	ldr	w22, [x25]
	ldr	w23, [x26]
Lloh13:
	adrp	x8, _affiliate_nic_vport_criteria@GOTPAGE
Lloh14:
	ldr	x8, [x8, _affiliate_nic_vport_criteria@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MLX5_CAP_GEN
	mov	x3, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	bl	_MLX5_SET
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mlx5_modify_nic_vport_context
	mov	x23, x0
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mlx5_nic_vport_disable_roce
LBB0_4:
	mov	x0, x20
	bl	_kvfree
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_modify_nic_vport_context_in,4,2 ; @modify_nic_vport_context_in
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_field_select,4,2               ; @field_select
	.comm	_nic_vport_context,8,2          ; @nic_vport_context
	.comm	_vhca_id,4,2                    ; @vhca_id
	.comm	_affiliate_nic_vport_criteria,4,2 ; @affiliate_nic_vport_criteria
.subsections_via_symbols
