	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vfe_enable
_vfe_enable:                            ## @vfe_enable
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_to_vfe
	movq	%rax, %rbx
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*24(%rax)
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*(%rax)
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*16(%rax)
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	movl	(%rbx), %eax
LBB0_2:
	incl	%eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_vfe_get_output
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_vfe_enable_output
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movl	$1, 4(%rbx)
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %r12d
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_vfe_put_output
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%rbx), %eax
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.8:
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movl	(%rbx), %eax
LBB0_9:
	decl	%eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_10:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vfe_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vfe_enable
_vfe_enable:                            ; @vfe_enable
	.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	x21, x0
	bl	_to_vfe
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #24]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #16]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	ldr	w8, [x19]
LBB0_2:
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x21
	bl	_vfe_get_output
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_vfe_enable_output
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	w22, #0
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_10
LBB0_5:
	mov	x22, x0
	b	LBB0_7
LBB0_6:
	mov	x22, x0
	mov	x0, x21
	bl	_vfe_put_output
LBB0_7:
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	ldr	w8, [x19]
LBB0_9:
	sub	w8, w8, #1
	str	w8, [x19]
	mov	x0, x20
	bl	_mutex_unlock
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vfe_enable
.subsections_via_symbols
