	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_vcodec_init_enc_pm         ## -- Begin function mtk_vcodec_init_enc_pm
	.p2align	4, 0x90
_mtk_vcodec_init_enc_pm:                ## @mtk_vcodec_init_enc_pm
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r12
	addq	$8, %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	%r14, 48(%r14)
	movq	%r12, 8(%r14)
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_find_device_by_node
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_of_node_put
	testq	%r15, %r15
	je	LBB0_10
## %bb.2:
	movq	%r15, 24(%r14)
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_find_device_by_node
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_of_node_put
	testq	%r15, %r15
	je	LBB0_10
## %bb.4:
	movq	%r15, 16(%r14)
	movq	(%r14), %r12
	movq	%r12, 8(%r14)
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_of_property_count_strings
	movl	%eax, 32(%r14)
	testl	%eax, %eax
	jle	LBB0_16
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, 40(%r14)
	testq	%rax, %rax
	je	LBB0_17
## %bb.6:
	cmpl	$0, 32(%r14)
	jle	LBB0_18
## %bb.7:
	movq	%rax, %rbx
	movl	(%r12), %edi
	leaq	4(%rax), %rcx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	callq	_of_property_read_string_index
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_19
LBB0_8:
	leaq	L_.str.5(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_mtk_v4l2_err
	jmp	LBB0_15
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
LBB0_12:
	xorl	%r13d, %r13d
LBB0_13:
	xorl	%eax, %eax
	callq	_mtk_v4l2_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_14:
	subl	(%rax), %r13d
LBB0_15:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str.4(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_mtk_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	jmp	LBB0_14
LBB0_19:
	movq	%rbx, %r15
	movl	$1, %ebx
	movl	$12, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_devm_clk_get
	movl	%eax, -8(%r15,%rbx,8)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movslq	32(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_18
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	movq	40(%r14), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	4(%rcx,%rax,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	addq	%r15, %rcx
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	callq	_of_property_read_string_index
	incq	%rbx
	addq	$8, %r15
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_20
## %bb.23:
	movl	%eax, %r13d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_18:
	xorl	%r13d, %r13d
	jmp	LBB0_15
LBB0_24:
	movl	(%r13), %edx
	leaq	L_.str.6(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_mtk_v4l2_err
	movl	-8(%r15,%rbx,8), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mediatek,larb"

L_.str.1:                               ## @.str.1
	.asciz	"no mediatek,larb found"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"no mediatek,larb device found"

L_.str.3:                               ## @.str.3
	.asciz	"clock-names"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.4:                               ## @.str.4
	.asciz	"Failed to get venc clock count"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.5:                               ## @.str.5
	.asciz	"venc failed to get clk name %d"

L_.str.6:                               ## @.str.6
	.asciz	"venc devm_clk_get (%d)%s fail"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_vcodec_init_enc_pm         ; -- Begin function mtk_vcodec_init_enc_pm
	.p2align	2
_mtk_vcodec_init_enc_pm:                ; @mtk_vcodec_init_enc_pm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x22, [x0], #8
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	str	x19, [x19, #48]
	str	x22, [x19, #8]
	ldr	w0, [x22]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	bl	_of_find_device_by_node
	mov	x21, x0
	mov	x0, x20
	bl	_of_node_put
	cbz	x21, LBB0_11
; %bb.2:
	str	x21, [x19, #24]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	bl	_of_parse_phandle
	cbz	x0, LBB0_10
; %bb.3:
	mov	x20, x0
	bl	_of_find_device_by_node
	mov	x21, x0
	mov	x0, x20
	bl	_of_node_put
	cbz	x21, LBB0_11
; %bb.4:
	ldr	x20, [x19]
	stp	x20, x21, [x19, #8]
	ldr	w0, [x20]
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_of_property_count_strings
	str	w0, [x19, #32]
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.5:
	mov	x1, x0
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_16
; %bb.6:
	ldr	w8, [x19, #32]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.7:
	mov	x21, x0
	ldr	w0, [x20]
	add	x22, x21, #4
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #0
	mov	x3, x22
	bl	_of_property_read_string_index
	cbz	w0, LBB0_17
; %bb.8:
	mov	x23, x0
	mov	w27, #0
LBB0_9:
	str	x27, [sp]
Lloh11:
	adrp	x0, l_.str.5@PAGE
Lloh12:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_mtk_v4l2_err
	b	LBB0_14
LBB0_10:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_12:
	bl	_mtk_v4l2_err
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_mtk_v4l2_err
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_16:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_17:
	mov	x25, #0
	mov	x26, #0
Lloh25:
	adrp	x24, l_.str.3@PAGE
Lloh26:
	add	x24, x24, l_.str.3@PAGEOFF
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_devm_clk_get
	str	w0, [x21, x25]
	bl	_IS_ERR
	cbnz	x0, LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x27, x26, #1
	ldrsw	x8, [x19, #32]
	cmp	x27, x8
	b.ge	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x21, [x19, #40]
	ldr	w0, [x20]
	add	x8, x21, x27, lsl #3
	add	x22, x8, #4
	add	x8, x21, x25
	add	x3, x8, #12
	add	w2, w26, #1
	mov	x1, x24
	bl	_of_property_read_string_index
	add	x25, x25, #8
	mov	x26, x27
	cbz	w0, LBB0_18
; %bb.21:
	mov	x23, x0
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	b	LBB0_9
LBB0_22:
	mov	w23, #0
	b	LBB0_14
LBB0_23:
	ldr	w8, [x22]
	stp	x26, x8, [sp]
Lloh27:
	adrp	x0, l_.str.6@PAGE
Lloh28:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_mtk_v4l2_err
	ldr	w0, [x21, x25]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mediatek,larb"

l_.str.1:                               ; @.str.1
	.asciz	"no mediatek,larb found"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"no mediatek,larb device found"

l_.str.3:                               ; @.str.3
	.asciz	"clock-names"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.4:                               ; @.str.4
	.asciz	"Failed to get venc clock count"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.5:                               ; @.str.5
	.asciz	"venc failed to get clk name %d"

l_.str.6:                               ; @.str.6
	.asciz	"venc devm_clk_get (%d)%s fail"

.subsections_via_symbols
