	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_venc_if_init                   ## -- Begin function venc_if_init
	.p2align	4, 0x90
_venc_if_init:                          ## @venc_if_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpl	$128, %esi
	je	LBB0_1
## %bb.2:
	cmpl	$129, %esi
	jne	LBB0_5
## %bb.3:
	movq	_venc_h264_if@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_venc_vp8_if@GOTPCREL(%rip), %rax
LBB0_4:
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_mtk_venc_lock
	movq	(%rbx), %rdi
	callq	_mtk_vcodec_enc_clock_on
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	callq	_mtk_vcodec_enc_clock_off
	movq	%rbx, %rdi
	callq	_mtk_venc_unlock
	movl	%r14d, %eax
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_venc_vp8_if,8,3                ## @venc_vp8_if
	.comm	_venc_h264_if,8,3               ## @venc_h264_if
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_venc_if_init                   ; -- Begin function venc_if_init
	.p2align	2
_venc_if_init:                          ; @venc_if_init
	.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
	mov	x19, x0
	cmp	w1, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _venc_h264_if@GOTPAGE
Lloh1:
	ldr	x8, [x8, _venc_h264_if@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _venc_vp8_if@GOTPAGE
Lloh3:
	ldr	x8, [x8, _venc_vp8_if@GOTPAGEOFF]
LBB0_4:
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_mtk_venc_lock
	ldr	x0, [x19]
	bl	_mtk_vcodec_enc_clock_on
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	ldr	x0, [x19]
	bl	_mtk_vcodec_enc_clock_off
	mov	x0, x19
	bl	_mtk_venc_unlock
	mov	x0, x20
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_venc_vp8_if,8,3                ; @venc_vp8_if
	.comm	_venc_h264_if,8,3               ; @venc_h264_if
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
