	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_vcodec_init_dec_pm         ## -- Begin function mtk_vcodec_init_dec_pm
	.p2align	4, 0x90
_mtk_vcodec_init_dec_pm:                ## @mtk_vcodec_init_dec_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, %r12
	movq	(%rdi), %rax
	movq	%rdi, 40(%rdi)
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_find_device_by_node
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_of_node_put
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_WARN_ON
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_17
## %bb.3:
	movq	%r15, 16(%r12)
	movq	(%r12), %r14
	movq	%r14, 8(%r12)
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_of_property_count_strings
	movl	%eax, 24(%r12)
	testl	%eax, %eax
	jle	LBB0_11
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	cmpl	$0, 24(%r12)
	jle	LBB0_16
## %bb.6:
	movq	%rax, %rbx
	movl	(%r14), %edi
	leaq	4(%rax), %rcx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	callq	_of_property_read_string_index
	movq	%r14, %rcx
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_7
LBB0_15:
	leaq	L_.str.4(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_mtk_v4l2_err
	jmp	LBB0_17
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_mtk_v4l2_err
	movl	$-1, %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_mtk_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_17
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_17
LBB0_7:
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$12, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %esi
	movq	%rcx, %r14
	movq	%rcx, %rdi
	callq	_devm_clk_get
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, -8(%r15,%rcx,8)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movslq	24(%r12), %rax
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jge	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	movq	32(%r12), %r15
	movl	(%r14), %edi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%rax,8), %rax
	addq	$4, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	leaq	(%r15,%r13), %rcx
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_of_property_read_string_index
	movq	%r14, %rcx
	incq	%rbx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	addq	$8, %r13
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	je	LBB0_8
## %bb.14:
	movl	%eax, %r14d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_16:
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_9:
	movl	(%rbx), %edx
	leaq	L_.str.5(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_mtk_v4l2_err
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	-8(%r15,%rax,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	"of_parse_phandle mediatek,larb fail!"

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

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

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.4:                               ## @.str.4
	.asciz	"Failed to get clock name id = %d"

L_.str.5:                               ## @.str.5
	.asciz	"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_dec_pm         ; -- Begin function mtk_vcodec_init_dec_pm
	.p2align	2
_mtk_vcodec_init_dec_pm:                ; @mtk_vcodec_init_dec_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	x8, [x0]
	str	x0, [x0, #40]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_of_find_device_by_node
	mov	x21, x0
	mov	x0, x20
	bl	_of_node_put
	cmp	x21, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_4
; %bb.2:
	mov	w24, #-1
	b	LBB0_19
LBB0_3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_mtk_v4l2_err
	mov	w24, #-1
	b	LBB0_19
LBB0_4:
	ldr	x20, [x19]
	stp	x20, x21, [x19, #8]
	ldr	w0, [x20]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_of_property_count_strings
	str	w0, [x19, #24]
	cmp	w0, #1
	b.lt	LBB0_10
; %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, #32]
	cbz	x0, LBB0_11
; %bb.6:
	ldr	w8, [x19, #24]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.7:
	mov	x21, x0
	ldr	w0, [x20]
	add	x22, x21, #4
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #0
	mov	x3, x22
	bl	_of_property_read_string_index
	cbz	w0, LBB0_13
; %bb.8:
	mov	x24, x0
	mov	w27, #0
LBB0_9:
	str	x27, [sp]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_mtk_v4l2_err
	b	LBB0_19
LBB0_10:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_mtk_v4l2_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_19
LBB0_13:
	mov	x25, #0
	mov	x26, #0
Lloh19:
	adrp	x23, l_.str.2@PAGE
Lloh20:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_14:                                ; =>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_20
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x27, x26, #1
	ldrsw	x8, [x19, #24]
	cmp	x27, x8
	b.ge	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x21, [x19, #32]
	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, x23
	bl	_of_property_read_string_index
	add	x25, x25, #8
	mov	x26, x27
	cbz	w0, LBB0_14
; %bb.17:
	mov	x24, x0
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	b	LBB0_9
LBB0_18:
	mov	x0, x20
	bl	_pm_runtime_enable
	mov	w24, #0
LBB0_19:
	mov	x0, x24
	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_20:
	ldr	w8, [x22]
	stp	x26, x8, [sp]
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@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 AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mediatek,larb"

l_.str.1:                               ; @.str.1
	.asciz	"of_parse_phandle mediatek,larb fail!"

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

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

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.4:                               ; @.str.4
	.asciz	"Failed to get clock name id = %d"

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

.subsections_via_symbols
