	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sriov_restore_guids
_sriov_restore_guids:                   ## @sriov_restore_guids
	.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	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movslq	%esi, %rcx
	leaq	(%rcx,%rcx,2), %rbx
	cmpq	$0, 16(%rax,%rbx,8)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rax,%rbx,8)
	jne	LBB0_3
## %bb.2:
	movq	(%rax,%rbx,8), %rax
	movq	_MLX5_POLICY_INVALID@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpq	(%rcx), %rax
	je	LBB0_14
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	(%r15), %rax
	movq	16(%rax,%rbx,8), %rsi
	movq	%rsi, 16(%r12)
	movq	8(%rax,%rbx,8), %rdx
	movq	%rdx, 24(%r12)
	movq	(%rax,%rbx,8), %rcx
	movq	%rcx, (%r12)
	xorl	%eax, %eax
	movl	$0, %edi
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movq	_MLX5_HCA_VPORT_SEL_PORT_GUID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
LBB0_7:
	movl	$0, %edx
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	_MLX5_HCA_VPORT_SEL_NODE_GUID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_9:
	orl	%edi, %edx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:
	movq	_MLX5_HCA_VPORT_SEL_STATE_POLICY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	orl	%eax, %edx
	movl	%edx, 8(%r12)
	leal	1(%r14), %ecx
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %edx
	movq	%r12, %r8
	callq	_mlx5_core_modify_hca_vport_context
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_mlx5_core_warn
LBB0_13:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_14
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_POLICY_INVALID,8,3        ## @MLX5_POLICY_INVALID
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLX5_HCA_VPORT_SEL_PORT_GUID,4,2 ## @MLX5_HCA_VPORT_SEL_PORT_GUID
	.comm	_MLX5_HCA_VPORT_SEL_NODE_GUID,4,2 ## @MLX5_HCA_VPORT_SEL_NODE_GUID
	.comm	_MLX5_HCA_VPORT_SEL_STATE_POLICY,4,2 ## @MLX5_HCA_VPORT_SEL_STATE_POLICY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"modify vport context failed, unable to restore VF %d settings\n"

	.no_dead_strip	_sriov_restore_guids
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sriov_restore_guids
_sriov_restore_guids:                   ; @sriov_restore_guids
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	sxtw	x22, w19
	mov	w9, #24
	smaddl	x9, w1, w9, x8
	ldr	x9, [x9, #16]
	cbnz	x9, LBB0_4
; %bb.1:
	mov	w9, #24
	madd	x9, x22, x9, x8
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_4
; %bb.2:
	mov	w9, #24
	mul	x9, x22, x9
	ldr	x8, [x8, x9]
Lloh0:
	adrp	x9, _MLX5_POLICY_INVALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_POLICY_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w22, #0
	b	LBB0_9
LBB0_4:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.5:
	mov	x21, x0
	ldr	x8, [x20]
	mov	w9, #24
	madd	x8, x22, x9, x8
	ldp	x10, x9, [x8, #8]
	ldr	x8, [x8]
	stp	x9, x10, [x0, #16]
Lloh6:
	adrp	x11, _MLX5_HCA_VPORT_SEL_PORT_GUID@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MLX5_HCA_VPORT_SEL_PORT_GUID@GOTPAGEOFF]
	str	x8, [x0]
Lloh8:
	ldr	w11, [x11]
	cmp	x10, #0
	csel	w10, wzr, w11, eq
Lloh9:
	adrp	x11, _MLX5_HCA_VPORT_SEL_NODE_GUID@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MLX5_HCA_VPORT_SEL_NODE_GUID@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	cmp	x9, #0
	csel	w9, wzr, w11, eq
	orr	w9, w9, w10
Lloh12:
	adrp	x10, _MLX5_HCA_VPORT_SEL_STATE_POLICY@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MLX5_HCA_VPORT_SEL_STATE_POLICY@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	x8, #0
	csel	w8, wzr, w10, eq
	orr	w8, w9, w8
	str	w8, [x0, #8]
	add	w3, w19, #1
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	mov	x4, x21
	bl	_mlx5_core_modify_hca_vport_context
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.6:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_mlx5_core_warn
LBB0_7:
	mov	x0, x21
	bl	_kfree
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_POLICY_INVALID,8,3        ; @MLX5_POLICY_INVALID
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX5_HCA_VPORT_SEL_PORT_GUID,4,2 ; @MLX5_HCA_VPORT_SEL_PORT_GUID
	.comm	_MLX5_HCA_VPORT_SEL_NODE_GUID,4,2 ; @MLX5_HCA_VPORT_SEL_NODE_GUID
	.comm	_MLX5_HCA_VPORT_SEL_STATE_POLICY,4,2 ; @MLX5_HCA_VPORT_SEL_STATE_POLICY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"modify vport context failed, unable to restore VF %d settings\n"

	.no_dead_strip	_sriov_restore_guids
.subsections_via_symbols
