	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpfe_enable_clock
_vpfe_enable_clock:                     ## @vpfe_enable_clock
	.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
	movq	(%rdi), %rdi
	movq	8(%rbx), %r15
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rsi
	callq	_clk_get
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_clk_enable
	movq	(%rbx), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	callq	_v4l2_err
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_clk_put
LBB0_10:
	movq	(%r15), %rdi
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_clk_put
	jmp	LBB0_12
LBB0_1:
	negl	%r14d
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_v4l2_err
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.3(%rip), %rsi
	callq	_v4l2_info
	movq	(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_clk_get
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rdi
	callq	_clk_enable
	movq	(%rbx), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_8
LBB0_5:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_8
LBB0_13:
	leaq	L_.str.7(%rip), %rsi
	callq	_v4l2_info
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpss_master"

L_.str.1:                               ## @.str.1
	.asciz	"No clock defined forvpss_master\n"

L_.str.2:                               ## @.str.2
	.asciz	"vpfe vpss master clock not enabled\n"

L_.str.3:                               ## @.str.3
	.asciz	"vpfe vpss master clock enabled\n"

L_.str.4:                               ## @.str.4
	.asciz	"vpss_slave"

L_.str.5:                               ## @.str.5
	.asciz	"No clock defined for vpss slave\n"

L_.str.6:                               ## @.str.6
	.asciz	"vpfe vpss slave clock not enabled\n"

L_.str.7:                               ## @.str.7
	.asciz	"vpfe vpss slave clock enabled\n"

	.no_dead_strip	_vpfe_enable_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpfe_enable_clock
_vpfe_enable_clock:                     ; @vpfe_enable_clock
	.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, x0
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldp	x0, x20, [x0]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_clk_get
	str	x0, [x20, #8]
	cbz	x0, LBB0_8
; %bb.1:
	bl	_clk_enable
	mov	x8, x0
	ldr	x9, [x19]
	ldr	w0, [x9]
	cbz	x8, LBB0_10
; %bb.2:
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_3:
	bl	_v4l2_err
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_clk_put
LBB0_5:
	ldr	x0, [x20]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_clk_put
LBB0_7:
	mov	w20, #-1
	b	LBB0_9
LBB0_8:
	neg	w20, w21
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_v4l2_err
LBB0_9:
	mov	x0, x20
	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_10:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_v4l2_info
	ldr	x0, [x19]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_clk_get
	str	x0, [x20]
	cbz	x0, LBB0_13
; %bb.11:
	bl	_clk_enable
	mov	x8, x0
	ldr	x9, [x19]
	ldr	w0, [x9]
	cbz	x8, LBB0_14
; %bb.12:
Lloh13:
	adrp	x1, l_.str.6@PAGE
Lloh14:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_3
LBB0_13:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_3
LBB0_14:
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_v4l2_info
	mov	w20, #0
	b	LBB0_9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpss_master"

l_.str.1:                               ; @.str.1
	.asciz	"No clock defined forvpss_master\n"

l_.str.2:                               ; @.str.2
	.asciz	"vpfe vpss master clock not enabled\n"

l_.str.3:                               ; @.str.3
	.asciz	"vpfe vpss master clock enabled\n"

l_.str.4:                               ; @.str.4
	.asciz	"vpss_slave"

l_.str.5:                               ; @.str.5
	.asciz	"No clock defined for vpss slave\n"

l_.str.6:                               ; @.str.6
	.asciz	"vpfe vpss slave clock not enabled\n"

l_.str.7:                               ; @.str.7
	.asciz	"vpfe vpss slave clock enabled\n"

	.no_dead_strip	_vpfe_enable_clock
.subsections_via_symbols
