	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_packet
_decode_packet:                         ## @decode_packet
	.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	%r9, %r15
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%r8, %rsi
	callq	_avcodec_send_packet
	testl	%eax, %eax
	js	LBB0_16
## %bb.1:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_av_frame_unref
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_av_frame_unref
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	js	LBB0_17
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##       Child Loop BB0_15 Depth 3
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_avcodec_receive_frame
	movl	%eax, %r14d
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %r14d
	je	LBB0_22
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_22
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r14d, %r14d
	js	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_av_hwframe_transfer_data
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%rbx), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%r12
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %r12
	jge	LBB0_3
LBB0_11:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_15 Depth 3
	movq	24(%rbx), %rdi
	movq	(%rdi,%r12,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	testq	%r12, %r12
	setne	%r13b
	movl	(%rbx), %eax
	movl	%r13d, %ecx
	sarl	%cl, %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	16(%rbx), %edx
	movq	%r15, %rdi
	callq	_avio_write
	movl	(%rbx), %eax
	movl	%r13d, %ecx
	sarl	%cl, %eax
	movq	24(%rbx), %rdi
	cmpl	$2, %eax
	jl	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_11 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	8(%rbx), %rax
	movslq	(%rax,%r12,4), %rsi
	movslq	%r14d, %r14
	imulq	%r14, %rsi
	addq	(%rdi,%r12,8), %rsi
	movl	16(%rbx), %edx
	movq	%r15, %rdi
	callq	_avio_write
	movl	(%rbx), %eax
	movl	%r13d, %ecx
	sarl	%cl, %eax
	incl	%r14d
	movq	24(%rbx), %rdi
	cmpl	%eax, %r14d
	jl	LBB0_15
	jmp	LBB0_10
LBB0_16:
	movl	%eax, %r14d
	jmp	LBB0_19
LBB0_22:
	xorl	%r14d, %r14d
	jmp	LBB0_20
LBB0_17:
	movl	%eax, %r14d
	jmp	LBB0_20
LBB0_18:
                                        ## kill: def $r14d killed $r14d def $r14
LBB0_19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_20:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error during decoding\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
L_.str.1:                               ## @.str.1
	.asciz	"Error transferring the data to system memory\n"

	.no_dead_strip	_decode_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_packet
_decode_packet:                         ; @decode_packet
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x0, x1
	mov	x1, x4
	bl	_avcodec_send_packet
	tbnz	w0, #31, LBB0_15
; %bb.1:
Lloh0:
	adrp	x26, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EAGAIN@GOTPAGEOFF]
Lloh2:
	adrp	x27, _AVERROR_EOF@GOTPAGE
Lloh3:
	ldr	x27, [x27, _AVERROR_EOF@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_av_frame_unref
	mov	x0, x21
	bl	_av_frame_unref
	tbnz	w23, #31, LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_14 Depth 3
	mov	x0, x22
	mov	x1, x21
	bl	_avcodec_receive_frame
	mov	x23, x0
	ldr	w0, [x26]
	bl	_AVERROR
	ldr	w8, [x27]
	cmp	w23, w0
	ccmp	w23, w8, #4, ne
	b.eq	LBB0_17
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w23, #31, LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_av_hwframe_transfer_data
	mov	x23, x0
	tbnz	w0, #31, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20, #24]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x28, x28, #1
	bl	_FF_ARRAY_ELEMS
	cmp	x28, w0, sxtw
	b.ge	LBB0_3
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_14 Depth 3
	ldr	x0, [x20, #24]
	ldr	x1, [x0, x28, lsl #3]
	cbz	x1, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	cmp	x28, #0
	cset	w24, ne
	ldr	w8, [x20]
	asr	w8, w8, w24
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w2, [x20, #16]
	mov	x0, x19
	bl	_avio_write
	ldr	w8, [x20]
	asr	w8, w8, w24
	ldr	x0, [x20, #24]
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	w25, #1
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x0, x28, lsl #3]
	ldr	x9, [x20, #8]
	ldrsw	x9, [x9, x28, lsl #2]
	sxtw	x10, w25
	madd	x1, x9, x10, x8
	ldr	w2, [x20, #16]
	mov	x0, x19
	bl	_avio_write
	add	w25, w25, #1
	ldr	w8, [x20]
	asr	w8, w8, w24
	ldr	x0, [x20, #24]
	cmp	w25, w8
	b.lt	LBB0_14
	b	LBB0_9
LBB0_15:
	mov	x23, x0
LBB0_16:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	b	LBB0_18
LBB0_17:
	mov	w23, #0
LBB0_18:
	mov	x0, x23
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error during decoding\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
l_.str.1:                               ; @.str.1
	.asciz	"Error transferring the data to system memory\n"

	.no_dead_strip	_decode_packet
.subsections_via_symbols
