	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_modify_nic_vport_vlans    ## -- Begin function mlx5_modify_nic_vport_vlans
	.p2align	4, 0x90
_mlx5_modify_nic_vport_vlans:           ## @mlx5_modify_nic_vport_vlans
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_modify_nic_vport_context_out@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_DW
	movl	%eax, %r13d
	movl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_log_max_vlan_list@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MLX5_CAP_GEN
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	cmpl	%r15d, %edx
	jge	LBB0_2
## %bb.1:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_2:
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	_modify_nic_vport_context_in@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%r15d, %ebx
	movl	%eax, %r14d
	movq	_vlan_layout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %r15d
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	imull	%ebx, %r15d
	addl	%r14d, %r15d
	shll	$2, %r13d
	xorl	%ebx, %ebx
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r14
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	_modify_nic_vport_context_in@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_opcode@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_CMD_OP_MODIFY_NIC_VPORT_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_MLX5_SET
	movl	(%rbx), %edi
	movq	_field_select@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_MLX5_SET
	movl	(%rbx), %edi
	movq	_nic_vport_context@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_MLX5_ADDR_OF
	movq	%rax, %r14
	movl	(%rbx), %edi
	movq	_allowed_list_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_NVPRT_LIST_TYPE_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_MLX5_SET
	movl	(%rbx), %edi
	movq	_allowed_list_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_MLX5_SET
	testl	%ebx, %ebx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_6
## %bb.4:
	movl	%ebx, %r12d
	xorl	%r13d, %r13d
	movq	_vlan@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_nic_vport_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_current_uc_mac_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %edx
	movq	%r14, %rsi
	callq	_MLX5_ADDR_OF
	movq	_vlan_layout@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rbx), %edx
	movl	(%r15,%r13,4), %ecx
	movq	%rax, %rsi
	callq	_MLX5_SET
	incq	%r13
	cmpq	%r13, %r12
	jne	LBB0_5
LBB0_6:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_mlx5_cmd_exec
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_modify_nic_vport_context_out,4,2 ## @modify_nic_vport_context_out
	.comm	_log_max_vlan_list,4,2          ## @log_max_vlan_list
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_modify_nic_vport_context_in,4,2 ## @modify_nic_vport_context_in
	.comm	_vlan_layout,4,2                ## @vlan_layout
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_opcode,4,2                     ## @opcode
	.comm	_MLX5_CMD_OP_MODIFY_NIC_VPORT_CONTEXT,4,2 ## @MLX5_CMD_OP_MODIFY_NIC_VPORT_CONTEXT
	.comm	_field_select,4,2               ## @field_select
	.comm	_nic_vport_context,4,2          ## @nic_vport_context
	.comm	_allowed_list_type,4,2          ## @allowed_list_type
	.comm	_MLX5_NVPRT_LIST_TYPE_VLAN,4,2  ## @MLX5_NVPRT_LIST_TYPE_VLAN
	.comm	_allowed_list_size,4,2          ## @allowed_list_size
	.comm	_current_uc_mac_address,8,3     ## @current_uc_mac_address
	.comm	_vlan,4,2                       ## @vlan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_modify_nic_vport_vlans    ; -- Begin function mlx5_modify_nic_vport_vlans
	.p2align	2
_mlx5_modify_nic_vport_vlans:           ; @mlx5_modify_nic_vport_vlans
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _modify_nic_vport_context_out@GOTPAGE
Lloh4:
	ldr	x8, [x8, _modify_nic_vport_context_out@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_MLX5_ST_SZ_DW
	mov	x23, x0
	mov	w8, w0
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x8, _log_max_vlan_list@GOTPAGE
Lloh9:
	ldr	x8, [x8, _log_max_vlan_list@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MLX5_CAP_GEN
	mov	w8, #1
	lsl	w8, w8, w0
	cmp	w8, w22
	b.ge	LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
Lloh13:
	adrp	x26, _modify_nic_vport_context_in@GOTPAGE
Lloh14:
	ldr	x26, [x26, _modify_nic_vport_context_in@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_MLX5_ST_SZ_BYTES
	mov	x24, x0
Lloh15:
	adrp	x27, _vlan_layout@GOTPAGE
Lloh16:
	ldr	x27, [x27, _vlan_layout@GOTPAGEOFF]
	ldr	w0, [x27]
	bl	_MLX5_ST_SZ_BYTES
	madd	w24, w0, w22, w24
	lsl	w23, w23, #2
	mov	x0, x21
	mov	w1, #0
	mov	x2, x23
	bl	_memset
Lloh17:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x25, x0
	stp	w24, w23, [x29, #-104]          ; 8-byte Folded Spill
	stur	x19, [x29, #-96]                ; 8-byte Folded Spill
	ldr	w0, [x26]
Lloh20:
	adrp	x8, _opcode@GOTPAGE
Lloh21:
	ldr	x8, [x8, _opcode@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _MLX5_CMD_OP_MODIFY_NIC_VPORT_CONTEXT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MLX5_CMD_OP_MODIFY_NIC_VPORT_CONTEXT@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x1, x25
	bl	_MLX5_SET
	ldr	w0, [x26]
Lloh26:
	adrp	x8, _field_select@GOTPAGE
Lloh27:
	ldr	x8, [x8, _field_select@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x1, x25
	mov	w3, #1
	bl	_MLX5_SET
	ldr	w0, [x26]
Lloh29:
	adrp	x28, _nic_vport_context@GOTPAGE
Lloh30:
	ldr	x28, [x28, _nic_vport_context@GOTPAGEOFF]
	ldr	w2, [x28]
	mov	x1, x25
	bl	_MLX5_ADDR_OF
	mov	x26, x0
	ldr	w0, [x28]
Lloh31:
	adrp	x8, _allowed_list_type@GOTPAGE
Lloh32:
	ldr	x8, [x8, _allowed_list_type@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x8, _MLX5_NVPRT_LIST_TYPE_VLAN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MLX5_NVPRT_LIST_TYPE_VLAN@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
	mov	x1, x26
	bl	_MLX5_SET
	ldr	w0, [x28]
Lloh37:
	adrp	x8, _allowed_list_size@GOTPAGE
Lloh38:
	ldr	x8, [x8, _allowed_list_size@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x1, x26
	mov	x3, x22
	bl	_MLX5_SET
	cmp	w22, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x23, #0
	mov	w8, w22
	lsl	x22, x8, #2
Lloh40:
	adrp	x24, _current_uc_mac_address@GOTPAGE
Lloh41:
	ldr	x24, [x24, _current_uc_mac_address@GOTPAGEOFF]
Lloh42:
	adrp	x19, _vlan@GOTPAGE
Lloh43:
	ldr	x19, [x19, _vlan@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28]
	ldr	x8, [x24]
	ldr	w2, [x8, x23]
	mov	x1, x26
	bl	_MLX5_ADDR_OF
	mov	x1, x0
	ldr	w0, [x27]
	ldr	w2, [x19]
	ldr	w3, [x20, x23]
	bl	_MLX5_SET
	add	x23, x23, #4
	cmp	x22, x23
	b.ne	LBB0_5
LBB0_6:
	ldur	x0, [x29, #-96]                 ; 8-byte Folded Reload
	mov	x1, x25
	ldp	w2, w4, [x29, #-104]            ; 8-byte Folded Reload
	mov	x3, x21
	bl	_mlx5_cmd_exec
	mov	x19, x0
	mov	x0, x25
	bl	_kfree
	b	LBB0_9
LBB0_7:
Lloh44:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_modify_nic_vport_context_out,4,2 ; @modify_nic_vport_context_out
	.comm	_log_max_vlan_list,4,2          ; @log_max_vlan_list
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_modify_nic_vport_context_in,4,2 ; @modify_nic_vport_context_in
	.comm	_vlan_layout,4,2                ; @vlan_layout
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_opcode,4,2                     ; @opcode
	.comm	_MLX5_CMD_OP_MODIFY_NIC_VPORT_CONTEXT,4,2 ; @MLX5_CMD_OP_MODIFY_NIC_VPORT_CONTEXT
	.comm	_field_select,4,2               ; @field_select
	.comm	_nic_vport_context,4,2          ; @nic_vport_context
	.comm	_allowed_list_type,4,2          ; @allowed_list_type
	.comm	_MLX5_NVPRT_LIST_TYPE_VLAN,4,2  ; @MLX5_NVPRT_LIST_TYPE_VLAN
	.comm	_allowed_list_size,4,2          ; @allowed_list_size
	.comm	_current_uc_mac_address,8,3     ; @current_uc_mac_address
	.comm	_vlan,4,2                       ; @vlan
.subsections_via_symbols
