	.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, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	8(%rcx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %ebx
	movq	(%rdi), %r15
	movq	8(%r15), %rax
	movq	72(%r15), %r14
	movq	(%rax), %rax
	movq	_AV_PIX_FMT_PAL8@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rax
	jne	LBB0_5
## %bb.1:
	movq	_AV_PKT_DATA_PALETTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%rcx, %rdi
	callq	_av_packet_get_side_data
	xorl	%esi, %esi
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	-48(%rbp), %ecx
	movq	_AVPALETTE_SIZE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_4
## %bb.3:
	movq	(%r15), %rdi
	movq	%rax, %rsi
	movl	%ecx, %edx
	callq	_memcpy
	movl	$1, %esi
	jmp	LBB0_5
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	xorl	%esi, %esi
LBB0_5:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	leaq	24(%r15), %r14
	movq	%r14, %rdi
	callq	_inflateReset
	movq	_Z_OK@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_12
## %bb.6:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 48(%r15)
	movl	%ebx, 24(%r15)
	movl	64(%r15), %eax
	movl	%eax, 40(%r15)
	movq	56(%r15), %rax
	movq	%rax, 32(%r15)
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_inflate
	movq	_Z_DATA_ERROR@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.7:
	cmpl	%ecx, %eax
	je	LBB0_14
LBB0_8:
	cmpl	(%r13), %eax
	je	LBB0_15
## %bb.9:
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_15
## %bb.10:
	cmpl	%ecx, %eax
	je	LBB0_15
## %bb.11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_13
LBB0_12:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_13:
	movq	%r12, %rdi
	movl	%eax, %ecx
	callq	_av_log
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r12, %rdi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_ff_reget_buffer
	testl	%eax, %eax
	js	LBB0_23
## %bb.16:
	cmpl	(%r14), %eax
	je	LBB0_18
## %bb.17:
	leaq	16(%r15), %r14
	movl	64(%r15), %esi
	movq	56(%r15), %rdx
	subq	32(%r15), %rdx
	movq	%r14, %rdi
	callq	_bytestream2_init
	movl	20(%r15), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rcx
	callq	_ff_msrle_decode
LBB0_18:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_AV_PIX_FMT_PAL8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13)
	movq	8(%r13), %rax
	movq	8(%rax), %rdi
	movq	(%r15), %rsi
	movq	_AVPALETTE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
LBB0_20:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_23
## %bb.21:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_14
LBB0_23:
	movl	%eax, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_PAL8,8,3            ## @AV_PIX_FMT_PAL8
	.comm	_AV_PKT_DATA_PALETTE,4,2        ## @AV_PKT_DATA_PALETTE
	.comm	_AVPALETTE_SIZE,4,2             ## @AVPALETTE_SIZE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Palette size %d is wrong\n"

	.comm	_Z_OK,4,2                       ## @Z_OK
L_.str.1:                               ## @.str.1
	.asciz	"Inflate reset error: %d\n"

	.comm	_AVERROR_UNKNOWN,4,2            ## @AVERROR_UNKNOWN
	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_Z_DATA_ERROR,4,2               ## @Z_DATA_ERROR
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
L_.str.2:                               ## @.str.2
	.asciz	"Inflate error: %d\n"

	.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, #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, x2
	mov	x26, x1
	mov	x23, x0
	ldr	x28, [x3, #8]
	ldr	w19, [x3]
	ldr	x25, [x0]
	ldr	x22, [x25, #72]
	ldr	x8, [x25, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x21, _AV_PIX_FMT_PAL8@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AV_PIX_FMT_PAL8@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	str	x2, [sp]                        ; 8-byte Folded Spill
	b.ne	LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _AV_PKT_DATA_PALETTE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_PKT_DATA_PALETTE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x3
	bl	_av_packet_get_side_data
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w3, [sp, #12]
Lloh5:
	adrp	x8, _AVPALETTE_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVPALETTE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w3, w8
	b.ne	LBB0_4
; %bb.3:
	mov	x1, x0
	ldr	x0, [x25]
	mov	x2, x3
	bl	_memcpy
	mov	w27, #1
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	bl	_av_log
LBB0_5:
	mov	w27, #0
LBB0_6:
	add	x24, x25, #24
	mov	x0, x24
	bl	_inflateReset
Lloh13:
	adrp	x20, _Z_OK@GOTPAGE
Lloh14:
	ldr	x20, [x20, _Z_OK@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.7:
	str	x28, [x25, #48]
	str	w19, [x25, #24]
	ldr	w8, [x25, #64]
	str	w8, [x25, #40]
	ldr	x8, [x25, #56]
	str	x8, [x25, #32]
Lloh15:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_inflate
	mov	x3, x0
Lloh18:
	adrp	x24, _Z_DATA_ERROR@GOTPAGE
Lloh19:
	ldr	x24, [x24, _Z_DATA_ERROR@GOTPAGEOFF]
	ldr	w8, [x24]
	cbnz	w27, LBB0_9
; %bb.8:
	cmp	w3, w8
	b.eq	LBB0_15
LBB0_9:
	ldr	w9, [x20]
	cmp	w3, w9
	b.eq	LBB0_16
; %bb.10:
Lloh20:
	adrp	x9, _Z_STREAM_END@GOTPAGE
Lloh21:
	ldr	x9, [x9, _Z_STREAM_END@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w3, w9
	b.eq	LBB0_16
; %bb.11:
	cmp	w3, w8
	b.eq	LBB0_16
; %bb.12:
Lloh23:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str.2@PAGE
Lloh27:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_13:
	mov	x3, x0
Lloh28:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x2, l_.str.1@PAGE
Lloh32:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_14:
	mov	x0, x23
	bl	_av_log
Lloh33:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
Lloh35:
	ldr	w19, [x8]
LBB0_15:
	mov	x0, x19
	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_16:
	mov	x0, x23
	mov	x1, x22
	mov	w2, #0
	bl	_ff_reget_buffer
	tbnz	w0, #31, LBB0_23
; %bb.17:
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_19
; %bb.18:
	add	x24, x25, #16
	ldr	w1, [x25, #64]
	ldr	x8, [x25, #56]
	ldr	x9, [x25, #32]
	sub	x2, x8, x9
	mov	x0, x24
	bl	_bytestream2_init
	ldr	w2, [x25, #20]
	mov	x0, x23
	mov	x1, x22
	mov	x3, x24
	bl	_ff_msrle_decode
LBB0_19:
	ldr	x8, [x25, #8]
	ldr	x8, [x8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.20:
	str	w27, [x22]
	ldr	x8, [x22, #8]
	ldr	x0, [x8, #8]
	ldr	x1, [x25]
Lloh36:
	adrp	x8, _AVPALETTE_SIZE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AVPALETTE_SIZE@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	bl	_memcpy
LBB0_21:
	mov	x0, x26
	mov	x1, x22
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_23
; %bb.22:
	mov	w8, #1
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	w8, [x9]
	b	LBB0_15
LBB0_23:
	mov	x19, x0
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_PAL8,8,3            ; @AV_PIX_FMT_PAL8
	.comm	_AV_PKT_DATA_PALETTE,4,2        ; @AV_PKT_DATA_PALETTE
	.comm	_AVPALETTE_SIZE,4,2             ; @AVPALETTE_SIZE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Palette size %d is wrong\n"

	.comm	_Z_OK,4,2                       ; @Z_OK
l_.str.1:                               ; @.str.1
	.asciz	"Inflate reset error: %d\n"

	.comm	_AVERROR_UNKNOWN,4,2            ; @AVERROR_UNKNOWN
	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_Z_DATA_ERROR,4,2               ; @Z_DATA_ERROR
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
l_.str.2:                               ; @.str.2
	.asciz	"Inflate error: %d\n"

	.no_dead_strip	_decode_frame
.subsections_via_symbols
