	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_frame
_decode_frame:                          ## @decode_frame
	.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	(%rdi), %r12
	movq	8(%rcx), %rax
	cmpq	(%r12), %rax
	jge	LBB0_2
## %bb.1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rcx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	976(%rax), %rdi
	movq	16(%r12), %rsi
	callq	_dv_get_audio_sample_count
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	jle	LBB0_9
## %bb.4:
	movq	8(%rbx), %rax
	movq	(%rax), %r12
	xorl	%r13d, %r13d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_AV_RB16
	movl	%eax, (%r12,%r15,4)
	leaq	17280(%rbx), %rax
	addq	$14400, %rbx                    ## imm = 0x3840
	cmpq	$0, 16(%r14)
	cmovneq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_AV_RB16
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 4(%r12,%r13,8)
	incq	%r13
	movslq	(%rbx), %rax
	cmpq	%rax, %r13
	jge	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r15
	addq	%r13, %r15
	movq	8(%r14), %rax
	movq	(%rax,%r13,8), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rbx
	cmpq	$0, 24(%r14)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %eax
	movl	8(%rbx), %edi
	shll	$4, %eax
	shrl	$4, %edi
	andl	$15, %edi
	orl	%eax, %edi
	callq	_dv_audio_12to16
	movl	%eax, (%r12,%r15,4)
	movl	4(%rbx), %eax
	movl	8(%rbx), %edi
	shll	$4, %eax
	andl	$15, %edi
	orl	%eax, %edi
	callq	_dv_audio_12to16
	jmp	LBB0_8
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_frame
_decode_frame:                          ; @decode_frame
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x22, [x0]
	ldr	x8, [x3, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x3]
	add	x0, x23, #976
	ldr	x1, [x22, #16]
	bl	_dv_get_audio_sample_count
	str	w0, [x20]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_10
; %bb.3:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x24, #0
	ldr	x8, [x20, #8]
	ldr	x25, [x8]
	mov	w26, #17280
	mov	w27, #14400
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_AV_RB16
	str	w0, [x25]
	ldr	x8, [x22, #16]
	cmp	x8, #0
	csel	x8, x27, x26, eq
	add	x0, x21, x8
	bl	_AV_RB16
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	w0, [x25, #4]
	add	x25, x25, #8
	add	x24, x24, #1
	ldrsw	x8, [x20]
	cmp	x24, x8
	b.ge	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x24, lsl #3]
	add	x21, x23, x8, lsl #2
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x21]
	lsl	w0, w8, #4
	ldr	w8, [x21, #8]
	bfxil	w0, w8, #4, #4
	bl	_dv_audio_12to16
	str	w0, [x25]
	ldp	w8, w0, [x21, #4]
	bfi	w0, w8, #4, #28
	bl	_dv_audio_12to16
	b	LBB0_6
LBB0_9:
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x22]
LBB0_10:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_frame
.subsections_via_symbols
