	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_set_vf_vlan               ## -- Begin function mlx4_set_vf_vlan
	.p2align	4, 0x90
_mlx4_set_vf_vlan:                      ## @mlx4_set_vf_vlan
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r13d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_mlx4_priv
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_mlx4_is_master
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_MLX4_DEV_CAP_FLAG2_VLAN_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.4:
	cmpl	$4095, %r13d                    ## imm = 0xFFF
	jg	LBB0_6
## %bb.5:
	cmpl	$8, %r14d
	jge	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_mlx4_get_slave_indx
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movq	8(%r12), %rdx
	movq	16(%r12), %rcx
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	movq	(%rcx,%rsi,8), %rax
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %rcx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdx,%rsi,8), %rdx
	movl	%r14d, %esi
	orl	%r13d, %esi
	jne	LBB0_10
## %bb.9:
	movq	_MLX4_VGT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r13d
LBB0_10:
	movl	%r13d, (%rax,%rcx,8)
	movl	%r14d, 4(%rax,%rcx,8)
	movl	(%rdx,%rcx,4), %edi
	movl	%r13d, %esi
	callq	_calculate_transition
	movq	(%r12), %rcx
	xorl	%ebx, %ebx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_14
## %bb.11:
	movq	_MLX4_DEV_CAP_FLAG2_UPDATE_QP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r15)
	je	LBB0_14
## %bb.12:
	movq	_MLX4_VLAN_TRANSITION_VST_VST@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_mlx4_info
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	callq	_mlx4_master_immediate_activate_vlan_qos
	jmp	LBB0_14
LBB0_2:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_DEV_CAP_FLAG2_VLAN_CONTROL,4,2 ## @MLX4_DEV_CAP_FLAG2_VLAN_CONTROL
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX4_VGT,4,2                   ## @MLX4_VGT
	.comm	_MLX4_DEV_CAP_FLAG2_UPDATE_QP,4,2 ## @MLX4_DEV_CAP_FLAG2_UPDATE_QP
	.comm	_MLX4_VLAN_TRANSITION_VST_VST,4,2 ## @MLX4_VLAN_TRANSITION_VST_VST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"updating vf %d port %d config params immediately\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_set_vf_vlan               ; -- Begin function mlx4_set_vf_vlan
	.p2align	2
_mlx4_set_vf_vlan:                      ; @mlx4_set_vf_vlan
	.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	x23, x4
	mov	x25, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	bl	_mlx4_priv
	mov	x21, x0
	mov	x0, x22
	bl	_mlx4_is_master
	cbz	w0, LBB0_10
; %bb.1:
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _MLX4_DEV_CAP_FLAG2_VLAN_CONTROL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG2_VLAN_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.2:
	cmp	w25, #4095
	b.gt	LBB0_11
; %bb.3:
	cmp	w23, #8
	b.ge	LBB0_11
; %bb.4:
	mov	x0, x22
	mov	x1, x20
	bl	_mlx4_get_slave_indx
	tbnz	w0, #31, LBB0_11
; %bb.5:
	mov	x24, x0
	mov	w8, w0
	lsl	x26, x8, #3
	ldp	x9, x8, [x21, #8]
	ldr	x8, [x8, x26]
	ldr	x9, [x9, x26]
	orr	w10, w23, w25
Lloh3:
	adrp	x11, _MLX4_VGT@GOTPAGE
Lloh4:
	ldr	x11, [x11, _MLX4_VGT@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	cmp	w10, #0
	csel	w1, w11, w25, eq
	add	x8, x8, w19, sxtw #3
	stp	w1, w23, [x8]
	ldr	w0, [x9, w19, sxtw #2]
	bl	_calculate_transition
	ldr	x9, [x21]
	ldr	x9, [x9, x26]
	cbz	x9, LBB0_9
; %bb.6:
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x22]
Lloh6:
	adrp	x10, _MLX4_DEV_CAP_FLAG2_UPDATE_QP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MLX4_DEV_CAP_FLAG2_UPDATE_QP@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.7:
Lloh9:
	adrp	x9, _MLX4_VLAN_TRANSITION_VST_VST@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MLX4_VLAN_TRANSITION_VST_VST@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.8:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	mov	x3, x19
	bl	_mlx4_info
	mov	x0, x21
	mov	x1, x24
	mov	x2, x19
	bl	_mlx4_master_immediate_activate_vlan_qos
LBB0_9:
	mov	w0, #0
	b	LBB0_13
LBB0_10:
Lloh14:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_DEV_CAP_FLAG2_VLAN_CONTROL,4,2 ; @MLX4_DEV_CAP_FLAG2_VLAN_CONTROL
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX4_VGT,4,2                   ; @MLX4_VGT
	.comm	_MLX4_DEV_CAP_FLAG2_UPDATE_QP,4,2 ; @MLX4_DEV_CAP_FLAG2_UPDATE_QP
	.comm	_MLX4_VLAN_TRANSITION_VST_VST,4,2 ; @MLX4_VLAN_TRANSITION_VST_VST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"updating vf %d port %d config params immediately\n"

.subsections_via_symbols
