	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_p_frame
_decode_p_frame:                        ## @decode_p_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	40(%rdi), %rax
	movslq	(%rax), %rcx
	movl	4(%rax), %eax
	movq	56(%rdi), %rdx
	movq	48(%rdi), %rsi
	cmpl	$2, (%rdi)
	jl	LBB0_4
## %bb.1:
	cmpl	$19, %r15d
	jbe	LBB0_2
## %bb.3:
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	32(%rbx), %rdi
	callq	_AV_RL32
	movl	%eax, %r14d
	leaq	48(%rbx), %rdi
	callq	_AV_RL32
	movl	%eax, %r13d
	leaq	64(%rbx), %rdi
	callq	_AV_RL32
                                        ## kill: def $eax killed $eax def $rax
	movl	$20, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpl	%r15d, %r14d
	jbe	LBB0_6
	jmp	LBB0_10
LBB0_4:
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	-16(%rbx), %rdi
	callq	_AV_RL16
	movl	%eax, %r14d
	leaq	-8(%rbx), %rdi
	callq	_AV_RL16
	movl	%eax, %r13d
	movl	%r14d, %eax
	addl	%r13d, %eax
	movl	%r15d, %edi
	subl	%eax, %edi
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	_FFMAX
                                        ## kill: def $eax killed $eax def $rax
	cmpl	%r15d, %r14d
	ja	LBB0_10
LBB0_6:
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	7(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$3, %edx
	cmpl	%edx, %r14d
	jae	LBB0_10
## %bb.7:
	movl	%r15d, %ecx
	subl	%r14d, %ecx
	cmpl	%ecx, %eax
	ja	LBB0_10
## %bb.8:
	movl	%r15d, %ecx
	subl	%r14d, %ecx
	subl	%eax, %ecx
	subl	%r13d, %ecx
	jb	LBB0_10
## %bb.9:
	cmpl	%ecx, -56(%rbp)                 ## 4-byte Folded Reload
	ja	LBB0_10
## %bb.11:
	leaq	12(%r12), %rdi
	leaq	32(%r12), %rsi
	movl	%r14d, %edx
	callq	_av_fast_padded_malloc
	movl	12(%r12), %edi
	testl	%edi, %edi
	je	LBB0_21
## %bb.12:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	leaq	(%rbx,%rax,4), %rsi
	movl	%r14d, %edx
	shrl	$2, %edx
	callq	*24(%r12)
	leaq	16(%r12), %rdi
	movl	12(%r12), %esi
	leal	(,%r14,8), %edx
	callq	_init_get_bits
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%r14d, %eax
	addl	%eax, %r13d
	leaq	8(%r12), %rdi
	leaq	(%rbx,%rax,4), %rsi
	movl	%r15d, %edx
	subl	%eax, %edx
	callq	_bytestream2_init
	leaq	4(%r12), %rdi
	leaq	(%rbx,%r13,4), %rsi
	subl	%r13d, %r15d
	movl	%r15d, %edx
	callq	_bytestream2_init
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	leal	(%r13,%r13), %esi
	movq	%r12, %rdi
	callq	_init_mv
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_13
## %bb.14:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rax
	shlq	$5, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_15
LBB0_10:
	movq	40(%r12), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leal	(%rax,%r14), %ecx
	subl	%r15d, %ecx
	addl	%r13d, %ecx
	movl	%ecx, (%rsp)
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	movl	%r13d, %r9d
	callq	_av_log
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_20:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	addl	$8, %ecx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, -64(%rbp)                 ## 8-byte Folded Spill
	addq	%rax, -72(%rbp)                 ## 8-byte Folded Spill
	xorl	%eax, %eax
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	cmpl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	jge	LBB0_20
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	testl	%r13d, %r13d
	jle	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%r15d, %r15d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	$3, %ecx
	movl	$3, %r8d
	movl	%r13d, %r9d
	callq	_decode_p_block
	testl	%eax, %eax
	js	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_18 Depth=2
	addq	$32, %rbx
	addq	$32, %r14
	addl	$8, %r15d
	cmpl	%r15d, %r13d
	jg	LBB0_18
	jmp	LBB0_19
LBB0_21:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lengths %d %d %d %d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_decode_p_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_p_frame
_decode_p_frame:                        ; @decode_p_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	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldp	x8, x25, [x0, #40]
	ldp	w20, w26, [x8]
                                        ; kill: def $w20 killed $w20 def $x20
	sxtw	x20, w20
	ldr	x27, [x0, #56]
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.1:
	cmp	w21, #19
	b.ls	LBB0_7
; %bb.2:
	add	x0, x22, #32
	bl	_AV_RL32
	mov	x23, x0
	add	x0, x22, #48
	bl	_AV_RL32
	mov	x24, x0
	add	x0, x22, #64
	bl	_AV_RL32
	mov	x4, x0
	mov	w28, #20
	cmp	w23, w21
	b.ls	LBB0_4
	b	LBB0_6
LBB0_3:
	sub	x0, x22, #16
	bl	_AV_RL16
	mov	x23, x0
	sub	x0, x22, #8
	bl	_AV_RL16
	mov	x24, x0
	add	w8, w23, w0
	sub	w0, w21, w8
	mov	w1, #0
	bl	_FFMAX
	mov	x4, x0
	mov	w28, #0
	cmp	w23, w21
	b.hi	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	sub	w9, w21, w23
	cmp	w23, w8, asr #3
	ccmp	w4, w9, #2, lo
	b.hi	LBB0_6
; %bb.5:
	add	w8, w23, w4
	sub	w8, w21, w8
	subs	w8, w8, w24
	ccmp	w28, w8, #2, hs
	b.ls	LBB0_9
LBB0_6:
	ldr	x0, [x19, #40]
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	w8, w4, w23
	sub	w8, w8, w21
	add	w6, w8, w24
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x23
	mov	x5, x24
	bl	_av_log
LBB0_7:
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_8:
	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
LBB0_9:
	add	x0, x19, #12
	add	x1, x19, #32
	mov	x2, x23
	bl	_av_fast_padded_malloc
	ldr	w0, [x19, #12]
	cbz	w0, LBB0_17
; %bb.10:
	ldr	x8, [x19, #24]
	lsr	w2, w23, #2
	add	x1, x22, w28, uxtw #2
	blr	x8
	add	x0, x19, #16
	ldr	w1, [x19, #12]
	lsl	w2, w23, #3
	bl	_init_get_bits
	add	w8, w28, w23
	add	w23, w8, w24
	add	x0, x19, #8
	add	x1, x22, w8, uxtw #2
	sub	w2, w21, w8
	bl	_bytestream2_init
	add	x0, x19, #4
	add	x1, x22, w23, uxtw #2
	sub	w2, w21, w23
	bl	_bytestream2_init
	lsl	w1, w20, #1
	mov	x0, x19
	bl	_init_mv
	cmp	w26, #1
	b.lt	LBB0_18
; %bb.11:
	mov	w21, #0
	lsl	x22, x20, #5
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #0
	add	w21, w21, #8
	add	x25, x25, x22
	add	x27, x27, x22
	cmp	w21, w26
	b.ge	LBB0_8
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	cmp	w20, #1
	b.lt	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w23, #0
	mov	x24, #0
LBB0_15:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, x27, x24
	add	x2, x25, x24
	mov	x0, x19
	mov	w3, #3
	mov	w4, #3
	mov	x5, x20
	bl	_decode_p_block
	tbnz	w0, #31, LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	add	x24, x24, #32
	add	w23, w23, #8
	cmp	w20, w23
	b.gt	LBB0_15
	b	LBB0_12
LBB0_17:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_18:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lengths %d %d %d %d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_decode_p_frame
.subsections_via_symbols
