	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imm5_decode_frame
_imm5_decode_frame:                     ## @imm5_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, %r12
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	48(%rdi), %r15
	movq	8(%r15), %r13
	cmpl	$25, (%rcx)
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	jl	LBB0_15
## %bb.1:
	movq	8(%r12), %rdi
	cmpl	$1, 32(%rdi)
	jg	LBB0_15
## %bb.2:
	addq	$16, %rdi
	callq	_AV_RL32
	addq	$24, %rax
	movslq	(%r12), %rcx
	cmpq	%rcx, %rax
	ja	LBB0_15
## %bb.3:
	movq	8(%r12), %rdi
	movl	4(%rdi), %ebx
	movl	40(%rdi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	addq	$16, %rdi
	callq	_AV_RL32
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	cmpl	$10, %ebx
	jne	LBB0_5
## %bb.4:
	movq	(%r15), %r13
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_7
LBB0_5:
	movl	$3, %ebx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	cmpl	$17, %edx
	je	LBB0_8
## %bb.6:
	cmpl	$18, %edx
	movl	$5, %ecx
	cmovel	%ecx, %edx
LBB0_7:
	movl	%edx, %ebx
	decl	%ebx
	cmpl	$11, %ebx
	ja	LBB0_11
LBB0_8:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_av_packet_make_writable
	testl	%eax, %eax
	js	LBB0_19
## %bb.9:
	movq	_IMM5_units@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movslq	(%rax,%rcx,8), %r15
	xorl	%edx, %edx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	cmpl	$2, %ebx
	setne	%dl
	movslq	96(%rax,%rdx,8), %rdx
	addq	%r15, %rdx
	movl	$24, %edi
	subq	%rdx, %rdi
	shlq	$2, %rdi
	addq	8(%r12), %rdi
	movq	%rdi, 8(%r12)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addl	%edx, %esi
	movl	%esi, (%r12)
	movl	4(%rax,%rcx,8), %esi
	movl	%r15d, %edx
	callq	_memcpy
	movq	%r15, %rdi
	shlq	$2, %rdi
	addq	8(%r12), %rdi
	movq	_IMM5_units@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$2, %ebx
	jne	LBB0_13
## %bb.10:
	movl	96(%rax), %edx
	movl	100(%rax), %esi
	jmp	LBB0_14
LBB0_11:
	addq	$96, 8(%r12)
	addl	$-24, (%r12)
	jmp	LBB0_15
LBB0_13:
	movl	104(%rax), %edx
	movl	108(%rax), %esi
LBB0_14:
	callq	_memcpy
LBB0_15:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_avcodec_send_packet
	testl	%eax, %eax
	js	LBB0_18
## %bb.16:
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_avcodec_receive_frame
	testl	%eax, %eax
	js	LBB0_19
## %bb.17:
	movl	40(%r13), %eax
	movl	%eax, 40(%r14)
	movl	36(%r13), %eax
	movl	%eax, 36(%r14)
	movl	32(%r13), %eax
	movl	%eax, 32(%r14)
	movups	16(%r13), %xmm0
	movups	%xmm0, 16(%r14)
	movups	(%r13), %xmm0
	movups	%xmm0, (%r14)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	(%r12), %r15d
	jmp	LBB0_20
LBB0_18:
	movl	%eax, %r15d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	jmp	LBB0_20
LBB0_19:
	movl	%eax, %r15d
LBB0_20:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMM5_units,8,3                 ## @IMM5_units
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error submitting a packet for decoding\n"

	.no_dead_strip	_imm5_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imm5_decode_frame
_imm5_decode_frame:                     ; @imm5_decode_frame
	.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	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x25, [x0, #48]
	ldr	x22, [x25, #8]
	ldr	w8, [x3]
	cmp	w8, #25
	b.lt	LBB0_15
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	w9, [x8, #32]
	cmp	w9, #1
	b.gt	LBB0_15
; %bb.2:
	add	x0, x8, #16
	bl	_AV_RL32
	add	x8, x0, #24
	ldrsw	x9, [x20]
	cmp	x8, x9
	b.hi	LBB0_15
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	w26, [x8, #4]
	ldr	w27, [x8, #40]
	add	x0, x8, #16
	bl	_AV_RL32
	mov	x24, x0
	cmp	w26, #10
	b.ne	LBB0_5
; %bb.4:
	ldr	x22, [x25]
	b	LBB0_8
LBB0_5:
	cmp	w27, #17
	b.ne	LBB0_7
; %bb.6:
	mov	w27, #3
	b	LBB0_9
LBB0_7:
	mov	w8, #5
	cmp	w27, #18
	csel	w27, w8, w27, eq
LBB0_8:
	sub	w27, w27, #1
	cmp	w27, #11
	b.hi	LBB0_12
LBB0_9:
	mov	x0, x20
	bl	_av_packet_make_writable
	tbnz	w0, #31, LBB0_19
; %bb.10:
Lloh0:
	adrp	x28, _IMM5_units@GOTPAGE
Lloh1:
	ldr	x28, [x28, _IMM5_units@GOTPAGEOFF]
	ldr	x8, [x28]
	add	x9, x8, w27, uxtw #3
	cmp	w26, #2
	mov	w10, #104
	mov	w11, #96
	csel	x10, x11, x10, eq
	ldr	w8, [x8, x10]
	mov	w10, #24
	ldp	w25, w1, [x9]
                                        ; kill: def $w25 killed $w25 def $x25
	sxtw	x25, w25
	add	w8, w8, w25
	sub	w9, w10, w8
	ldr	x10, [x20, #8]
	add	x0, x10, w9, sxtw #2
	str	x0, [x20, #8]
	add	w8, w8, w24
	str	w8, [x20]
	mov	x2, x25
	bl	_memcpy
	ldr	x8, [x20, #8]
	add	x0, x8, x25, lsl #2
	ldr	x8, [x28]
	cmp	w26, #2
	b.ne	LBB0_13
; %bb.11:
	ldp	w2, w1, [x8, #96]
	b	LBB0_14
LBB0_12:
	ldr	x8, [x20, #8]
	add	x8, x8, #96
	str	x8, [x20, #8]
	ldr	w8, [x20]
	sub	w8, w8, #24
	str	w8, [x20]
	b	LBB0_15
LBB0_13:
	ldp	w2, w1, [x8, #104]
LBB0_14:
	bl	_memcpy
LBB0_15:
	mov	x0, x22
	mov	x1, x20
	bl	_avcodec_send_packet
	tbnz	w0, #31, LBB0_18
; %bb.16:
	mov	x0, x22
	mov	x1, x23
	bl	_avcodec_receive_frame
	tbnz	w0, #31, LBB0_19
; %bb.17:
	ldr	w8, [x22, #40]
	str	w8, [x19, #40]
	ldr	d0, [x22, #32]
	str	d0, [x19, #32]
	ldr	q0, [x22, #16]
	str	q0, [x19, #16]
	ldr	q0, [x22]
	str	q0, [x19]
	mov	w8, #1
	str	w8, [x21]
	ldr	w25, [x20]
	b	LBB0_20
LBB0_18:
	mov	x25, x0
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_20
LBB0_19:
	mov	x25, x0
LBB0_20:
	mov	x0, x25
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IMM5_units,8,3                 ; @IMM5_units
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error submitting a packet for decoding\n"

	.no_dead_strip	_imm5_decode_frame
.subsections_via_symbols
