	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vfe_get
_vfe_get:                               ## @vfe_get
	.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	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_vfe_check_clock_rates
	testl	%eax, %eax
	js	LBB0_9
LBB0_2:
	incq	(%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_3:
	movq	16(%rbx), %rdi
	movl	12(%rbx), %esi
	callq	_camss_pm_domain_on
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_12
## %bb.5:
	movq	%rbx, %rdi
	callq	_vfe_set_clock_rates
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:
	movl	28(%rbx), %edi
	movl	24(%rbx), %esi
	movq	16(%rbx), %rax
	movl	(%rax), %edx
	callq	_camss_enable_clocks
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_vfe_reset
	testl	%eax, %eax
	js	LBB0_17
## %bb.8:
	movq	%rbx, %rdi
	callq	_vfe_reset_output_maps
	movq	%rbx, %rdi
	callq	_vfe_init_outputs
	jmp	LBB0_2
LBB0_9:
	movl	%eax, %r15d
LBB0_10:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_pm_runtime_put_sync
	jmp	LBB0_13
LBB0_11:
	movl	%eax, %r15d
	jmp	LBB0_14
LBB0_12:
	movl	%eax, %r15d
LBB0_13:
	movq	16(%rbx), %rdi
	movl	12(%rbx), %esi
	callq	_camss_pm_domain_off
LBB0_14:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	%eax, %r15d
	movl	24(%rbx), %esi
	movl	28(%rbx), %edi
	callq	_camss_disable_clocks
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vfe_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vfe_get
_vfe_get:                               ; @vfe_get
	.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	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_vfe_check_clock_rates
	tbnz	w0, #31, LBB0_9
LBB0_2:
	mov	w21, #0
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	b	LBB0_14
LBB0_3:
	ldr	x0, [x20, #16]
	ldr	w1, [x20, #12]
	bl	_camss_pm_domain_on
	tbnz	w0, #31, LBB0_11
; %bb.4:
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_12
; %bb.5:
	mov	x0, x20
	bl	_vfe_set_clock_rates
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldp	w1, w0, [x20, #24]
	ldr	x8, [x20, #16]
	ldr	w2, [x8]
	bl	_camss_enable_clocks
	tbnz	w0, #31, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_vfe_reset
	tbnz	w0, #31, LBB0_15
; %bb.8:
	mov	x0, x20
	bl	_vfe_reset_output_maps
	mov	x0, x20
	bl	_vfe_init_outputs
	b	LBB0_2
LBB0_9:
	mov	x21, x0
LBB0_10:
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_pm_runtime_put_sync
	b	LBB0_13
LBB0_11:
	mov	x21, x0
	b	LBB0_14
LBB0_12:
	mov	x21, x0
LBB0_13:
	ldr	x0, [x20, #16]
	ldr	w1, [x20, #12]
	bl	_camss_pm_domain_off
LBB0_14:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
LBB0_15:
	mov	x21, x0
	ldp	w1, w0, [x20, #24]
	bl	_camss_disable_clocks
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vfe_get
.subsections_via_symbols
