	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	8(%rcx), %ebx
	cmpl	$1, %ebx
	jg	LBB0_3
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_2:
	movq	%r12, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
LBB0_3:
	movq	%rdx, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %r14
	movq	(%r12), %r13
	movq	8(%r13), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_ff_reget_buffer
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	(%r14), %eax
	shrl	%eax
	andl	$7, %eax
	cmpl	$1, %eax
	je	LBB0_9
## %bb.6:
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)
	leal	-2(%rbx), %eax
	movl	%eax, -48(%rbp)
	movl	24(%r13), %edi
	leaq	8(%r14), %rdx
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	callq	_av_lzo1x_decode
	orl	-44(%rbp), %eax
	je	LBB0_11
## %bb.8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_2
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_2
LBB0_11:
	testb	$1, (%r14)
	jne	LBB0_12
## %bb.13:
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r13), %rdi
	movl	%eax, 4(%rdi)
	movl	$0, (%rdi)
	movl	24(%r13), %esi
	movl	16(%r13), %ecx
	movl	20(%r13), %edx
	callq	_add_frame_default
	jmp	LBB0_14
LBB0_12:
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r13), %rdi
	movl	%eax, 4(%rdi)
	movl	$1, (%rdi)
	movl	24(%r13), %esi
	movl	16(%r13), %ecx
	movl	20(%r13), %edx
	callq	_copy_frame_default
LBB0_14:
	movl	$1, (%r15)
	movq	8(%r13), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_frame_ref
	testl	%eax, %eax
	cmovsl	%eax, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"coded frame too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"error during lzo decompression\n"

L_.str.2:                               ## @.str.2
	.asciz	"compiled without zlib support\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
L_.str.3:                               ## @.str.3
	.asciz	"unknown compression\n"

	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ## @AV_PICTURE_TYPE_P
	.comm	_Z_OK,4,2                       ## @Z_OK
	.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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x0
	ldr	w22, [x3, #8]
	cmp	w22, #1
	b.gt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x21
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_3:
	mov	x20, x2
	mov	x19, x1
	ldr	x24, [x3]
	ldr	x23, [x21]
	ldr	x1, [x23, #8]
	mov	x0, x21
	mov	w2, #0
	bl	_ff_reget_buffer
	tbnz	w0, #31, LBB0_14
; %bb.4:
	ldr	w8, [x24]
	ubfx	w8, w8, #1, #3
	cmp	w8, #1
	b.eq	LBB0_8
; %bb.5:
	cbnz	w8, LBB0_9
; %bb.6:
	ldr	w9, [x23]
	sub	w8, w22, #2
	stp	w8, w9, [sp, #8]
	ldr	w0, [x23, #24]
	add	x2, x24, #8
	add	x1, sp, #12
	add	x3, sp, #8
	bl	_av_lzo1x_decode
	ldr	w8, [sp, #12]
	orr	w8, w0, w8
	cbz	w8, LBB0_10
; %bb.7:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_8:
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_av_log
Lloh18:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_AVERROR
LBB0_9:
Lloh21:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str.3@PAGE
Lloh25:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_10:
	ldrb	w8, [x24]
	tbnz	w8, #0, LBB0_12
; %bb.11:
Lloh26:
	adrp	x8, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	x0, [x23, #8]
	stp	wzr, w8, [x0]
	ldp	w2, w1, [x23, #20]
	ldr	w3, [x23, #16]
	bl	_add_frame_default
	b	LBB0_13
LBB0_12:
Lloh29:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	x0, [x23, #8]
	mov	w9, #1
	stp	w9, w8, [x0]
	ldp	w2, w1, [x23, #20]
	ldr	w3, [x23, #16]
	bl	_copy_frame_default
LBB0_13:
	mov	w8, #1
	str	w8, [x20]
	ldr	x1, [x23, #8]
	mov	x0, x19
	bl	_av_frame_ref
	cmp	w0, #0
	csel	w0, w0, w22, lt
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"coded frame too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"error during lzo decompression\n"

l_.str.2:                               ; @.str.2
	.asciz	"compiled without zlib support\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
l_.str.3:                               ; @.str.3
	.asciz	"unknown compression\n"

	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ; @AV_PICTURE_TYPE_P
	.comm	_Z_OK,4,2                       ; @Z_OK
	.no_dead_strip	_decode_frame
.subsections_via_symbols
