	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decsubInit
_decsubInit:                            ## @decsubInit
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_AV_CODEC_ID_HDMV_PGS_SUBTITLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_avcodec_find_decoder
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_avcodec_alloc_context3
	movq	%rax, %r13
	movq	%r12, 8(%rax)
	movl	$1, %edi
	movl	$48, %esi
	callq	_calloc
	movq	%rax, %rbx
	movq	%rax, 8(%r15)
	leaq	44(%rax), %rdi
	callq	_hb_buffer_list_clear
	leaq	40(%rbx), %rdi
	callq	_hb_buffer_list_clear
	movl	$1, (%rbx)
	movq	$0, 32(%rbx)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r13, 8(%rbx)
	movq	(%r15), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 4(%r13)
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	%r14, 16(%rbx)
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %r15
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_hb_avcodec_open
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_av_dict_free
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_hb_log
	movl	$1, %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_HDMV_PGS_SUBTITLE,4,2 ## @AV_CODEC_ID_HDMV_PGS_SUBTITLE
	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"decsubInit: avcodec_open failed"

	.no_dead_strip	_decsubInit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decsubInit
_decsubInit:                            ; @decsubInit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _AV_CODEC_ID_HDMV_PGS_SUBTITLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_CODEC_ID_HDMV_PGS_SUBTITLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_avcodec_find_decoder
	mov	x21, x0
	bl	_avcodec_alloc_context3
	mov	x22, x0
	str	x21, [x0, #8]
	mov	w24, #1
	mov	w0, #1
	mov	w1, #48
	bl	_calloc
	mov	x23, x0
	str	x0, [x20, #8]
	add	x0, x0, #44
	bl	_hb_buffer_list_clear
	add	x0, x23, #40
	bl	_hb_buffer_list_clear
	str	w24, [x23]
	str	xzr, [x23, #32]
Lloh3:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x23, #24]
	ldr	x8, [x20]
	ldr	d0, [x8]
	str	d0, [x22]
	stp	x22, x19, [x23, #8]
	str	xzr, [sp, #8]
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	w3, #0
	bl	_hb_avcodec_open
	mov	x19, x0
	add	x0, sp, #8
	bl	_av_dict_free
	cbz	x19, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_log
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_HDMV_PGS_SUBTITLE,4,2 ; @AV_CODEC_ID_HDMV_PGS_SUBTITLE
	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"decsubInit: avcodec_open failed"

	.no_dead_strip	_decsubInit
.subsections_via_symbols
