	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsim_bus_dev_numvfs_store
_nsim_bus_dev_numvfs_store:             ## @nsim_bus_dev_numvfs_store
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_to_nsim_bus_dev
	movq	%rax, %r15
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_kstrtouint
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	xorl	%eax, %eax
	callq	_rtnl_lock
	movl	(%r15), %eax
	movl	-28(%rbp), %esi
	cmpl	%esi, %eax
	jne	LBB0_2
LBB0_8:
	movl	%r14d, %ebx
	jmp	LBB0_9
LBB0_2:
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	testl	%esi, %esi
	je	LBB0_5
## %bb.4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	movq	%r15, %rdi
	testl	%esi, %esi
	je	LBB0_7
## %bb.6:
	callq	_nsim_bus_dev_vfs_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	xorl	%eax, %eax
	callq	_rtnl_unlock
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	_nsim_bus_dev_vfs_disable
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_nsim_bus_dev_numvfs_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsim_bus_dev_numvfs_store
_nsim_bus_dev_numvfs_store:             ; @nsim_bus_dev_numvfs_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x21, x2
	bl	_to_nsim_bus_dev
	mov	x20, x0
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #0
	bl	_kstrtouint
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.1:
	bl	_rtnl_lock
	ldr	w8, [x20]
	ldr	w1, [sp, #12]
	cmp	w8, w1
	b.ne	LBB0_3
LBB0_2:
	mov	x21, x19
	b	LBB0_8
LBB0_3:
	cbz	w8, LBB0_6
; %bb.4:
	cbz	w1, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	cbz	w1, LBB0_10
; %bb.7:
	bl	_nsim_bus_dev_vfs_enable
	mov	x21, x0
	cbz	w0, LBB0_2
LBB0_8:
	bl	_rtnl_unlock
LBB0_9:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_10:
	bl	_nsim_bus_dev_vfs_disable
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_nsim_bus_dev_numvfs_store
.subsections_via_symbols
