	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function venc_enable_vpss_clock
_venc_enable_vpss_clock:                ## @venc_enable_vpss_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_VPBE_VERSION_1@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_1
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	_VPBE_VERSION_2@GOTPCREL(%rip), %rcx
	movq	_VPBE_ENC_STD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, (%rcx)
	jne	LBB0_6
## %bb.2:
	cmpl	%esi, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$27000000, %edx                 ## imm = 0x19BFCC0
	ja	LBB0_6
## %bb.4:
	movq	_VPBE_ENC_DV_TIMINGS@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jne	LBB0_6
LBB0_5:
	movq	_VPSS_VENC_CLOCK_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %ebx
	movl	$1, %esi
	callq	_vpss_enable_clock
	movq	_VPSS_VPBE_CLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_VPBE_VERSION_3@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jne	LBB0_10
## %bb.7:
	cmpl	%esi, %eax
	jne	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	movq	_VPSS_VENC_CLOCK_SEL@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_vpss_enable_clock              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VPBE_VERSION_1,4,2             ## @VPBE_VERSION_1
	.comm	_VPBE_VERSION_2,4,2             ## @VPBE_VERSION_2
	.comm	_VPBE_ENC_STD,4,2               ## @VPBE_ENC_STD
	.comm	_VPBE_ENC_DV_TIMINGS,4,2        ## @VPBE_ENC_DV_TIMINGS
	.comm	_VPSS_VENC_CLOCK_SEL,4,2        ## @VPSS_VENC_CLOCK_SEL
	.comm	_VPSS_VPBE_CLOCK,4,2            ## @VPSS_VPBE_CLOCK
	.comm	_VPBE_VERSION_3,4,2             ## @VPBE_VERSION_3
	.no_dead_strip	_venc_enable_vpss_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function venc_enable_vpss_clock
_venc_enable_vpss_clock:                ; @venc_enable_vpss_clock
	.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
Lloh0:
	adrp	x8, _VPBE_VERSION_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPBE_VERSION_1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.eq	LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _VPBE_VERSION_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VPBE_VERSION_2@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
Lloh6:
	adrp	x8, _VPBE_ENC_STD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VPBE_ENC_STD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w9, w0
	b.ne	LBB0_6
; %bb.2:
	cmp	w8, w1
	b.eq	LBB0_5
; %bb.3:
	mov	w9, #64704
	movk	w9, #411, lsl #16
	cmp	w2, w9
	b.hi	LBB0_6
; %bb.4:
Lloh9:
	adrp	x9, _VPBE_ENC_DV_TIMINGS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VPBE_ENC_DV_TIMINGS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w9, w1
	b.ne	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _VPSS_VENC_CLOCK_SEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VPSS_VENC_CLOCK_SEL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w19, #1
	mov	w1, #1
	bl	_vpss_enable_clock
Lloh15:
	adrp	x8, _VPSS_VPBE_CLOCK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VPSS_VPBE_CLOCK@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh17:
	adrp	x9, _VPBE_VERSION_3@GOTPAGE
Lloh18:
	ldr	x9, [x9, _VPBE_VERSION_3@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w9, w0
	ccmp	w8, w1, #0, eq
	b.eq	LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w19, #0
Lloh20:
	adrp	x8, _VPSS_VENC_CLOCK_SEL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VPSS_VENC_CLOCK_SEL@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vpss_enable_clock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_VPBE_VERSION_1,4,2             ; @VPBE_VERSION_1
	.comm	_VPBE_VERSION_2,4,2             ; @VPBE_VERSION_2
	.comm	_VPBE_ENC_STD,4,2               ; @VPBE_ENC_STD
	.comm	_VPBE_ENC_DV_TIMINGS,4,2        ; @VPBE_ENC_DV_TIMINGS
	.comm	_VPSS_VENC_CLOCK_SEL,4,2        ; @VPSS_VENC_CLOCK_SEL
	.comm	_VPSS_VPBE_CLOCK,4,2            ; @VPSS_VPBE_CLOCK
	.comm	_VPBE_VERSION_3,4,2             ; @VPBE_VERSION_3
	.no_dead_strip	_venc_enable_vpss_clock
.subsections_via_symbols
