	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decavcodecvWork
_decavcodecvWork:                       ## @decavcodecvWork
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movq	(%rsi), %r9
	movq	_HB_WORK_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	$0, (%rdx)
	movq	48(%r9), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movslq	(%r9), %rcx
	leaq	(%rax,%rcx,4), %rdi
	movq	64(%r9), %rdx
	subq	%rcx, %rdx
	xorl	%esi, %esi
	movq	%r9, %r15
	callq	_memset
	movq	%r15, %r9
LBB0_2:
	movq	56(%r9), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, 112(%rbx)
	movq	$0, 56(%r9)
LBB0_4:
	movl	8(%r9), %eax
	movq	_HB_BUF_FLAG_EOF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.5:
	movq	%r9, %r15
	movq	80(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	cmpq	$0, 8(%rax)
	je	LBB0_9
## %bb.7:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_videoParserFlush
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_decodeFrame
	testq	%rax, %rax
	jne	LBB0_8
LBB0_9:
	addq	$28, %rbx
	movq	%r15, %rdi
	callq	_hb_buffer_dup
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_hb_buffer_list_append
	movq	%rbx, %rdi
	callq	_hb_buffer_list_clear
	movq	%rax, (%r14)
	movq	_HB_WORK_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_38
LBB0_10:
	movq	16(%r9), %r10
	movq	24(%r9), %rcx
	movq	40(%r9), %r11
	testq	%rcx, %rcx
	jle	LBB0_13
## %bb.11:
	movq	%rbx, %rsi
	movq	%rcx, (%rbx)
	movl	36(%r9), %edx
	movl	%edx, 104(%rbx)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %r10
	jne	LBB0_14
## %bb.12:
	movq	16(%rsi), %rdx
	incq	%rdx
	movq	%rdx, 8(%rsi)
	jmp	LBB0_17
LBB0_13:
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	jmp	LBB0_15
LBB0_14:
	movq	%r10, 8(%rsi)
LBB0_15:
	cmpq	%rdx, %r10
	movq	%rbx, %rsi
	je	LBB0_17
## %bb.16:
	movq	%r10, 16(%rsi)
LBB0_17:
	cmpl	$0, 24(%rsi)
	jne	LBB0_19
## %bb.18:
	movl	36(%r9), %edx
	movq	%rbx, %rsi
	movl	%edx, 52(%rbx)
	movq	%rcx, 32(%rbx)
	movl	32(%r9), %ecx
	movl	%ecx, 48(%rbx)
	movq	_HB_FLAG_DISCARD@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, 40(%rbx)
LBB0_19:
	cmpl	$0, (%r9)
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	jle	LBB0_35
## %bb.20:
	xorl	%r13d, %r13d
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%rbx, %r12
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_22 Depth=1
	addl	%ebx, %r13d
	cmpl	(%r9), %r13d
	jge	LBB0_37
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, -72(%rbp)
	movl	$0, -44(%rbp)
	movq	96(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	80(%r12), %rsi
	movl	(%rsi), %r14d
	movslq	%r13d, %rax
	leaq	(,%rax,4), %r8
	addq	48(%r9), %r8
	movl	(%r9), %r9d
	subl	%eax, %r9d
	subq	$8, %rsp
	leaq	-72(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	pushq	$0
	pushq	%r11
	pushq	%r10
	callq	_av_parser_parse2
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	80(%r12), %rax
	movq	96(%r12), %rcx
	movq	(%rcx), %r8
	movq	8(%rcx), %rsi
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	movl	(%rax), %edi
	cmpl	%edi, %r14d
	jne	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	%r10, %r11
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	48(%r9), %rax
	movq	%rax, -72(%rbp)
	movl	(%r9), %ebx
	movl	%ebx, -44(%rbp)
	movq	%r10, %rsi
	movq	%r11, %r8
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	%r10, %r14
	movq	%r8, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_avcodec_find_decoder
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %r8
	movq	%r14, %r10
	movl	%eax, 88(%r12)
	movq	%r14, %r11
LBB0_27:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	-72(%rbp), %rcx
	movl	-44(%rbp), %eax
	testq	%rcx, %rcx
	je	LBB0_32
## %bb.28:                              ##   in Loop: Header=BB0_22 Depth=1
	testl	%eax, %eax
	jle	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movq	%r11, %r14
	movq	%r12, %r15
	movq	%r10, %r12
	movq	%rcx, 72(%r15)
	movl	%eax, 44(%r15)
	movq	%rsi, 64(%r15)
	movq	%r8, 56(%r15)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_decodePacket
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_HB_WORK_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_36
## %bb.30:                              ##   in Loop: Header=BB0_22 Depth=1
	incl	(%rbx)
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movl	36(%r9), %eax
	movl	%eax, 52(%r15)
	movq	24(%r9), %rax
	movq	%rax, 32(%r15)
	movl	32(%r9), %eax
	movl	%eax, 48(%r15)
	movq	_HB_FLAG_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	8(%r9), %eax
	setne	%cl
	movl	%ecx, 40(%r15)
	movl	$0, 24(%r15)
	movl	-44(%rbp), %eax
	movq	%r12, %r10
	movq	%r14, %r11
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movq	%r15, %r12
	testl	%ebx, %ebx
	jg	LBB0_33
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	testl	%ebx, %ebx
	jle	LBB0_21
LBB0_33:                                ##   in Loop: Header=BB0_22 Depth=1
	testl	%eax, %eax
	jg	LBB0_21
## %bb.34:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	$1, 24(%r12)
	jmp	LBB0_21
LBB0_35:
	movq	%rbx, %r12
	jmp	LBB0_37
LBB0_36:
	movq	%r15, %r12
LBB0_37:
	addq	$28, %r12
	movq	%r12, %rdi
	callq	_hb_buffer_list_clear
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
LBB0_38:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_WORK_OK,4,2                 ## @HB_WORK_OK
	.comm	_HB_BUF_FLAG_EOF,4,2            ## @HB_BUF_FLAG_EOF
	.comm	_HB_WORK_DONE,4,2               ## @HB_WORK_DONE
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_HB_FLAG_DISCARD,4,2            ## @HB_FLAG_DISCARD
	.no_dead_strip	_decavcodecvWork
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decavcodecvWork
_decavcodecvWork:                       ; @decavcodecvWork
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x2
	mov	x22, x0
	ldr	x20, [x0, #8]
	ldr	x21, [x1]
Lloh0:
	adrp	x8, _HB_WORK_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HB_WORK_OK@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	str	xzr, [x2]
	ldr	x8, [x21, #48]
	cbz	x8, LBB0_2
; %bb.1:
	ldrsw	x9, [x21]
	add	x0, x8, x9, lsl #2
	ldr	x8, [x21, #64]
	sub	x2, x8, x9
	mov	w1, #0
	bl	_memset
LBB0_2:
	ldr	x8, [x21, #56]
	cbz	x8, LBB0_4
; %bb.3:
	str	x8, [x20, #112]
	str	xzr, [x21, #56]
LBB0_4:
	ldr	w8, [x21, #8]
Lloh3:
	adrp	x9, _HB_BUF_FLAG_EOF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HB_BUF_FLAG_EOF@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.5:
	ldr	x8, [x20, #80]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.7:
	mov	x0, x22
	bl	_videoParserFlush
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, #0
	bl	_decodeFrame
	cbnz	x0, LBB0_8
LBB0_9:
	add	x20, x20, #28
	mov	x0, x21
	bl	_hb_buffer_dup
	mov	x1, x0
	mov	x0, x20
	bl	_hb_buffer_list_append
	mov	x0, x20
	bl	_hb_buffer_list_clear
	str	x0, [x19]
Lloh6:
	adrp	x8, _HB_WORK_DONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HB_WORK_DONE@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	b	LBB0_34
LBB0_10:
	ldr	x7, [x21, #40]
	ldp	x25, x9, [x21, #16]
	cmp	x9, #0
	b.le	LBB0_13
; %bb.11:
	str	x9, [x20]
	ldr	w10, [x21, #36]
	str	w10, [x20, #104]
Lloh9:
	adrp	x10, _AV_NOPTS_VALUE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x25, x10
	b.ne	LBB0_14
; %bb.12:
	ldr	x10, [x20, #16]
	add	x10, x10, #1
	str	x10, [x20, #8]
	b	LBB0_16
LBB0_13:
Lloh12:
	adrp	x10, _AV_NOPTS_VALUE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x25, x10
	b.ne	LBB0_15
	b	LBB0_16
LBB0_14:
	str	x25, [x20, #8]
	cmp	x25, x10
	b.eq	LBB0_16
LBB0_15:
	str	x25, [x20, #16]
LBB0_16:
	ldr	w10, [x20, #24]
	cbnz	w10, LBB0_18
; %bb.17:
	str	x9, [x20, #32]
	ldr	d0, [x21, #32]
	str	d0, [x20, #48]
Lloh15:
	adrp	x9, _HB_FLAG_DISCARD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HB_FLAG_DISCARD@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x20, #40]
LBB0_18:
	ldr	w8, [x21]
	cmp	w8, #1
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	b.lt	LBB0_33
; %bb.19:
	mov	w28, #0
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	w8, [x21]
	add	w28, w26, w28
	cmp	w28, w8
	b.ge	LBB0_33
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #24]
	str	wzr, [sp, #20]
	ldr	x0, [x20, #96]
	cbz	x0, LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x27, x22
	ldr	x1, [x20, #80]
	ldr	w22, [x1]
	ldr	x8, [x21, #48]
	add	x4, x8, w28, sxtw #2
	ldr	w8, [x21]
	sub	w5, w8, w28
	str	wzr, [sp]
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x6, x25
	bl	_av_parser_parse2
	mov	x26, x0
	ldr	x8, [x20, #96]
	ldp	x19, x24, [x8]
Lloh18:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh20:
	ldr	x25, [x8]
	ldr	x8, [x20, #80]
	ldr	w0, [x8]
	cmp	w22, w0
	b.eq	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	bl	_avcodec_find_decoder
	str	w0, [x20, #88]
LBB0_24:                                ;   in Loop: Header=BB0_21 Depth=1
	mov	x7, x25
	mov	x22, x27
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x21, #48]
	str	x8, [sp, #24]
	ldr	w26, [x21]
	str	w26, [sp, #20]
	mov	x24, x25
	mov	x19, x7
LBB0_26:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x9, [sp, #24]
	ldr	w8, [sp, #20]
	cbz	x9, LBB0_30
; %bb.27:                               ;   in Loop: Header=BB0_21 Depth=1
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x27, x7
	stp	x24, x9, [x20, #64]
	str	w8, [x20, #44]
	str	x19, [x20, #56]
	mov	x0, x22
	bl	_decodePacket
	mov	x23, x0
Lloh21:
	adrp	x8, _HB_WORK_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HB_WORK_OK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_33
; %bb.29:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	ldr	x8, [x21, #24]
	str	x8, [x20, #32]
	ldr	d0, [x21, #32]
	str	d0, [x20, #48]
	ldr	w8, [x21, #8]
Lloh24:
	adrp	x9, _HB_FLAG_DISCARD@GOTPAGE
Lloh25:
	ldr	x9, [x9, _HB_FLAG_DISCARD@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x20, #40]
	str	wzr, [x20, #24]
	ldr	w8, [sp, #20]
	mov	x7, x27
LBB0_30:                                ;   in Loop: Header=BB0_21 Depth=1
	cmp	w26, #1
	b.lt	LBB0_20
; %bb.31:                               ;   in Loop: Header=BB0_21 Depth=1
	cmp	w8, #0
	b.gt	LBB0_20
; %bb.32:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	w8, #1
	str	w8, [x20, #24]
	b	LBB0_20
LBB0_33:
	add	x0, x20, #28
	bl	_hb_buffer_list_clear
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x0, [x8]
LBB0_34:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_WORK_OK,4,2                 ; @HB_WORK_OK
	.comm	_HB_BUF_FLAG_EOF,4,2            ; @HB_BUF_FLAG_EOF
	.comm	_HB_WORK_DONE,4,2               ; @HB_WORK_DONE
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_HB_FLAG_DISCARD,4,2            ; @HB_FLAG_DISCARD
	.no_dead_strip	_decavcodecvWork
.subsections_via_symbols
