	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_set_vf_link_state         ## -- Begin function mlx4_set_vf_link_state
	.p2align	4, 0x90
_mlx4_set_vf_link_state:                ## @mlx4_set_vf_link_state
	.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
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r13
	callq	_mlx4_priv
	movq	%rax, %r14
	movq	%r13, %rdi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_mlx4_get_slave_indx
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_mlx4_slaves_closest_port
	movl	%eax, %r12d
	cmpl	$128, %r15d
	je	LBB0_7
## %bb.2:
	cmpl	$129, %r15d
	je	LBB0_6
## %bb.3:
	cmpl	$130, %r15d
	jne	LBB0_10
## %bb.4:
	movq	8(%r14), %rax
	movslq	%r12d, %rcx
	cmpl	$0, (%rax,%rcx,4)
	jne	LBB0_6
LBB0_7:
	movq	_MLX4_PORT_CHANGE_SUBTYPE_ACTIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_MLX4_PORT_CHANGE_SUBTYPE_DOWN@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ecx
	movq	(%r14), %rax
	movl	%ebx, %edx
	movq	(%rax,%rdx,8), %rax
	movslq	%r12d, %rdx
	movl	%r15d, (%rax,%rdx,4)
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_mlx4_gen_port_state_change_eqe
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_mlx4_master_immediate_activate_vlan_qos
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_mlx4_dbg
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	callq	_mlx4_warn
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX4_PORT_CHANGE_SUBTYPE_ACTIVE,4,2 ## @MLX4_PORT_CHANGE_SUBTYPE_ACTIVE
	.comm	_MLX4_PORT_CHANGE_SUBTYPE_DOWN,4,2 ## @MLX4_PORT_CHANGE_SUBTYPE_DOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown value for link_state %02x on slave %d port %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"updating vf %d port %d no link state HW enforcement\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_set_vf_link_state         ; -- Begin function mlx4_set_vf_link_state
	.p2align	2
_mlx4_set_vf_link_state:                ; @mlx4_set_vf_link_state
	.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, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_mlx4_priv
	mov	x24, x0
	mov	x0, x20
	mov	x1, x19
	bl	_mlx4_get_slave_indx
	tbnz	w0, #31, LBB0_9
; %bb.1:
	mov	x23, x0
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_mlx4_slaves_closest_port
	mov	x22, x0
Lloh0:
	adrp	x8, _MLX4_PORT_CHANGE_SUBTYPE_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_PORT_CHANGE_SUBTYPE_ACTIVE@GOTPAGEOFF]
	cmp	w21, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w21, #129
	b.eq	LBB0_5
; %bb.3:
	cmp	w21, #130
	b.ne	LBB0_8
; %bb.4:
	ldr	x9, [x24, #8]
	ldr	w9, [x9, w22, sxtw #2]
Lloh2:
	adrp	x10, _MLX4_PORT_CHANGE_SUBTYPE_DOWN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MLX4_PORT_CHANGE_SUBTYPE_DOWN@GOTPAGEOFF]
	cmp	w9, #0
	csel	x8, x8, x10, eq
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _MLX4_PORT_CHANGE_SUBTYPE_DOWN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MLX4_PORT_CHANGE_SUBTYPE_DOWN@GOTPAGEOFF]
LBB0_6:
	ldr	w3, [x8]
	ldr	x8, [x24]
	ldr	x8, [x8, w23, uxtw #3]
	str	w21, [x8, w22, sxtw #2]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_mlx4_gen_port_state_change_eqe
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	bl	_mlx4_master_immediate_activate_vlan_qos
	cbz	x0, LBB0_10
; %bb.7:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x22
	bl	_mlx4_dbg
	mov	w0, #0
	b	LBB0_10
LBB0_8:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	mov	x3, x23
	mov	x4, x22
	bl	_mlx4_warn
LBB0_9:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX4_PORT_CHANGE_SUBTYPE_ACTIVE,4,2 ; @MLX4_PORT_CHANGE_SUBTYPE_ACTIVE
	.comm	_MLX4_PORT_CHANGE_SUBTYPE_DOWN,4,2 ; @MLX4_PORT_CHANGE_SUBTYPE_DOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown value for link_state %02x on slave %d port %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"updating vf %d port %d no link state HW enforcement\n"

.subsections_via_symbols
