	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rkmpp_init_decoder
_rkmpp_init_decoder:                    ## @rkmpp_init_decoder
	.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	$24, %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	8(%rdi), %rbx
	movq	_AV_PIX_FMT_DRM_PRIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	movl	$32, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_rkmpp_release_decoder@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AV_BUFFER_FLAG_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	$32, %esi
	xorl	%ecx, %ecx
	callq	_av_buffer_create
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	%r14, %rdi
	callq	_rkmpp_get_codingtype
	movq	%rax, %rbx
	movq	_MPP_VIDEO_CodingUnused@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_8
## %bb.5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_6
LBB0_3:
	movq	%r15, %rdi
	callq	_av_free
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_27:
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_8:
	movq	_MPP_CTX_DEC@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_mpp_check_support_format
	movq	_MPP_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.10:
	leaq	16(%r15), %r12
	leaq	24(%r15), %rsi
	movq	%r12, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_mpp_create
	movq	_MPP_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.13:
	movl	(%r12), %edi
	movl	(%r13), %esi
	movq	%rbx, %rdx
	callq	_mpp_init
	movq	_MPP_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.15:
	movq	_MPP_POLL_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movl	(%r12), %edi
	movq	_MPP_SET_OUTPUT_BLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-44(%rbp), %rdx
	callq	*(%rax)
	movq	_MPP_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.17:
	movq	_RECEIVE_FRAME_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	(%rbx), %rax
	movl	(%r12), %edi
	movq	%rcx, %r13
	movq	_MPP_SET_OUTPUT_BLOCK_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-48(%rbp), %rdx
	callq	*(%rax)
	cmpl	(%r13), %eax
	jne	LBB0_18
## %bb.19:
	movq	%r15, %r13
	addq	$8, %r13
	movq	_MPP_BUFFER_TYPE_ION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_mpp_buffer_group_get_internal
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.7(%rip), %rdx
	jmp	LBB0_12
LBB0_9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	leaq	L_.str.2(%rip), %rdx
LBB0_6:
	movq	%r14, %rdi
	jmp	LBB0_7
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_12
LBB0_14:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_12
LBB0_16:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_12
LBB0_18:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.6(%rip), %rdx
LBB0_12:
	movq	%r14, %rdi
	movl	%eax, %ecx
LBB0_7:
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_28:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.11(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	%r14, %rdi
	callq	_rkmpp_close_decoder
LBB0_29:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	(%rbx), %rax
	movl	(%r12), %edi
	movq	_MPP_DEC_SET_EXT_BUF_GROUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%r13), %rdx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.8(%rip), %rdx
	jmp	LBB0_12
LBB0_23:
	movq	(%r13), %rdi
	movq	_FRAMEGROUP_MAX_FRAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_mpp_buffer_group_limit_config
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.9(%rip), %rdx
	jmp	LBB0_12
LBB0_25:
	movl	$1, (%r15)
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.10(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_AV_HWDEVICE_TYPE_DRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_av_hwdevice_ctx_alloc
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	je	LBB0_1
## %bb.26:
	movl	%eax, %edi
	callq	_av_hwdevice_ctx_init
	testl	%eax, %eax
	jns	LBB0_29
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_MPP_VIDEO_CodingUnused,8,3     ## @MPP_VIDEO_CodingUnused
	.comm	_AV_PIX_FMT_DRM_PRIME,4,2       ## @AV_PIX_FMT_DRM_PRIME
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_rkmpp_release_decoder,4,2      ## @rkmpp_release_decoder
	.comm	_AV_BUFFER_FLAG_READONLY,4,2    ## @AV_BUFFER_FLAG_READONLY
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initializing RKMPP decoder.\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Unknown codec type (%d).\n"

	.comm	_AVERROR_UNKNOWN,4,2            ## @AVERROR_UNKNOWN
	.comm	_MPP_CTX_DEC,4,2                ## @MPP_CTX_DEC
	.comm	_MPP_OK,4,2                     ## @MPP_OK
L_.str.2:                               ## @.str.2
	.asciz	"Codec type (%d) unsupported by MPP\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to create MPP context (code = %d).\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to initialize MPP context (code = %d).\n"

	.comm	_MPP_POLL_BLOCK,4,2             ## @MPP_POLL_BLOCK
	.comm	_MPP_SET_OUTPUT_BLOCK,4,2       ## @MPP_SET_OUTPUT_BLOCK
L_.str.5:                               ## @.str.5
	.asciz	"Failed to set blocking mode on MPI (code = %d).\n"

	.comm	_RECEIVE_FRAME_TIMEOUT,4,2      ## @RECEIVE_FRAME_TIMEOUT
	.comm	_MPP_SET_OUTPUT_BLOCK_TIMEOUT,4,2 ## @MPP_SET_OUTPUT_BLOCK_TIMEOUT
L_.str.6:                               ## @.str.6
	.asciz	"Failed to set block timeout on MPI (code = %d).\n"

	.comm	_MPP_BUFFER_TYPE_ION,4,2        ## @MPP_BUFFER_TYPE_ION
L_.str.7:                               ## @.str.7
	.asciz	"Failed to retrieve buffer group (code = %d)\n"

	.comm	_MPP_DEC_SET_EXT_BUF_GROUP,4,2  ## @MPP_DEC_SET_EXT_BUF_GROUP
L_.str.8:                               ## @.str.8
	.asciz	"Failed to assign buffer group (code = %d)\n"

	.comm	_FRAMEGROUP_MAX_FRAMES,4,2      ## @FRAMEGROUP_MAX_FRAMES
L_.str.9:                               ## @.str.9
	.asciz	"Failed to set buffer group limit (code = %d)\n"

L_.str.10:                              ## @.str.10
	.asciz	"RKMPP decoder initialized successfully.\n"

	.comm	_AV_HWDEVICE_TYPE_DRM,4,2       ## @AV_HWDEVICE_TYPE_DRM
L_.str.11:                              ## @.str.11
	.asciz	"Failed to initialize RKMPP decoder.\n"

	.no_dead_strip	_rkmpp_init_decoder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rkmpp_init_decoder
_rkmpp_init_decoder:                    ; @rkmpp_init_decoder
	.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	x21, [x0, #8]
Lloh0:
	adrp	x8, _AV_PIX_FMT_DRM_PRIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_DRM_PRIME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	mov	w0, #32
	bl	_av_mallocz
Lloh3:
	adrp	x24, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x24, [x24, _AV_LOG_ERROR@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x8, _rkmpp_release_decoder@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rkmpp_release_decoder@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _AV_BUFFER_FLAG_READONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_BUFFER_FLAG_READONLY@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	w1, #32
	mov	x3, #0
	bl	_av_buffer_create
	str	w0, [x21]
	cbz	w0, LBB0_4
; %bb.2:
Lloh11:
	adrp	x25, _AV_LOG_DEBUG@GOTPAGE
Lloh12:
	ldr	x25, [x25, _AV_LOG_DEBUG@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	x0, x19
	bl	_rkmpp_get_codingtype
Lloh15:
	adrp	x8, _MPP_VIDEO_CodingUnused@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MPP_VIDEO_CodingUnused@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
	ldr	w1, [x24]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_4:
	mov	x0, x20
	bl	_av_free
LBB0_5:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_6:
	mov	x20, x0
	b	LBB0_20
LBB0_7:
	mov	x23, x0
Lloh23:
	adrp	x27, _MPP_CTX_DEC@GOTPAGE
Lloh24:
	ldr	x27, [x27, _MPP_CTX_DEC@GOTPAGEOFF]
	ldr	w0, [x27]
	mov	x1, x23
	bl	_mpp_check_support_format
Lloh25:
	adrp	x26, _MPP_OK@GOTPAGE
Lloh26:
	ldr	x26, [x26, _MPP_OK@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.8:
	add	x21, x20, #16
	add	x22, x20, #24
	mov	x0, x21
	mov	x1, x22
	bl	_mpp_create
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.9:
	ldr	w0, [x21]
	ldr	w1, [x27]
	mov	x2, x23
	bl	_mpp_init
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.10:
Lloh27:
	adrp	x8, _MPP_POLL_BLOCK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MPP_POLL_BLOCK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w0, [x21]
Lloh30:
	adrp	x9, _MPP_SET_OUTPUT_BLOCK@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MPP_SET_OUTPUT_BLOCK@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x9]
	add	x2, sp, #8
	blr	x8
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.11:
Lloh33:
	adrp	x8, _RECEIVE_FRAME_TIMEOUT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RECEIVE_FRAME_TIMEOUT@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w0, [x21]
Lloh36:
	adrp	x9, _MPP_SET_OUTPUT_BLOCK_TIMEOUT@GOTPAGE
Lloh37:
	ldr	x9, [x9, _MPP_SET_OUTPUT_BLOCK_TIMEOUT@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x9]
	add	x2, sp, #12
	blr	x8
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_18
; %bb.12:
	add	x23, x20, #8
Lloh39:
	adrp	x8, _MPP_BUFFER_TYPE_ION@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MPP_BUFFER_TYPE_ION@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_mpp_buffer_group_get_internal
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_22
; %bb.13:
	ldr	w1, [x24]
	str	x0, [sp]
Lloh42:
	adrp	x2, l_.str.7@PAGE
Lloh43:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_19
LBB0_14:
	ldr	w1, [x24]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh44:
	adrp	x2, l_.str.2@PAGE
Lloh45:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_19
LBB0_15:
	ldr	w1, [x24]
	str	x0, [sp]
Lloh46:
	adrp	x2, l_.str.3@PAGE
Lloh47:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_19
LBB0_16:
	ldr	w1, [x24]
	str	x0, [sp]
Lloh48:
	adrp	x2, l_.str.4@PAGE
Lloh49:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_19
LBB0_17:
	ldr	w1, [x24]
	str	x0, [sp]
Lloh50:
	adrp	x2, l_.str.5@PAGE
Lloh51:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_19
LBB0_18:
	ldr	w1, [x24]
	str	x0, [sp]
Lloh52:
	adrp	x2, l_.str.6@PAGE
Lloh53:
	add	x2, x2, l_.str.6@PAGEOFF
LBB0_19:
	mov	x0, x19
	bl	_av_log
Lloh54:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh55:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
Lloh56:
	ldr	w20, [x8]
LBB0_20:
	ldr	w1, [x24]
Lloh57:
	adrp	x2, l_.str.11@PAGE
Lloh58:
	add	x2, x2, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	x0, x19
	bl	_rkmpp_close_decoder
LBB0_21:
	mov	x0, x20
	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_22:
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w0, [x21]
Lloh59:
	adrp	x9, _MPP_DEC_SET_EXT_BUF_GROUP@GOTPAGE
Lloh60:
	ldr	x9, [x9, _MPP_DEC_SET_EXT_BUF_GROUP@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x9]
	ldr	x2, [x23]
	blr	x8
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_24
; %bb.23:
	ldr	w1, [x24]
	str	x0, [sp]
Lloh62:
	adrp	x2, l_.str.8@PAGE
Lloh63:
	add	x2, x2, l_.str.8@PAGEOFF
	b	LBB0_19
LBB0_24:
	ldr	x0, [x23]
Lloh64:
	adrp	x8, _FRAMEGROUP_MAX_FRAMES@GOTPAGE
Lloh65:
	ldr	x8, [x8, _FRAMEGROUP_MAX_FRAMES@GOTPAGEOFF]
Lloh66:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_mpp_buffer_group_limit_config
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_26
; %bb.25:
	ldr	w1, [x24]
	str	x0, [sp]
Lloh67:
	adrp	x2, l_.str.9@PAGE
Lloh68:
	add	x2, x2, l_.str.9@PAGEOFF
	b	LBB0_19
LBB0_26:
	mov	w8, #1
	str	w8, [x20]
	ldr	w1, [x25]
Lloh69:
	adrp	x2, l_.str.10@PAGE
Lloh70:
	add	x2, x2, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh71:
	adrp	x8, _AV_HWDEVICE_TYPE_DRM@GOTPAGE
Lloh72:
	ldr	x8, [x8, _AV_HWDEVICE_TYPE_DRM@GOTPAGEOFF]
Lloh73:
	ldr	w0, [x8]
	bl	_av_hwdevice_ctx_alloc
	str	w0, [x20, #4]
	cbz	w0, LBB0_5
; %bb.27:
	bl	_av_hwdevice_ctx_init
	tbnz	w0, #31, LBB0_6
; %bb.28:
	mov	w20, #0
	b	LBB0_21
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh69, Lloh70
	.cfi_endproc
                                        ; -- End function
	.comm	_MPP_VIDEO_CodingUnused,8,3     ; @MPP_VIDEO_CodingUnused
	.comm	_AV_PIX_FMT_DRM_PRIME,4,2       ; @AV_PIX_FMT_DRM_PRIME
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_rkmpp_release_decoder,4,2      ; @rkmpp_release_decoder
	.comm	_AV_BUFFER_FLAG_READONLY,4,2    ; @AV_BUFFER_FLAG_READONLY
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initializing RKMPP decoder.\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Unknown codec type (%d).\n"

	.comm	_AVERROR_UNKNOWN,4,2            ; @AVERROR_UNKNOWN
	.comm	_MPP_CTX_DEC,4,2                ; @MPP_CTX_DEC
	.comm	_MPP_OK,4,2                     ; @MPP_OK
l_.str.2:                               ; @.str.2
	.asciz	"Codec type (%d) unsupported by MPP\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to create MPP context (code = %d).\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to initialize MPP context (code = %d).\n"

	.comm	_MPP_POLL_BLOCK,4,2             ; @MPP_POLL_BLOCK
	.comm	_MPP_SET_OUTPUT_BLOCK,4,2       ; @MPP_SET_OUTPUT_BLOCK
l_.str.5:                               ; @.str.5
	.asciz	"Failed to set blocking mode on MPI (code = %d).\n"

	.comm	_RECEIVE_FRAME_TIMEOUT,4,2      ; @RECEIVE_FRAME_TIMEOUT
	.comm	_MPP_SET_OUTPUT_BLOCK_TIMEOUT,4,2 ; @MPP_SET_OUTPUT_BLOCK_TIMEOUT
l_.str.6:                               ; @.str.6
	.asciz	"Failed to set block timeout on MPI (code = %d).\n"

	.comm	_MPP_BUFFER_TYPE_ION,4,2        ; @MPP_BUFFER_TYPE_ION
l_.str.7:                               ; @.str.7
	.asciz	"Failed to retrieve buffer group (code = %d)\n"

	.comm	_MPP_DEC_SET_EXT_BUF_GROUP,4,2  ; @MPP_DEC_SET_EXT_BUF_GROUP
l_.str.8:                               ; @.str.8
	.asciz	"Failed to assign buffer group (code = %d)\n"

	.comm	_FRAMEGROUP_MAX_FRAMES,4,2      ; @FRAMEGROUP_MAX_FRAMES
l_.str.9:                               ; @.str.9
	.asciz	"Failed to set buffer group limit (code = %d)\n"

l_.str.10:                              ; @.str.10
	.asciz	"RKMPP decoder initialized successfully.\n"

	.comm	_AV_HWDEVICE_TYPE_DRM,4,2       ; @AV_HWDEVICE_TYPE_DRM
l_.str.11:                              ; @.str.11
	.asciz	"Failed to initialize RKMPP decoder.\n"

	.no_dead_strip	_rkmpp_init_decoder
.subsections_via_symbols
