	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_dst_frame
_read_dst_frame:                        ## @read_dst_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	%rsi, %rbx
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	movq	16(%rdi), %r14
	movq	_AVERROR_EOF@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_avio_feof
	testl	%eax, %eax
	je	LBB0_1
LBB0_22:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_23:
	movl	%edx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %r12d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_11
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_avio_tell
	movl	%r14d, %ecx
	andl	$1, %ecx
	addq	%r14, %r15
	addq	%rcx, %r15
	subq	%rax, %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_avio_skip
	movq	%r13, %rdi
	callq	_avio_feof
	testl	%eax, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	_AVERROR_EOF@GOTPCREL(%rip), %r15
	jne	LBB0_22
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_avio_tell
	cmpq	(%r14), %rax
	jge	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_avio_rl32
	movl	%eax, %r12d
	cmpq	$0, 24(%r14)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_avio_rb64
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_avio_rb32
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_avio_tell
	testq	%r14, %r14
	jle	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	cmpl	$128, %r12d
	jne	LBB0_10
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$3, %r14
	jbe	LBB0_8
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_avio_rb32
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx), %rdx
	movslq	(%rdx), %rdx
	imulq	%rax, %rdx
	imulq	$588, %rdx, %rax                ## imm = 0x24C
	movabsq	$1713330243218011869, %rdx      ## imm = 0x17C6F8C751F176DD
	imulq	%rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$12, %rdx
	addq	%rax, %rdx
	movq	%rdx, (%rcx)
	jmp	LBB0_21
LBB0_8:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_23
LBB0_3:
	movl	(%r15), %edx
	jmp	LBB0_23
LBB0_11:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_12
## %bb.13:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_av_get_packet
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:
	testb	$1, %r14b
	je	LBB0_17
## %bb.16:
	movl	$1, %esi
	movq	%r13, %rdi
	callq	_avio_skip
LBB0_17:
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%r15)
	movl	$0, 16(%r15)
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movslq	(%rax), %rax
	imulq	$458129845, %rax, %rax          ## imm = 0x1B4E81B5
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	addl	%ecx, %eax
	movl	%eax, (%r15)
	movq	%rbx, 8(%r15)
	movq	%r13, %rdi
	callq	_avio_tell
	xorl	%edx, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx), %rax
	jge	LBB0_23
## %bb.18:
	movq	_SEEK_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_avio_seek
	xorl	%edx, %edx
	jmp	LBB0_23
LBB0_12:
	movq	%r13, %rdi
	callq	_avio_tell
	xorl	%ecx, %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	$0, 24(%rdx)
	sete	%cl
	leaq	(%rax,%rcx,4), %rax
	addq	$-12, %rax
	movq	%rax, 8(%rdx)
	movq	(%rdx), %rcx
	subq	%rax, %rcx
	movq	%rcx, 16(%rdx)
	xorl	%edx, %edx
	jmp	LBB0_23
LBB0_14:
	movl	%eax, %edx
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_read_dst_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_dst_frame
_read_dst_frame:                        ; @read_dst_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x22, x0
	ldp	x19, x27, [x0, #8]
Lloh0:
	adrp	x28, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x28, [x28, _AVERROR_EOF@GOTPAGEOFF]
	ldr	w21, [x28]
	mov	x0, x19
	bl	_avio_feof
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	mov	x20, #30429
	movk	x20, #20977, lsl #16
	movk	x20, #63687, lsl #32
	movk	x20, #6086, lsl #48
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w26, #129
	b.eq	LBB0_15
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_avio_tell
	and	x8, x24, #0x1
	add	x9, x25, x24
	add	x8, x9, x8
	sub	x1, x8, x0
	mov	x0, x19
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_feof
	cbnz	w0, LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_avio_tell
	ldr	x8, [x27]
	cmp	x0, x8
	b.ge	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x0
	mov	x0, x19
	bl	_avio_rl32
	mov	x26, x0
	ldr	x8, [x27, #24]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_avio_rb64
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_avio_rb32
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	mov	x0, x19
	bl	_avio_tell
	cmp	x24, #0
	b.le	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x0
	cmp	w26, #128
	b.ne	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	x24, #3
	b.ls	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_avio_rb32
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	ldrsw	x9, [x9]
	mul	x9, x0, x9
	mov	w10, #588
	mul	x9, x9, x10
	smulh	x9, x9, x20
	asr	x10, x9, #12
	add	x9, x10, x9, lsr #63
	str	x9, [x8]
	b	LBB0_4
LBB0_13:
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	b	LBB0_1
LBB0_14:
	ldr	w21, [x28]
	b	LBB0_1
LBB0_15:
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x20, LBB0_21
; %bb.16:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_av_get_packet
	tbnz	w0, #31, LBB0_22
; %bb.17:
	tbz	w24, #0, LBB0_19
; %bb.18:
	mov	x0, x19
	mov	w1, #1
	bl	_avio_skip
LBB0_19:
Lloh5:
	adrp	x8, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x20, #20]
	orr	w8, w9, w8
	stp	wzr, w8, [x20, #16]
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldrsw	x8, [x8]
	mov	w9, #33205
	movk	w9, #6990, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w8, w8, w9
	str	w8, [x20]
	str	x23, [x20, #8]
	mov	x0, x19
	bl	_avio_tell
	mov	w21, #0
	ldr	x8, [x27]
	cmp	x0, x8
	b.ge	LBB0_1
; %bb.20:
	mov	x1, x0
Lloh8:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_avio_seek
	mov	w21, #0
	b	LBB0_1
LBB0_21:
	mov	x0, x19
	bl	_avio_tell
	mov	w21, #0
	ldr	x8, [x27, #24]
	mov	x9, #-12
	mov	x10, #-8
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	x9, [x27]
	add	x8, x8, x0
	sub	x9, x9, x8
	stp	x8, x9, [x27, #8]
	b	LBB0_1
LBB0_22:
	mov	x21, x0
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_read_dst_frame
.subsections_via_symbols
