	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_eswitch_update_num_of_vfs ## -- Begin function mlx5_eswitch_update_num_of_vfs
	.p2align	4, 0x90
_mlx5_eswitch_update_num_of_vfs:        ## @mlx5_eswitch_update_num_of_vfs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_MLX5_ESWITCH_NONE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON_ONCE
	movl	12(%rbx), %edi
	callq	_mlx5_core_is_ecpf_esw_manager
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	12(%rbx), %edi
	callq	_mlx5_esw_query_functions
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	_query_esw_functions_out@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_host_params_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_MLX5_GET
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kvfree                         ## TAILCALL
LBB0_1:
	movl	%r14d, 8(%rbx)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_ESWITCH_NONE,8,3          ## @MLX5_ESWITCH_NONE
	.comm	_query_esw_functions_out,4,2    ## @query_esw_functions_out
	.comm	_host_params_context,4,2        ## @host_params_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_eswitch_update_num_of_vfs ; -- Begin function mlx5_eswitch_update_num_of_vfs
	.p2align	2
_mlx5_eswitch_update_num_of_vfs:        ; @mlx5_eswitch_update_num_of_vfs
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MLX5_ESWITCH_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_ESWITCH_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON_ONCE
	ldr	w0, [x19, #12]
	bl	_mlx5_core_is_ecpf_esw_manager
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x19, #12]
	bl	_mlx5_esw_query_functions
	mov	x20, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _query_esw_functions_out@GOTPAGE
Lloh4:
	ldr	x8, [x8, _query_esw_functions_out@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _host_params_context@GOTPAGE
Lloh7:
	ldr	x8, [x8, _host_params_context@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_MLX5_GET
	str	w0, [x19, #8]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kvfree
LBB0_3:
	str	w20, [x19, #8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_ESWITCH_NONE,8,3          ; @MLX5_ESWITCH_NONE
	.comm	_query_esw_functions_out,4,2    ; @query_esw_functions_out
	.comm	_host_params_context,4,2        ; @host_params_context
.subsections_via_symbols
