	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function func_open_video_decoder
_func_open_video_decoder:               ## @func_open_video_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r15
	cmpq	$0, 8(%rsi)
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_ffpipenode_create_video_decoder_from_ios_videotoolbox
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r14
	movl	$1, %edx
	movq	_FFP_PROPV_DECODER_VIDEOTOOLBOX@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_ALOGE
LBB0_4:
	movq	%rbx, %rdi
	callq	_ffpipenode_create_video_decoder_from_ffplay
	movq	%rax, %r14
	xorl	%edx, %edx
	movq	_FFP_PROPV_DECODER_AVCODEC@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	%edx, (%r15)
	movq	_FFP_MSG_VIDEO_DECODER_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ffp_notify_msg2
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vtb fail!!! switch to ffmpeg decode!!!! \n"

	.comm	_FFP_PROPV_DECODER_AVCODEC,4,2  ## @FFP_PROPV_DECODER_AVCODEC
	.comm	_FFP_PROPV_DECODER_VIDEOTOOLBOX,4,2 ## @FFP_PROPV_DECODER_VIDEOTOOLBOX
	.comm	_FFP_MSG_VIDEO_DECODER_OPEN,4,2 ## @FFP_MSG_VIDEO_DECODER_OPEN
	.no_dead_strip	_func_open_video_decoder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function func_open_video_decoder
_func_open_video_decoder:               ; @func_open_video_decoder
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldr	x21, [x0]
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_ffpipenode_create_video_decoder_from_ios_videotoolbox
	cbz	x0, LBB0_3
; %bb.2:
	mov	x20, x0
	mov	w2, #1
Lloh0:
	adrp	x8, _FFP_PROPV_DECODER_VIDEOTOOLBOX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FFP_PROPV_DECODER_VIDEOTOOLBOX@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ALOGE
LBB0_4:
	mov	x0, x19
	bl	_ffpipenode_create_video_decoder_from_ffplay
	mov	x20, x0
	mov	w2, #0
Lloh4:
	adrp	x8, _FFP_PROPV_DECODER_AVCODEC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FFP_PROPV_DECODER_AVCODEC@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x19]
	str	w2, [x21]
Lloh6:
	adrp	x8, _FFP_MSG_VIDEO_DECODER_OPEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FFP_MSG_VIDEO_DECODER_OPEN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ffp_notify_msg2
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vtb fail!!! switch to ffmpeg decode!!!! \n"

	.comm	_FFP_PROPV_DECODER_AVCODEC,4,2  ; @FFP_PROPV_DECODER_AVCODEC
	.comm	_FFP_PROPV_DECODER_VIDEOTOOLBOX,4,2 ; @FFP_PROPV_DECODER_VIDEOTOOLBOX
	.comm	_FFP_MSG_VIDEO_DECODER_OPEN,4,2 ; @FFP_MSG_VIDEO_DECODER_OPEN
	.no_dead_strip	_func_open_video_decoder
.subsections_via_symbols
