	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decavcodecvInit
_decavcodecvInit:                       ## @decavcodecvInit
	.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
	movl	$1, %edi
	movl	$136, %esi
	callq	_calloc
	movq	%rax, %r12
	movq	%rax, 16(%r15)
	movq	%r14, 112(%rax)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 128(%r12)
	testq	%r14, %r14
	movq	%r14, %rax
	cmoveq	%r15, %rax
	movq	8(%rax), %rax
	movq	%rax, 32(%r12)
	movq	_HBTF_RAW_VIDEO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	$0, 128(%r12)
LBB0_2:
	movq	%r12, %rdi
	addq	$120, %rdi
	callq	_hb_buffer_list_clear
	movq	112(%r12), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	cmpl	$0, 32(%rax)
	jne	LBB0_6
## %bb.5:
	movq	_HB_FFMPEG_THREADS_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
LBB0_6:
	movl	(%r15), %edi
	callq	_avcodec_find_decoder
	movq	%rax, 56(%r12)
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	%rax, %rdi
	callq	_avcodec_alloc_context3
	movq	%rax, 40(%r12)
	movq	_FF_BUG_AUTODETECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 44(%rax)
	movq	_AV_EF_CRCCHECK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rax)
	movq	_FF_EC_GUESS_MVS@GOTPCREL(%rip), %rcx
	movq	_FF_EC_DEBLOCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%edx, (%rax)
	movq	32(%r12), %rcx
	movq	24(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.8:
	movq	(%rdx), %rdx
	movq	8(%rcx), %rcx
	movq	(%rdx,%rcx,8), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_avcodec_parameters_to_context
	movq	$0, -48(%rbp)
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	leaq	-48(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set
	movq	32(%r12), %rax
	movq	_HBTF_NO_IDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	leaq	-48(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set
LBB0_10:
	movq	40(%r12), %rdi
	movq	56(%r12), %rsi
	movl	48(%r12), %ecx
	leaq	-48(%rbp), %rdx
	callq	_hb_avcodec_open
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	leaq	-48(%rbp), %rdi
	callq	_av_dict_free
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_27
LBB0_12:
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
	jmp	LBB0_28
LBB0_13:
	movl	(%r15), %edi
	callq	_av_parser_init
	movl	%eax, 24(%r12)
	jmp	LBB0_15
LBB0_14:
	movq	32(%r12), %rax
	movq	40(%r12), %rcx
	movl	20(%rax), %edx
	movl	%edx, 20(%rcx)
	movl	16(%rax), %eax
	movl	%eax, 16(%rcx)
	leaq	-48(%rbp), %rdi
	callq	_av_dict_free
	movl	$1, (%r12)
LBB0_15:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_26
## %bb.16:
	testq	%r14, %r14
	je	LBB0_29
## %bb.17:
	movl	(%r14), %edi
	callq	_hb_list_count
	testq	%rax, %rax
	jle	LBB0_29
## %bb.18:
	movl	(%r14), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_hb_list_item
	testq	%rax, %rax
	je	LBB0_29
## %bb.19:
	movq	%rax, %rbx
	movl	$1, %r15d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	%rbx, %rsi
	callq	_hb_list_add
LBB0_21:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	(%r14), %edi
	leal	1(%r15), %r13d
	movl	%r15d, %esi
	callq	_hb_list_item
	movq	%rax, %rbx
	movl	%r13d, %r15d
	testq	%rax, %rax
	je	LBB0_30
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	_CC608SUB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	8(%rbx), %rax
	movq	_HB_SUBTITLE_EMBEDDED_CC_TAG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	jne	LBB0_20
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	xorl	%eax, %eax
	callq	_hb_list_init
	movq	%rax, %rdi
	movq	%rax, 8(%r12)
	jmp	LBB0_20
LBB0_26:
	leaq	L_.str.6(%rip), %rdi
LBB0_27:
	xorl	%eax, %eax
	callq	_hb_log
LBB0_28:
	movl	$1, %r15d
LBB0_29:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	xorl	%r15d, %r15d
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_HBTF_RAW_VIDEO,4,2             ## @HBTF_RAW_VIDEO
	.comm	_HB_FFMPEG_THREADS_AUTO,4,2     ## @HB_FFMPEG_THREADS_AUTO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"decavcodecvInit: failed to find codec for id (%d)"

	.comm	_FF_BUG_AUTODETECT,4,2          ## @FF_BUG_AUTODETECT
	.comm	_AV_EF_CRCCHECK,4,2             ## @AV_EF_CRCCHECK
	.comm	_FF_EC_GUESS_MVS,4,2            ## @FF_EC_GUESS_MVS
	.comm	_FF_EC_DEBLOCK,4,2              ## @FF_EC_DEBLOCK
L_.str.1:                               ## @.str.1
	.asciz	"refcounted_frames"

L_.str.2:                               ## @.str.2
	.asciz	"1"

	.comm	_HBTF_NO_IDR,4,2                ## @HBTF_NO_IDR
L_.str.3:                               ## @.str.3
	.asciz	"flags"

L_.str.4:                               ## @.str.4
	.asciz	"output_corrupt"

L_.str.5:                               ## @.str.5
	.asciz	"decavcodecvInit: avcodec_open failed"

L_.str.6:                               ## @.str.6
	.asciz	"decavcodecvInit: av_frame_alloc failed"

	.comm	_CC608SUB,8,3                   ## @CC608SUB
	.comm	_HB_SUBTITLE_EMBEDDED_CC_TAG,8,3 ## @HB_SUBTITLE_EMBEDDED_CC_TAG
	.comm	_AV_CODEC_ID_HEVC,8,3           ## @AV_CODEC_ID_HEVC
	.comm	_HB_QSV_CAP_RATECONTROL_LA,4,2  ## @HB_QSV_CAP_RATECONTROL_LA
	.comm	_MFX_IOPATTERN_OUT_SYSTEM_MEMORY,8,3 ## @MFX_IOPATTERN_OUT_SYSTEM_MEMORY
	.comm	_MFX_IOPATTERN_OUT_VIDEO_MEMORY,8,3 ## @MFX_IOPATTERN_OUT_VIDEO_MEMORY
	.comm	_hb_qsv_get_buffer,4,2          ## @hb_qsv_get_buffer
	.comm	_hb_qsv_get_format,4,2          ## @hb_qsv_get_format
	.no_dead_strip	_decavcodecvInit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decavcodecvInit
_decavcodecvInit:                       ; @decavcodecvInit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x21, x0
	mov	w0, #1
	mov	w1, #136
	bl	_calloc
	mov	x20, x0
	str	x0, [x21, #16]
	str	x19, [x0, #112]
Lloh0:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x0, #128]
	add	x8, x21, #8
	add	x9, x19, #8
	cmp	x19, #0
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
	str	x8, [x0, #32]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _HBTF_RAW_VIDEO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HBTF_RAW_VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	str	xzr, [x20, #128]
LBB0_2:
	add	x0, x20, #120
	bl	_hb_buffer_list_clear
	ldr	x8, [x20, #112]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w8, [x8, #32]
	cbnz	w8, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _HB_FFMPEG_THREADS_AUTO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HB_FFMPEG_THREADS_AUTO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #48]
LBB0_6:
	ldr	w0, [x21]
	bl	_avcodec_find_decoder
	str	x0, [x20, #56]
	cbz	x0, LBB0_12
; %bb.7:
	bl	_avcodec_alloc_context3
	str	x0, [x20, #40]
Lloh9:
	adrp	x8, _FF_BUG_AUTODETECT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FF_BUG_AUTODETECT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _AV_EF_CRCCHECK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AV_EF_CRCCHECK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #40]
Lloh15:
	adrp	x8, _FF_EC_GUESS_MVS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FF_EC_GUESS_MVS@GOTPAGEOFF]
Lloh17:
	adrp	x9, _FF_EC_DEBLOCK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FF_EC_DEBLOCK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0]
	ldr	x8, [x20, #32]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_13
; %bb.8:
	ldr	x9, [x9]
	ldr	x8, [x8, #8]
	ldr	x8, [x9, x8, lsl #3]
	ldr	w1, [x8]
	bl	_avcodec_parameters_to_context
	str	xzr, [sp, #8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh23:
	adrp	x2, l_.str.2@PAGE
Lloh24:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	w3, #0
	bl	_av_dict_set
	ldr	x8, [x20, #32]
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _HBTF_NO_IDR@GOTPAGE
Lloh26:
	ldr	x9, [x9, _HBTF_NO_IDR@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh30:
	adrp	x2, l_.str.4@PAGE
Lloh31:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x0, sp, #8
	mov	w3, #0
	bl	_av_dict_set
LBB0_10:
	ldr	x0, [x20, #40]
	ldr	x1, [x20, #56]
	ldr	w3, [x20, #48]
	add	x2, sp, #8
	bl	_hb_avcodec_open
	cbz	x0, LBB0_14
; %bb.11:
	add	x0, sp, #8
	bl	_av_dict_free
Lloh32:
	adrp	x0, l_.str.5@PAGE
Lloh33:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_27
LBB0_12:
	ldr	w8, [x21]
	str	x8, [sp]
Lloh34:
	adrp	x0, l_.str@PAGE
Lloh35:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_27
LBB0_13:
	ldr	w0, [x21]
	bl	_av_parser_init
	str	w0, [x20, #24]
	b	LBB0_15
LBB0_14:
	ldp	x8, x9, [x20, #32]
	ldr	d0, [x8, #16]
	str	d0, [x9, #16]
	add	x0, sp, #8
	bl	_av_dict_free
	mov	w8, #1
	str	w8, [x20]
LBB0_15:
	bl	_av_frame_alloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_26
; %bb.16:
	cbz	x19, LBB0_29
; %bb.17:
	ldr	w0, [x19]
	bl	_hb_list_count
	cmp	x0, #1
	b.lt	LBB0_29
; %bb.18:
	ldr	w0, [x19]
	mov	w1, #0
	bl	_hb_list_item
	cbz	x0, LBB0_28
; %bb.19:
	mov	x22, x0
	mov	w21, #1
Lloh36:
	adrp	x23, _CC608SUB@GOTPAGE
Lloh37:
	ldr	x23, [x23, _CC608SUB@GOTPAGEOFF]
Lloh38:
	adrp	x24, _HB_SUBTITLE_EMBEDDED_CC_TAG@GOTPAGE
Lloh39:
	ldr	x24, [x24, _HB_SUBTITLE_EMBEDDED_CC_TAG@GOTPAGEOFF]
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	x1, x22
	bl	_hb_list_add
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	w0, [x19]
	add	w25, w21, #1
	mov	x1, x21
	bl	_hb_list_item
	mov	x22, x0
	mov	x21, x25
	cbz	x0, LBB0_28
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x22, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x0, [x20, #8]
	cbnz	x0, LBB0_20
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	bl	_hb_list_init
	str	x0, [x20, #8]
	b	LBB0_20
LBB0_26:
Lloh40:
	adrp	x0, l_.str.6@PAGE
Lloh41:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_27:
	bl	_hb_log
	mov	w0, #1
LBB0_28:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_29:
	mov	w0, #0
	b	LBB0_28
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_HBTF_RAW_VIDEO,4,2             ; @HBTF_RAW_VIDEO
	.comm	_HB_FFMPEG_THREADS_AUTO,4,2     ; @HB_FFMPEG_THREADS_AUTO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"decavcodecvInit: failed to find codec for id (%d)"

	.comm	_FF_BUG_AUTODETECT,4,2          ; @FF_BUG_AUTODETECT
	.comm	_AV_EF_CRCCHECK,4,2             ; @AV_EF_CRCCHECK
	.comm	_FF_EC_GUESS_MVS,4,2            ; @FF_EC_GUESS_MVS
	.comm	_FF_EC_DEBLOCK,4,2              ; @FF_EC_DEBLOCK
l_.str.1:                               ; @.str.1
	.asciz	"refcounted_frames"

l_.str.2:                               ; @.str.2
	.asciz	"1"

	.comm	_HBTF_NO_IDR,4,2                ; @HBTF_NO_IDR
l_.str.3:                               ; @.str.3
	.asciz	"flags"

l_.str.4:                               ; @.str.4
	.asciz	"output_corrupt"

l_.str.5:                               ; @.str.5
	.asciz	"decavcodecvInit: avcodec_open failed"

l_.str.6:                               ; @.str.6
	.asciz	"decavcodecvInit: av_frame_alloc failed"

	.comm	_CC608SUB,8,3                   ; @CC608SUB
	.comm	_HB_SUBTITLE_EMBEDDED_CC_TAG,8,3 ; @HB_SUBTITLE_EMBEDDED_CC_TAG
	.comm	_AV_CODEC_ID_HEVC,8,3           ; @AV_CODEC_ID_HEVC
	.comm	_HB_QSV_CAP_RATECONTROL_LA,4,2  ; @HB_QSV_CAP_RATECONTROL_LA
	.comm	_MFX_IOPATTERN_OUT_SYSTEM_MEMORY,8,3 ; @MFX_IOPATTERN_OUT_SYSTEM_MEMORY
	.comm	_MFX_IOPATTERN_OUT_VIDEO_MEMORY,8,3 ; @MFX_IOPATTERN_OUT_VIDEO_MEMORY
	.comm	_hb_qsv_get_buffer,4,2          ; @hb_qsv_get_buffer
	.comm	_hb_qsv_get_format,4,2          ; @hb_qsv_get_format
	.no_dead_strip	_decavcodecvInit
.subsections_via_symbols
