	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdi, %rbx
	movslq	(%rdi), %rcx
	movl	4(%rdi), %eax
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	imull	%ecx, %eax
	shll	$3, %eax
	cltq
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	cmpl	%eax, (%r15)
	jge	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_2:
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	8(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_avpriv_request_sample
LBB0_4:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_20
## %bb.5:
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	24(%r13), %rax
	movq	(%rax), %r12
	movq	%r13, %rcx
	movq	8(%rax), %r13
	movq	16(%rax), %r14
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%r12,%rdx,4), %rbx
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	$1, (%rcx)
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	addq	$16, %r15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_av_be2ne32
	movl	%eax, %ecx
	shrl	$16, %ecx
	andl	$-64, %ecx
	movl	%ecx, (%r13)
	addq	$4, %r13
	movl	%eax, %ecx
	shrl	$6, %ecx
	andl	$65472, %ecx                    ## imm = 0xFFC0
	movl	%ecx, (%r12)
	shll	$4, %eax
	andl	$65472, %eax                    ## imm = 0xFFC0
	movl	%eax, (%r14)
	addq	$4, %r14
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %edi
	callq	_av_be2ne32
	movl	%eax, %ecx
	shrl	$16, %ecx
	andl	$-64, %ecx
	movl	%ecx, 4(%r12)
	addq	$8, %r12
	cmpq	%rbx, %r12
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	incl	%r15d
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpl	4(%rcx), %r15d
	jge	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movl	(%rcx), %edx
	movl	4(%rcx), %esi
	movl	%edx, %edi
	shrl	$31, %edi
	addl	%edx, %edi
	sarl	%edi
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	subl	%r8d, %edi
	movslq	%edi, %rdx
	leaq	(%r12,%rdx,4), %r12
	movl	%esi, %edx
	shrl	$31, %edx
	addl	%esi, %edx
	sarl	%edx
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	subl	%esi, %edx
	movslq	%edx, %rdx
	leaq	(%r13,%rdx,4), %r13
	movl	8(%rcx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	subl	%esi, %edx
	movslq	%edx, %rcx
	leaq	(%r14,%rcx,4), %r14
	leaq	(%r12,%r8,4), %rbx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %ecx
	shrl	$6, %ecx
	andl	$65472, %ecx                    ## imm = 0xFFC0
	movl	%ecx, (%r13)
	addq	$4, %r13
	shll	$4, %eax
	andl	$65472, %eax                    ## imm = 0xFFC0
	movl	%eax, (%r12)
	movl	8(%rdx), %edi
	callq	_av_be2ne32
	movl	%eax, %ecx
	shrl	$16, %ecx
	andl	$-64, %ecx
	movl	%ecx, (%r14)
	addq	$4, %r14
	movl	%eax, %ecx
	shrl	$6, %ecx
	andl	$65472, %ecx                    ## imm = 0xFFC0
	movl	%ecx, 4(%r12)
	addq	$8, %r12
	cmpq	%rbx, %r12
	jb	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	incl	%r15d
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpl	4(%rcx), %r15d
	jge	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movl	(%rcx), %edx
	movl	4(%rcx), %esi
	movl	%edx, %edi
	shrl	$31, %edi
	addl	%edx, %edi
	sarl	%edi
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	subl	%r8d, %edi
	movslq	%edi, %rdx
	leaq	(%r12,%rdx,4), %r12
	movl	%esi, %edx
	shrl	$31, %edx
	addl	%esi, %edx
	sarl	%edx
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	subl	%esi, %edx
	movslq	%edx, %rdx
	leaq	(%r13,%rdx,4), %r13
	movl	8(%rcx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	subl	%esi, %edx
	movslq	%edx, %rcx
	leaq	(%r14,%rcx,4), %r14
	leaq	(%r12,%r8,4), %rbx
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	shll	$4, %eax
	andl	$65472, %eax                    ## imm = 0xFFC0
	movl	%eax, (%r13)
	addq	$4, %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edi
	callq	_av_be2ne32
	movl	%eax, %ecx
	shrl	$16, %ecx
	andl	$-64, %ecx
	movl	%ecx, (%r12)
	movl	%eax, %ecx
	shrl	$6, %ecx
	andl	$65472, %ecx                    ## imm = 0xFFC0
	movl	%ecx, (%r14)
	addq	$4, %r14
	shll	$4, %eax
	andl	$65472, %eax                    ## imm = 0xFFC0
	movl	%eax, 4(%r12)
	addq	$8, %r12
	cmpq	%rbx, %r12
	jb	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	incl	%r15d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpl	4(%rax), %r15d
	jge	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	subl	%edi, %esi
	movslq	%esi, %rcx
	leaq	(%r12,%rcx,4), %r12
	movl	%edx, %ecx
	shrl	$31, %ecx
	addl	%edx, %ecx
	sarl	%ecx
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	subl	%edx, %ecx
	movslq	%ecx, %rcx
	leaq	(%r13,%rcx,4), %r13
	movl	8(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	subl	%edx, %ecx
	movslq	%ecx, %rax
	leaq	(%r14,%rax,4), %r14
	leaq	(%r12,%rdi,4), %rbx
	jmp	LBB0_15
LBB0_18:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-104(%rbp), %rax                ## 8-byte Reload
LBB0_19:
	movl	(%rax), %eax
LBB0_20:
	addq	$72, %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	"Packet too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"(Probably) padded data"

	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.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, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x0
	ldr	w8, [x3]
	ldp	w23, w9, [x0]
                                        ; kill: def $w23 killed $w23 def $x23
	sxtw	x23, w23
	mul	w9, w23, w9
	lsl	w9, w9, #3
	mov	w10, #21846
	movk	w10, #21845, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w9, w9, w10
	cmp	w8, w9
	b.ge	LBB0_2
; %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
	mov	x0, x20
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_17
LBB0_2:
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x24, [x3, #8]
	b.le	LBB0_4
; %bb.3:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_avpriv_request_sample
LBB0_4:
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_18
; %bb.5:
	stp	x21, x19, [sp]                  ; 16-byte Folded Spill
	str	x20, [sp, #24]                  ; 8-byte Folded Spill
	mov	w25, #0
	ldr	x8, [x22, #24]
	ldp	x19, x26, [x8]
	ldr	x27, [x8, #16]
	add	x21, x19, x23, lsl #2
Lloh9:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x22, #16]
	mov	w8, #1
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	str	w8, [x22]
	cmp	w23, #0
	cinc	w8, w23, lt
	asr	w28, w8, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	bl	_av_be2ne32
	lsr	w8, w0, #16
	and	w8, w8, #0xffc0
	str	w8, [x26], #4
	lsr	w8, w0, #6
	and	w8, w8, #0xffc0
	str	w8, [x19]
	lsl	w8, w0, #4
	and	w8, w8, #0xffc0
	str	w8, [x27], #4
	ldr	w0, [x24, #4]
	bl	_av_be2ne32
	lsr	w8, w0, #16
	and	w8, w8, #0xffc0
	add	x22, x19, #8
	str	w8, [x19, #4]
	cmp	x22, x21
	b.lo	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldp	w9, w11, [x8]
	cmp	w9, #0
	cinc	w10, w9, lt
	cmp	w11, #0
	cinc	w9, w11, lt
	ldr	w8, [x8, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w25, w25, #1
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w11, [x11, #4]
	cmp	w25, w11
	b.ge	LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	asr	w10, w10, #1
	sub	w10, w10, w23
	add	x22, x22, w10, sxtw #2
	asr	w9, w9, #1
	sub	w9, w9, w28
	add	x26, x26, w9, sxtw #2
	asr	w8, w8, #1
	sub	w8, w8, w28
	add	x27, x27, w8, sxtw #2
	add	x21, x22, x23, lsl #2
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	lsr	w8, w0, #6
	and	w8, w8, #0xffc0
	str	w8, [x26], #4
	lsl	w8, w0, #4
	and	w8, w8, #0xffc0
	str	w8, [x22]
	ldr	w0, [x24, #8]
	bl	_av_be2ne32
	lsr	w8, w0, #16
	and	w8, w8, #0xffc0
	str	w8, [x27], #4
	lsr	w8, w0, #6
	and	w8, w8, #0xffc0
	add	x20, x22, #8
	str	w8, [x22, #4]
	cmp	x20, x21
	b.lo	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldp	w9, w11, [x8]
	cmp	w9, #0
	cinc	w10, w9, lt
	cmp	w11, #0
	cinc	w9, w11, lt
	ldr	w8, [x8, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w25, w25, #1
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w11, [x11, #4]
	cmp	w25, w11
	b.ge	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	asr	w10, w10, #1
	sub	w10, w10, w23
	add	x20, x20, w10, sxtw #2
	asr	w9, w9, #1
	sub	w9, w9, w28
	add	x26, x26, w9, sxtw #2
	asr	w8, w8, #1
	sub	w8, w8, w28
	add	x27, x27, w8, sxtw #2
	add	x21, x20, x23, lsl #2
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	lsl	w8, w0, #4
	and	w8, w8, #0xffc0
	str	w8, [x26], #4
	ldr	w0, [x24, #12]
	bl	_av_be2ne32
	lsr	w8, w0, #16
	and	w8, w8, #0xffc0
	str	w8, [x20]
	lsr	w8, w0, #6
	and	w8, w8, #0xffc0
	str	w8, [x27], #4
	lsl	w8, w0, #4
	and	w8, w8, #0xffc0
	add	x19, x20, #8
	str	w8, [x20, #4]
	cmp	x19, x21
	b.lo	LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldp	w9, w11, [x8]
	cmp	w9, #0
	cinc	w10, w9, lt
	cmp	w11, #0
	cinc	w9, w11, lt
	ldr	w8, [x8, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w25, w25, #1
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w11, [x11, #4]
	cmp	w25, w11
	b.ge	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	asr	w10, w10, #1
	sub	w10, w10, w23
	add	x19, x19, w10, sxtw #2
	asr	w9, w9, #1
	sub	w9, w9, w28
	add	x26, x26, w9, sxtw #2
	asr	w8, w8, #1
	sub	w8, w8, w28
	add	x27, x27, w8, sxtw #2
	add	x21, x19, x23, lsl #2
	add	x24, x24, #16
	b	LBB0_7
LBB0_16:
	mov	w8, #1
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	w8, [x9]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
LBB0_17:
	ldr	w0, [x8]
LBB0_18:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packet too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"(Probably) padded data"

	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.no_dead_strip	_decode_frame
.subsections_via_symbols
