	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_valid_vf_state_change
_mlx4_valid_vf_state_change:            ## @mlx4_valid_vf_state_change
	.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, %r12d
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	$0, -48(%rbp)
	callq	_mlx4_is_vf_vst_and_prio_qos
	movl	$1, %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpl	$0, 8(%r14)
	je	LBB0_6
## %bb.2:
	movl	%r12d, -56(%rbp)
	movl	%r15d, -52(%rbp)
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_mlx4_is_vf_vst_and_prio_qos
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	_MLX4_VGT@GOTPCREL(%rip), %rbx
	cmpl	%r15d, (%rbx)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_mlx4_info
	cmpl	%r15d, (%rbx)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_mlx4_info
LBB0_5:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_mlx4_info
	xorl	%ecx, %ecx
LBB0_6:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot change VF state to %s while rate is set\n"

	.comm	_MLX4_VGT,4,2                   ## @MLX4_VGT
L_.str.1:                               ## @.str.1
	.asciz	"VGT"

L_.str.2:                               ## @.str.2
	.asciz	"VST"

L_.str.3:                               ## @.str.3
	.asciz	"VST priority %d not supported for QoS\n"

L_.str.4:                               ## @.str.4
	.asciz	"Please set rate to 0 prior to this VF state change\n"

	.no_dead_strip	_mlx4_valid_vf_state_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_valid_vf_state_change
_mlx4_valid_vf_state_change:            ; @mlx4_valid_vf_state_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	str	xzr, [sp, #24]
	bl	_mlx4_is_vf_vst_and_prio_qos
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x23, #8]
	cbz	w8, LBB0_3
; %bb.2:
	stp	w20, w21, [sp, #16]
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x22
	bl	_mlx4_is_vf_vst_and_prio_qos
	cbz	x0, LBB0_5
LBB0_3:
	mov	w0, #1
LBB0_4:
	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
	add	sp, sp, #96
	ret
LBB0_5:
Lloh0:
	adrp	x22, _MLX4_VGT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MLX4_VGT@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh4:
	adrp	x10, l_.str.1@PAGE
Lloh5:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, w21
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx4_info
	ldr	w8, [x22]
	cmp	w8, w21
	b.eq	LBB0_7
; %bb.6:
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mlx4_info
LBB0_7:
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_mlx4_info
	mov	w0, #0
	b	LBB0_4
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot change VF state to %s while rate is set\n"

	.comm	_MLX4_VGT,4,2                   ; @MLX4_VGT
l_.str.1:                               ; @.str.1
	.asciz	"VGT"

l_.str.2:                               ; @.str.2
	.asciz	"VST"

l_.str.3:                               ; @.str.3
	.asciz	"VST priority %d not supported for QoS\n"

l_.str.4:                               ; @.str.4
	.asciz	"Please set rate to 0 prior to this VF state change\n"

	.no_dead_strip	_mlx4_valid_vf_state_change
.subsections_via_symbols
