	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function davs2_dump_frames
_davs2_dump_frames:                     ## @davs2_dump_frames
	.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, %r15
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	_DAVS2_GOT_HEADER@GOTPCREL(%rip), %rax
	cmpl	%r8d, (%rax)
	jne	LBB0_7
## %bb.3:
	movl	12(%rcx), %eax
	movl	%eax, 12(%r14)
	movl	8(%rcx), %eax
	movl	%eax, 8(%r14)
	cmpl	$10, (%rcx)
	jne	LBB0_4
## %bb.5:
	movq	_AV_PIX_FMT_YUV420P10@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movl	$0, (%r15)
	jmp	LBB0_17
LBB0_7:
	movq	%rsi, %rbx
	movl	4(%rsi), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	jae	LBB0_8
## %bb.9:
	movq	%r9, %r12
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	cltq
	leaq	l_switch.table.davs2_dump_frames(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r9)
	movq	16(%rbx), %rax
	xorl	%r14d, %r14d
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r14
	cmpq	$3, %r14
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_16
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	8(%rbx), %rcx
	movslq	(%rcx,%r14,4), %r15
	imulq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	movl	(%rax,%r14,4), %edi
	imull	%r15d, %edi
	callq	_av_buffer_alloc
	movq	32(%r12), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	32(%r12), %rax
	movq	(%rax,%r14,8), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rax), %rdi
	movq	24(%r12), %rax
	movq	%rdi, (%rax,%r14,8)
	movq	(%r12), %rax
	movl	%r15d, (%rax,%r14,4)
	movq	16(%rbx), %rax
	cmpl	$0, (%rax,%r14,4)
	jle	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addq	%r12, %rdi
	movq	32(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	24(%rbx), %rdx
	movslq	(%rdx,%r14,4), %rsi
	imulq	%r13, %rsi
	addq	(%rax,%r14,8), %rsi
	movl	(%rcx,%r14,4), %edx
	imull	-64(%rbp), %edx                 ## 4-byte Folded Reload
	callq	_memcpy
	incq	%r13
	movq	16(%rbx), %rax
	movslq	(%rax,%r14,4), %rcx
	cmpq	%rcx, %r13
	jge	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	(%rax,%r14,8), %rdi
	addq	%r15, %r12
	jmp	LBB0_14
LBB0_4:
	movq	_AV_PIX_FMT_YUV420P@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	4(%rcx), %edi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_av_d2q
	movl	%eax, 4(%r14)
	movl	$0, (%r15)
	jmp	LBB0_17
LBB0_8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_16:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %eax
	movl	%eax, 20(%r12)
	movl	4(%rcx), %eax
	movl	%eax, 16(%r12)
	movl	(%rcx), %eax
	movl	%eax, 12(%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_17:
	xorl	%eax, %eax
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DAVS2_GOT_HEADER,4,2           ## @DAVS2_GOT_HEADER
	.comm	_AV_PIX_FMT_YUV420P10,4,2       ## @AV_PIX_FMT_YUV420P10
	.comm	_AV_PIX_FMT_YUV420P,4,2         ## @AV_PIX_FMT_YUV420P
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ## @AV_PICTURE_TYPE_P
	.comm	_AV_PICTURE_TYPE_B,4,2          ## @AV_PICTURE_TYPE_B
	.comm	_AV_PICTURE_TYPE_S,4,2          ## @AV_PICTURE_TYPE_S
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Decoder error: unknown frame type\n"

	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
L_.str.1:                               ## @.str.1
	.asciz	"Decoder error: allocation failure, can't dump frames.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_davs2_dump_frames
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.davs2_dump_frames
l_switch.table.davs2_dump_frames:
	.quad	_AV_PICTURE_TYPE_P
	.quad	_AV_PICTURE_TYPE_P
	.quad	_AV_PICTURE_TYPE_I
	.quad	_AV_PICTURE_TYPE_I
	.quad	_AV_PICTURE_TYPE_S
	.quad	_AV_PICTURE_TYPE_B

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function davs2_dump_frames
_davs2_dump_frames:                     ; @davs2_dump_frames
	.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
	mov	x20, x2
	cbz	x3, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _DAVS2_GOT_HEADER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DAVS2_GOT_HEADER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w4
	b.ne	LBB0_4
; %bb.2:
	ldr	d0, [x3, #8]
	str	d0, [x19, #8]
Lloh3:
	adrp	x8, _AV_PIX_FMT_YUV420P10@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PIX_FMT_YUV420P10@GOTPAGEOFF]
Lloh5:
	adrp	x9, _AV_PIX_FMT_YUV420P@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_PIX_FMT_YUV420P@GOTPAGEOFF]
	ldp	w10, w0, [x3]
	cmp	w10, #10
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w1, #4096
	bl	_av_d2q
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #4]
	str	wzr, [x20]
	b	LBB0_11
LBB0_3:
	mov	w0, #0
	str	wzr, [x20]
	b	LBB0_11
LBB0_4:
	mov	x22, x1
	ldr	w8, [x1, #4]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hs	LBB0_10
; %bb.5:
	mov	x21, x5
	ldr	x23, [x19, #16]
	ldrsw	x24, [x22]
Lloh7:
	adrp	x9, l_switch.table.davs2_dump_frames@PAGE
Lloh8:
	add	x9, x9, l_switch.table.davs2_dump_frames@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	str	w8, [x5, #40]
	ldp	x9, x8, [x22, #8]
	ldrsw	x9, [x9]
	mul	x25, x9, x24
	ldr	w8, [x8]
	mul	w0, w8, w25
	bl	_av_buffer_alloc
	ldr	x8, [x21, #32]
	str	x0, [x8]
	ldr	x8, [x21, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.6:
	ldr	x8, [x8]
	ldr	x9, [x21, #24]
	str	x8, [x9]
	ldr	x9, [x21]
	str	w25, [x9]
	ldr	x9, [x22, #16]
	ldr	w10, [x9]
	cmp	w10, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x26, #0
	mov	x27, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x8, x26
	ldp	x9, x8, [x22, #24]
	ldr	x8, [x8]
	ldrsw	x9, [x9]
	madd	x1, x27, x9, x8
	ldr	x8, [x22, #8]
	ldr	w8, [x8]
	mul	w2, w8, w24
	bl	_memcpy
	add	x27, x27, #1
	ldr	x9, [x22, #16]
	ldrsw	x8, [x9]
	cmp	x27, x8
	b.ge	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21, #24]
	ldr	x8, [x8]
	add	x26, x26, x25
	b	LBB0_8
LBB0_10:
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh14:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
LBB0_11:
	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
LBB0_12:
	ldr	x8, [x22, #8]
	ldrsw	x8, [x8, #4]
	mul	x25, x8, x24
	ldr	w8, [x9, #4]
	mul	w0, w8, w25
	bl	_av_buffer_alloc
	ldr	x8, [x21, #32]
	str	x0, [x8, #8]
	ldr	x8, [x21, #32]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_22
; %bb.13:
	ldr	x8, [x8]
	ldr	x9, [x21, #24]
	str	x8, [x9, #8]
	ldr	x9, [x21]
	str	w25, [x9, #4]
	ldr	x9, [x22, #16]
	ldr	w10, [x9, #4]
	cmp	w10, #1
	b.lt	LBB0_17
; %bb.14:
	mov	x26, #0
	mov	w27, #1
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	sub	x9, x27, #1
	add	x0, x8, x26
	ldp	x10, x8, [x22, #24]
	ldr	x8, [x8, #8]
	ldrsw	x10, [x10, #4]
	madd	x1, x9, x10, x8
	ldr	x8, [x22, #8]
	ldr	w8, [x8, #4]
	mul	w2, w8, w24
	bl	_memcpy
	ldr	x9, [x22, #16]
	ldrsw	x8, [x9, #4]
	cmp	x27, x8
	b.ge	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x21, #24]
	ldr	x8, [x8, #8]
	add	x27, x27, #1
	add	x26, x26, x25
	b	LBB0_15
LBB0_17:
	ldr	x8, [x22, #8]
	ldrsw	x8, [x8, #8]
	mul	x25, x8, x24
	ldr	w8, [x9, #8]
	mul	w0, w8, w25
	bl	_av_buffer_alloc
	ldr	x8, [x21, #32]
	str	x0, [x8, #16]
	ldr	x8, [x21, #32]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_22
; %bb.18:
	ldr	x8, [x8]
	ldr	x9, [x21, #24]
	str	x8, [x9, #16]
	ldr	x9, [x21]
	str	w25, [x9, #8]
	ldr	x9, [x22, #16]
	ldr	w9, [x9, #8]
	cmp	w9, #1
	b.lt	LBB0_23
; %bb.19:
	mov	x26, #0
	mov	w27, #1
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	sub	x9, x27, #1
	add	x0, x8, x26
	ldp	x10, x8, [x22, #24]
	ldr	x8, [x8, #16]
	ldrsw	x10, [x10, #8]
	madd	x1, x9, x10, x8
	ldr	x8, [x22, #8]
	ldr	w8, [x8, #8]
	mul	w2, w8, w24
	bl	_memcpy
	ldr	x8, [x22, #16]
	ldrsw	x8, [x8, #8]
	cmp	x27, x8
	b.ge	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x21, #24]
	ldr	x8, [x8, #16]
	add	x27, x27, #1
	add	x26, x26, x25
	b	LBB0_20
LBB0_22:
Lloh17:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_23:
	mov	w0, #0
	ldr	w8, [x23, #8]
	str	w8, [x21, #20]
	ldr	d0, [x23]
	stur	d0, [x21, #12]
	ldr	w8, [x19]
	str	w8, [x21, #8]
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DAVS2_GOT_HEADER,4,2           ; @DAVS2_GOT_HEADER
	.comm	_AV_PIX_FMT_YUV420P10,4,2       ; @AV_PIX_FMT_YUV420P10
	.comm	_AV_PIX_FMT_YUV420P,4,2         ; @AV_PIX_FMT_YUV420P
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ; @AV_PICTURE_TYPE_P
	.comm	_AV_PICTURE_TYPE_B,4,2          ; @AV_PICTURE_TYPE_B
	.comm	_AV_PICTURE_TYPE_S,4,2          ; @AV_PICTURE_TYPE_S
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Decoder error: unknown frame type\n"

	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
l_.str.1:                               ; @.str.1
	.asciz	"Decoder error: allocation failure, can't dump frames.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_davs2_dump_frames
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.davs2_dump_frames
l_switch.table.davs2_dump_frames:
	.quad	_AV_PICTURE_TYPE_P
	.quad	_AV_PICTURE_TYPE_P
	.quad	_AV_PICTURE_TYPE_I
	.quad	_AV_PICTURE_TYPE_I
	.quad	_AV_PICTURE_TYPE_S
	.quad	_AV_PICTURE_TYPE_B

.subsections_via_symbols
