	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	movq	8(%rcx), %r15
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %r12d
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_inflateReset
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.3:
	movq	%r15, 24(%r14)
	movl	%r12d, 8(%r14)
	movq	32(%r14), %rax
	rolq	$32, %rax
	movq	%rax, 16(%r14)
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_inflate
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.5:
	movq	_AV_GET_BUFFER_FLAG_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_12
## %bb.6:
	movl	12(%r14), %edx
	movl	32(%r14), %esi
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	callq	_bytestream2_init
	movq	(%r14), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	(%rax), %esi
	movl	(%rcx), %edx
	imull	(%r13), %edx
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_init
	movq	(%rbx), %rax
	movq	24(%rbx), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	imull	(%r13), %edx
	leaq	-76(%rbp), %r15
	movq	%r15, %rdi
	callq	_bytestream2_init_writer
	movl	(%r13), %r8d
	movl	4(%r13), %ecx
	leal	(%rcx,%rcx,2), %r9d
	movq	(%rbx), %rax
	movl	(%rax), %r10d
	movq	(%r14), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx), %eax
	movq	%r12, %rdi
	movq	%r15, %rsi
	leaq	-44(%rbp), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	pushq	%rax
	pushq	%r10
	callq	_rle_uncompress
	addq	$16, %rsp
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_2:
	movq	%r13, %rdi
	movl	%eax, %ecx
	callq	_av_log
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	(%r14), %rdi
	callq	_av_frame_unref
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_12
## %bb.10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Inflate reset error: %d\n"

	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
L_.str.1:                               ## @.str.1
	.asciz	"Inflate error: %d\n"

	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ## @AV_GET_BUFFER_FLAG_REF
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ## @AV_PICTURE_TYPE_P
	.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:
	sub	sp, sp, #96
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x24, [x0, #8]
	ldr	x25, [x3, #8]
	ldr	w26, [x3]
	add	x23, x24, #8
	mov	x0, x23
	bl	_inflateReset
Lloh0:
	adrp	x8, _Z_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.1:
	str	x25, [x24, #24]
	str	w26, [x24, #8]
	ldr	d0, [x24, #32]
	rev64.2s	v0, v0
	str	d0, [x24, #16]
Lloh3:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_inflate
Lloh6:
	adrp	x8, _Z_STREAM_END@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Z_STREAM_END@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.2:
Lloh9:
	adrp	x8, _AV_GET_BUFFER_FLAG_REF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_GET_BUFFER_FLAG_REF@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_8
; %bb.3:
	ldr	w1, [x24, #32]
	ldr	w2, [x24, #12]
	add	x0, sp, #12
	bl	_bytestream2_init
	ldr	x8, [x24]
	ldp	x8, x9, [x8]
	ldr	w1, [x9]
	ldr	w9, [x22]
	ldr	w8, [x8]
	mul	w2, w8, w9
	add	x0, sp, #8
	bl	_bytestream2_init
	ldr	x8, [x21, #24]
	ldr	w1, [x8]
	ldr	w8, [x22]
	ldr	x9, [x21]
	ldr	w9, [x9]
	mul	w2, w9, w8
	add	x0, sp, #4
	bl	_bytestream2_init_writer
	ldp	w4, w3, [x22]
	add	w5, w3, w3, lsl #1
	ldr	x8, [x21]
	ldr	w6, [x8]
	ldr	x8, [x24]
	ldr	x8, [x8]
	ldr	w7, [x8]
	add	x0, sp, #12
	add	x1, sp, #4
	add	x2, sp, #8
	bl	_rle_uncompress
Lloh12:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh14:
	adrp	x9, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
	str	x0, [x21, #8]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x21, #16]
	ldr	x0, [x24]
	bl	_av_frame_unref
	ldr	x0, [x24]
	mov	x1, x21
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_8
; %bb.4:
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x19]
	b	LBB0_8
LBB0_5:
	mov	x3, x0
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
	mov	x3, x0
Lloh21:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str.1@PAGE
Lloh25:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x22
	bl	_av_log
Lloh26:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
LBB0_8:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Inflate reset error: %d\n"

	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
l_.str.1:                               ; @.str.1
	.asciz	"Inflate error: %d\n"

	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ; @AV_GET_BUFFER_FLAG_REF
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ; @AV_PICTURE_TYPE_P
	.no_dead_strip	_decode_frame
.subsections_via_symbols
