	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decodePacket
_decodePacket:                          ## @decodePacket
	.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	(%rdi), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_1
LBB0_6:
	leaq	4(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_decodeFrame
	jmp	LBB0_7
LBB0_1:
	movl	28(%rbx), %edi
	callq	_avcodec_alloc_context3
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_setup_extradata
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_hb_avcodec_free_context
	movq	%r15, 16(%rbx)
	movq	_FF_BUG_AUTODETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r15)
	movq	_AV_EF_CRCCHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	_FF_EC_GUESS_MVS@GOTPCREL(%rip), %rax
	movq	_FF_EC_DEBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movq	$0, -32(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	leaq	-32(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set
	movq	8(%rbx), %rax
	movq	_HBTF_NO_IDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	leaq	-32(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set
LBB0_4:
	movq	16(%rbx), %rdi
	movl	28(%rbx), %esi
	movl	24(%rbx), %ecx
	leaq	-32(%rbp), %rdx
	callq	_hb_avcodec_open
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	leaq	-32(%rbp), %rdi
	callq	_av_dict_free
	leaq	L_.str.4(%rip), %rdi
	callq	_hb_log
	movq	(%r14), %rdi
	addq	$24, %rdi
	callq	_av_freep
	movq	(%r14), %rax
	movq	$0, 16(%rax)
LBB0_7:
	movq	_HB_WORK_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	8(%rax), %edx
	movl	%edx, 8(%rcx)
	movl	4(%rax), %eax
	movl	%eax, 4(%rcx)
	leaq	-32(%rbp), %rdi
	callq	_av_dict_free
	movl	$1, (%rbx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_WORK_OK,4,2                 ## @HB_WORK_OK
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refcounted_frames"

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

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

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

L_.str.4:                               ## @.str.4
	.asciz	"decavcodecvWork: avcodec_open failed"

	.comm	_MFX_IOPATTERN_OUT_VIDEO_MEMORY,8,3 ## @MFX_IOPATTERN_OUT_VIDEO_MEMORY
	.no_dead_strip	_decodePacket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decodePacket
_decodePacket:                          ; @decodePacket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x19, [x0]
	ldr	w8, [x19]
	cbz	w8, LBB0_2
LBB0_1:
	add	x1, x19, #4
	mov	x0, x19
	bl	_decodeFrame
	b	LBB0_7
LBB0_2:
	ldr	w0, [x19, #28]
	bl	_avcodec_alloc_context3
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_setup_extradata
	cbnz	x0, LBB0_7
; %bb.3:
	add	x20, x19, #16
	mov	x0, x20
	bl	_hb_avcodec_free_context
	str	x21, [x19, #16]
Lloh0:
	adrp	x8, _FF_BUG_AUTODETECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FF_BUG_AUTODETECT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AV_EF_CRCCHECK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_EF_CRCCHECK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #40]
Lloh6:
	adrp	x8, _FF_EC_GUESS_MVS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FF_EC_GUESS_MVS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _FF_EC_DEBLOCK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FF_EC_DEBLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
	str	xzr, [sp, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w3, #0
	bl	_av_dict_set
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _HBTF_NO_IDR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _HBTF_NO_IDR@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh21:
	adrp	x2, l_.str.3@PAGE
Lloh22:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #8
	mov	w3, #0
	bl	_av_dict_set
LBB0_5:
	ldr	x0, [x19, #16]
	ldp	w3, w1, [x19, #24]
	add	x2, sp, #8
	bl	_hb_avcodec_open
	cbz	x0, LBB0_8
; %bb.6:
	add	x0, sp, #8
	bl	_av_dict_free
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_hb_log
	ldr	x8, [x20]
	add	x0, x8, #24
	bl	_av_freep
	ldr	x8, [x20]
	str	xzr, [x8, #16]
LBB0_7:
Lloh25:
	adrp	x8, _HB_WORK_OK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HB_WORK_OK@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	ldp	x8, x9, [x19, #8]
	ldur	d0, [x8, #4]
	stur	d0, [x9, #4]
	add	x0, sp, #8
	bl	_av_dict_free
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_WORK_OK,4,2                 ; @HB_WORK_OK
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refcounted_frames"

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

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

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

l_.str.4:                               ; @.str.4
	.asciz	"decavcodecvWork: avcodec_open failed"

	.comm	_MFX_IOPATTERN_OUT_VIDEO_MEMORY,8,3 ; @MFX_IOPATTERN_OUT_VIDEO_MEMORY
	.no_dead_strip	_decodePacket
.subsections_via_symbols
