	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zerocodec_decode_frame
_zerocodec_decode_frame:                ## @zerocodec_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	%rcx, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	(%rax), %r13
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	$1, %ecx
	jmp	LBB0_4
LBB0_2:
	testq	%r13, %r13
	je	LBB0_21
## %bb.3:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %rax
	decq	%rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rcx
	movslq	(%rcx), %rcx
	imulq	%rax, %rcx
	leaq	(%r13,%rcx,4), %r13
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
LBB0_4:
	leaq	8(%r15), %rdi
	movl	%ecx, 8(%rsi)
	movl	(%rax), %eax
	movl	%eax, 24(%rsi)
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	callq	_inflateReset
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.5:
	movq	_AV_GET_BUFFER_FLAG_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_24
## %bb.6:
	movl	8(%r14), %eax
	movl	%eax, 28(%r15)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %eax
	movl	%eax, 8(%r15)
	movslq	(%rbx), %r14
	testq	%r14, %r14
	jle	LBB0_19
## %bb.7:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	16(%rcx), %rcx
	movslq	(%rcx), %rcx
	decq	%r14
	imulq	%rcx, %r14
	shlq	$2, %r14
	addq	(%rax), %r14
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	subq	%rax, %r13
	movq	16(%rsi), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	subq	%rax, %r14
	incl	%r12d
	cmpl	(%rbx), %r12d
	jge	LBB0_19
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	%r14, 16(%r15)
	movl	4(%rbx), %eax
	addl	%eax, %eax
	movl	%eax, 24(%r15)
	movq	_Z_SYNC_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_inflate
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	4(%rbx), %eax
	addl	%eax, %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=2
	addl	%ecx, %edx
	movl	%edx, (%r14,%rax,4)
	incq	%rax
	movl	4(%rbx), %ecx
	addl	%ecx, %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rax
	jge	LBB0_9
LBB0_15:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14,%rax,4), %ecx
	xorl	%edx, %edx
	testl	%ecx, %ecx
	jne	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movl	(%r13,%rax,4), %edx
	jmp	LBB0_14
LBB0_17:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_18:
	movq	%rbx, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_22
LBB0_19:
	movq	(%r15), %rdi
	callq	_av_frame_unref
	movq	(%r15), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_24
## %bb.20:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	$1, (%rcx)
	jmp	LBB0_23
LBB0_21:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_22:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %eax
LBB0_24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missing reference frame.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_P,4,2          ## @AV_PICTURE_TYPE_P
	.comm	_Z_OK,4,2                       ## @Z_OK
L_.str.1:                               ## @.str.1
	.asciz	"Could not reset inflate: %d.\n"

	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ## @AV_GET_BUFFER_FLAG_REF
	.comm	_Z_SYNC_FLUSH,4,2               ## @Z_SYNC_FLUSH
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
L_.str.2:                               ## @.str.2
	.asciz	"Inflate failed with return code: %d.\n"

	.no_dead_strip	_zerocodec_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zerocodec_decode_frame
_zerocodec_decode_frame:                ; @zerocodec_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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x24, [x0, #8]
	mov	x23, x24
	ldr	x25, [x23], #8
	ldr	x8, [x25]
	ldr	x26, [x8]
	ldr	w8, [x3]
Lloh0:
	adrp	x9, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
	mov	w8, #1
	b	LBB0_4
LBB0_2:
	cbz	x26, LBB0_17
; %bb.3:
	mov	w8, #0
	ldr	w9, [x19]
	sub	w9, w9, #1
	ldr	x10, [x25, #16]
	ldr	w10, [x10]
	mul	w9, w10, w9
	add	x26, x26, w9, sxtw #2
Lloh5:
	adrp	x9, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
LBB0_4:
	str	w8, [x21, #8]
	ldr	w8, [x9]
	str	w8, [x21, #24]
	mov	x0, x23
	bl	_inflateReset
                                        ; kill: def $w0 killed $w0 def $x0
Lloh7:
	adrp	x8, _Z_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.5:
Lloh10:
	adrp	x8, _AV_GET_BUFFER_FLAG_REF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_GET_BUFFER_FLAG_REF@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_21
; %bb.6:
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	mov	x28, x22
	ldp	w8, w9, [x28, #4]!
	str	w9, [x24, #28]
	str	w8, [x24, #8]
	ldr	w8, [x19]
	subs	w8, w8, #1
	b.lt	LBB0_15
; %bb.7:
	mov	w27, #0
	ldr	x9, [x21]
	ldr	x9, [x9]
	ldr	x10, [x21, #16]
	ldr	w10, [x10]
	mul	w8, w10, w8
	add	x20, x9, w8, sxtw #2
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x25, #16]
	ldrsw	x8, [x8]
	sub	x26, x26, x8, lsl #2
	ldr	x8, [x21, #16]
	ldrsw	x8, [x8]
	sub	x20, x20, x8, lsl #2
	add	w27, w27, #1
	ldr	w8, [x19]
	cmp	w27, w8
	b.ge	LBB0_15
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	str	x20, [x24, #16]
	ldr	w8, [x19, #4]
	lsl	w8, w8, #1
	str	w8, [x24, #24]
Lloh13:
	adrp	x8, _Z_SYNC_FLUSH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _Z_SYNC_FLUSH@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_inflate
                                        ; kill: def $w0 killed $w0 def $x0
Lloh16:
	adrp	x8, _Z_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _Z_STREAM_END@GOTPAGE
Lloh20:
	ldr	x9, [x9, _Z_STREAM_END@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x22]
Lloh22:
	adrp	x9, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19, #4]
	lsl	w8, w8, #1
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x8, #0
LBB0_13:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x9, x8, #2
	ldr	w10, [x26, x9]
	ldr	w11, [x20, x9]
	cmp	w11, #0
	csel	w10, w10, wzr, eq
	add	w10, w10, w11
	str	w10, [x20, x9]
	add	x8, x8, #1
	ldr	w9, [x19, #4]
	lsl	w9, w9, #1
	cmp	x8, w9, sxtw
	b.lt	LBB0_13
	b	LBB0_8
LBB0_14:
Lloh25:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh28:
	adrp	x2, l_.str.1@PAGE
Lloh29:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_15:
	ldr	x0, [x24]
	bl	_av_frame_unref
	ldr	x0, [x24]
	mov	x1, x21
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_21
; %bb.16:
	mov	w8, #1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9]
	b	LBB0_20
LBB0_17:
Lloh30:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x2, l_.str@PAGE
Lloh34:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_19
LBB0_18:
Lloh35:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh38:
	adrp	x2, l_.str.2@PAGE
Lloh39:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_19:
	mov	x0, x19
	bl	_av_log
Lloh40:
	adrp	x28, _AVERROR_INVALIDDATA@GOTPAGE
Lloh41:
	ldr	x28, [x28, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x28]
LBB0_21:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing reference frame.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_P,4,2          ; @AV_PICTURE_TYPE_P
	.comm	_Z_OK,4,2                       ; @Z_OK
l_.str.1:                               ; @.str.1
	.asciz	"Could not reset inflate: %d.\n"

	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ; @AV_GET_BUFFER_FLAG_REF
	.comm	_Z_SYNC_FLUSH,4,2               ; @Z_SYNC_FLUSH
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
l_.str.2:                               ; @.str.2
	.asciz	"Inflate failed with return code: %d.\n"

	.no_dead_strip	_zerocodec_decode_frame
.subsections_via_symbols
