	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decavcodecaWork
_decavcodecaWork:                       ## @decavcodecaWork
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movq	(%rsi), %r15
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movslq	(%r15), %rcx
	leaq	(%rax,%rcx,4), %rdi
	movq	32(%r15), %rdx
	subq	%rcx, %rdx
	xorl	%esi, %esi
	callq	_memset
LBB0_2:
	movl	4(%r15), %eax
	movq	_HB_BUF_FLAG_EOF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_audioParserFlush
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_decodeAudio
	addq	$4, %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_hb_buffer_list_append
	movq	$0, (%r14)
	movq	%rbx, %rdi
	callq	_hb_buffer_list_clear
	movq	_HB_WORK_DONE@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_4:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	$0, (%rcx)
	movl	12(%r15), %r14d
	cmpl	$0, (%rbx)
	jne	LBB0_6
## %bb.5:
	movl	8(%r15), %ecx
	movl	%ecx, 16(%rbx)
	movl	20(%r15), %ecx
	movl	%ecx, 36(%rbx)
	movl	16(%r15), %ecx
	movl	%ecx, 32(%rbx)
	movq	_HB_FLAG_DISCARD@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, 8(%rbx)
LBB0_6:
	cmpl	$0, (%r15)
	jle	LBB0_18
## %bb.7:
	leaq	12(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	addl	%r13d, %r12d
	cmpl	(%r15), %r12d
	jge	LBB0_18
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -56(%rbp)
	movl	$0, -44(%rbp)
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	48(%rbx), %esi
	movslq	%r12d, %rax
	leaq	(,%rax,4), %r8
	addq	24(%r15), %r8
	movl	(%r15), %r9d
	subl	%eax, %r9d
	subq	$8, %rsp
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	pushq	$0
	pushq	%r14
	pushq	%r14
	callq	_av_parser_parse2
	addq	$32, %rsp
	movl	%eax, %r13d
	movq	40(%rbx), %rdx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-56(%rbp), %rcx
	movl	-44(%rbp), %eax
	testq	%rcx, %rcx
	jne	LBB0_12
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	24(%r15), %rcx
	movq	%rcx, -56(%rbp)
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)
	movl	%eax, %r13d
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%eax, %eax
	jle	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rdx), %edx
	movq	%rcx, 24(%rbx)
	movl	%eax, 12(%rbx)
	movl	%edx, 20(%rbx)
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_decodeAudio
	movl	8(%r15), %eax
	movl	%eax, 16(%rbx)
	movq	_HB_FLAG_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	4(%r15), %eax
	setne	%cl
	movl	%ecx, 8(%rbx)
	movl	$0, (%rbx)
	movl	-44(%rbp), %eax
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%r13d, %r13d
	jle	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	testl	%eax, %eax
	jg	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, (%rbx)
	jmp	LBB0_17
LBB0_18:
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_hb_buffer_list_clear
	movq	_HB_WORK_OK@GOTPCREL(%rip), %rcx
LBB0_19:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx)
	movl	(%rcx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_BUF_FLAG_EOF,4,2            ## @HB_BUF_FLAG_EOF
	.comm	_HB_WORK_DONE,4,2               ## @HB_WORK_DONE
	.comm	_HB_FLAG_DISCARD,4,2            ## @HB_FLAG_DISCARD
	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
	.comm	_HB_WORK_OK,4,2                 ## @HB_WORK_OK
	.no_dead_strip	_decavcodecaWork
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decavcodecaWork
_decavcodecaWork:                       ; @decavcodecaWork
	.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, x1
	mov	x23, x0
	ldr	x21, [x0]
	ldr	x20, [x1]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldrsw	x9, [x20]
	add	x0, x8, x9, lsl #2
	ldr	x8, [x20, #32]
	sub	x2, x8, x9
	mov	w1, #0
	bl	_memset
LBB0_2:
	ldr	w8, [x20, #4]
Lloh0:
	adrp	x9, _HB_BUF_FLAG_EOF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HB_BUF_FLAG_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_audioParserFlush
	mov	x0, x21
	mov	x1, #0
	bl	_decodeAudio
	add	x21, x21, #4
	mov	x0, x21
	mov	x1, x20
	bl	_hb_buffer_list_append
	str	xzr, [x22]
	mov	x0, x21
	bl	_hb_buffer_list_clear
Lloh3:
	adrp	x8, _HB_WORK_DONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HB_WORK_DONE@GOTPAGEOFF]
	b	LBB0_17
LBB0_4:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	str	xzr, [x19]
	mov	x25, x20
	ldr	w22, [x25, #12]!
	ldr	w9, [x21]
Lloh5:
	adrp	x26, _HB_FLAG_DISCARD@GOTPAGE
Lloh6:
	ldr	x26, [x26, _HB_FLAG_DISCARD@GOTPAGEOFF]
	cbnz	w9, LBB0_6
; %bb.5:
	ldr	w9, [x20, #8]
	str	w9, [x21, #16]
	ldr	d0, [x20, #16]
	str	d0, [x21, #32]
	ldr	w9, [x26]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x21, #8]
LBB0_6:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.7:
	mov	w27, #0
	add	x23, x21, #8
	mov	w28, #1
Lloh7:
	adrp	x19, _AV_NOPTS_VALUE@GOTPAGE
Lloh8:
	ldr	x19, [x19, _AV_NOPTS_VALUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x20]
	add	w27, w24, w27
	cmp	w27, w8
	b.ge	LBB0_16
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #24]
	str	wzr, [sp, #20]
	ldr	x0, [x21, #40]
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x21, #48]
	ldr	x8, [x20, #24]
	add	x4, x8, w27, sxtw #2
	ldr	w8, [x20]
	sub	w5, w8, w27
	str	wzr, [sp]
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x6, x22
	mov	x7, x22
	bl	_av_parser_parse2
	mov	x24, x0
	ldr	x10, [x21, #40]
	ldr	w22, [x19]
	ldr	x9, [sp, #24]
	ldr	w8, [sp, #20]
	cbnz	x9, LBB0_12
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x20, #24]
	str	x9, [sp, #24]
	ldr	w8, [x20]
	str	w8, [sp, #20]
	mov	x24, x8
	mov	x10, x25
	cbz	x9, LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w10, [x10]
	str	x9, [x21, #24]
	str	w8, [x21, #12]
	str	w10, [x21, #20]
	mov	x0, x21
	mov	x1, x23
	bl	_decodeAudio
	ldp	w9, w8, [x20, #4]
	str	w8, [x21, #16]
	ldr	w8, [x26]
	tst	w8, w9
	cset	w8, ne
	str	w8, [x21, #8]
	str	wzr, [x21]
	ldr	w8, [sp, #20]
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	w24, #1
	ccmp	w8, #0, #0, ge
	b.gt	LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	str	w28, [x21]
	b	LBB0_8
LBB0_16:
	add	x0, x21, #4
	bl	_hb_buffer_list_clear
Lloh9:
	adrp	x8, _HB_WORK_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HB_WORK_OK@GOTPAGEOFF]
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
LBB0_17:
	str	x0, [x19]
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_BUF_FLAG_EOF,4,2            ; @HB_BUF_FLAG_EOF
	.comm	_HB_WORK_DONE,4,2               ; @HB_WORK_DONE
	.comm	_HB_FLAG_DISCARD,4,2            ; @HB_FLAG_DISCARD
	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.comm	_HB_WORK_OK,4,2                 ; @HB_WORK_OK
	.no_dead_strip	_decavcodecaWork
.subsections_via_symbols
