	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cook_decode_frame
_cook_decode_frame:                     ## @cook_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
	movl	8(%rcx), %eax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r10d
	cmpl	%r10d, %eax
	jl	LBB0_19
## %bb.1:
	movq	%rdx, %rbx
	movq	(%rcx), %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r15
	cmpl	$2, (%r15)
	jl	LBB0_2
## %bb.3:
	movq	%rsi, %r14
	movl	24(%r15), %eax
	movl	%eax, 8(%rsi)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_19
## %bb.4:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r10d
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
LBB0_5:
	movq	16(%r15), %rax
	movl	%r10d, (%rax)
	movl	4(%r15), %r9d
	movl	%r10d, %r8d
	cmpl	$2, %r9d
	jl	LBB0_9
## %bb.6:
	movl	%r10d, %edx
	subl	%r9d, %edx
	incl	%edx
	movq	%r9, %rsi
	shlq	$5, %rsi
	movl	$32, %edi
	movl	%r10d, %r8d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r8d, %ebx
	movslq	%edx, %rcx
	movl	(%r13,%rcx,4), %r8d
	addl	%r8d, %r8d
	movl	%r8d, (%rax,%rdi)
	notl	%r8d
	addl	%ebx, %r8d
	movl	%r8d, (%rax)
	js	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	$32, %rdi
	incl	%edx
	cmpq	%rdi, %rsi
	jne	LBB0_7
LBB0_9:
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	testl	%r9d, %r9d
	movq	%r15, %r12
	jle	LBB0_14
## %bb.10:
	leaq	8(%r12), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rbx
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	xorl	%r11d, %r11d
	movq	%r12, %r13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leal	(,%r8,8), %edx
	movzbl	8(%rax,%r15), %ecx
	sarl	%cl, %edx
	movl	%edx, 4(%rax,%r15)
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movl	%esi, 12(%rax,%r15)
	movl	(%rbx), %esi
	movl	24(%rax,%r15), %r9d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rdx
	movl	%r14d, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r11
	movq	%r11, %r12
	callq	_av_log
	addq	$16, %rsp
	movq	16(%r13), %rsi
	addq	%r15, %rsi
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movslq	%r12d, %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdx
	movq	%r13, %rdi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_decode_subpacket
	testl	%eax, %eax
	js	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%r13), %rax
	movq	%rbx, %rcx
	movl	(%rax,%r15), %ebx
	movq	%r13, %r12
	movq	16(%rax,%r15), %r13
	movl	(%rcx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leal	(,%rbx,8), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_bits_count
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str.2(%rip), %rdx
	movl	%r14d, %ecx
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_av_log
	incq	%r14
	movslq	4(%r12), %rax
	cmpq	%rax, %r14
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	addl	%r13d, %esi
	addl	-104(%rbp), %ebx                ## 4-byte Folded Reload
	movq	16(%r12), %rax
	movl	32(%rax,%r15), %r8d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %r10d
	addq	$32, %r15
	movl	%ebx, %r11d
	movq	%r12, %r13
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
LBB0_14:
	movl	(%r12), %eax
	cmpl	$1, %eax
	jg	LBB0_16
## %bb.15:
	movq	%r12, %rcx
	incl	%eax
	movl	%eax, (%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_17
LBB0_20:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_16:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_18:
	movl	(%rax), %eax
LBB0_19:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frame subpacket size total > avctx->block_align!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"subpacket[%i] size %i js %i %i block_align %i\n"

L_.str.2:                               ## @.str.2
	.asciz	"subpacket[%i] %i %i\n"

	.no_dead_strip	_cook_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cook_decode_frame
_cook_decode_frame:                     ; @cook_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x27, x0
	ldr	w0, [x3, #8]
	ldr	w8, [x27]
	cmp	w0, w8
	b.lt	LBB0_19
; %bb.1:
	mov	x20, x2
	ldr	x9, [x3]
	str	x9, [sp, #72]                   ; 8-byte Folded Spill
	ldr	x21, [x27, #8]
	ldr	w9, [x21]
	cmp	w9, #2
	b.lt	LBB0_4
; %bb.2:
	mov	x22, x1
	ldr	w8, [x21, #24]
	str	w8, [x1, #8]
	mov	x0, x27
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_19
; %bb.3:
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	ldr	x8, [x22]
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	ldr	w8, [x27]
	b	LBB0_5
LBB0_4:
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	str	xzr, [sp, #64]                  ; 8-byte Folded Spill
LBB0_5:
	ldr	x9, [x21, #16]
	str	w8, [x9]
	ldr	w11, [x21, #4]
	mov	x10, x8
	cmp	w11, #1
	b.le	LBB0_9
; %bb.6:
	add	x12, x9, #32
	sub	w10, w8, w11
	add	w13, w10, #1
	sub	x14, x11, #1
	mov	x10, x8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x15, [sp, #72]                  ; 8-byte Folded Reload
	ldr	w15, [x15, w13, sxtw #2]
	lsl	w15, w15, #1
	str	w15, [x12]
	mvn	w15, w15
	adds	w10, w10, w15
	str	w10, [x9]
	b.mi	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x12, x12, #32
	add	w13, w13, #1
	subs	x14, x14, #1
	b.ne	LBB0_7
LBB0_9:
	cmp	w11, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x23, #0
	mov	x20, #0
	mov	w19, #0
	mov	w28, #0
	add	x11, x21, #8
	str	x11, [sp, #48]                  ; 8-byte Folded Spill
Lloh0:
	adrp	x26, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AV_LOG_DEBUG@GOTPAGEOFF]
	str	x21, [sp, #56]                  ; 8-byte Folded Spill
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	lsl	w11, w10, #3
	add	x9, x9, x23
	ldr	w12, [x9, #8]
	asr	w11, w11, w12
	str	w11, [x9, #4]
	str	w19, [x9, #12]
	ldr	w1, [x26]
	ldr	w9, [x9, #24]
	stp	x28, x8, [sp, #24]
	stp	x10, x9, [sp, #8]
	str	x20, [sp]
	mov	x0, x27
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	ldr	x8, [x21, #16]
	add	x1, x8, x23
	ldp	x3, x8, [sp, #64]               ; 16-byte Folded Reload
	add	x2, x8, w28, sxtw #2
	mov	x0, x21
	bl	_decode_subpacket
	tbnz	w0, #31, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x21, #16]
	mov	x24, x23
	add	x8, x8, x23
	ldr	w23, [x8]
	ldr	x22, [x8, #16]
	mov	x25, x26
	ldr	w26, [x26]
	mov	x21, x27
	lsl	w27, w23, #3
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	bl	_get_bits_count
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x27, x0, [sp, #8]
	mov	x27, x21
	str	x20, [sp]
	mov	x0, x21
	mov	x1, x26
	ldr	x21, [sp, #56]                  ; 8-byte Folded Reload
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
	add	x20, x20, #1
	ldrsw	x8, [x21, #4]
	cmp	x20, x8
	b.ge	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w19, w19, w22
	add	w28, w23, w28
	ldr	x9, [x21, #16]
	mov	x23, x24
	add	x8, x9, x24
	ldr	w10, [x8, #32]
	ldr	w8, [x27]
	add	x23, x24, #32
	mov	x26, x25
	b	LBB0_11
LBB0_14:
	ldr	w8, [x21]
	cmp	w8, #1
	b.gt	LBB0_17
; %bb.15:
	add	w8, w8, #1
	str	w8, [x21]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	wzr, [x8]
	b	LBB0_18
LBB0_16:
Lloh6:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x27
	bl	_av_log
Lloh11:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_19
LBB0_17:
	mov	w8, #1
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	str	w8, [x9]
LBB0_18:
	ldr	w0, [x27]
LBB0_19:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frame subpacket size total > avctx->block_align!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"subpacket[%i] size %i js %i %i block_align %i\n"

l_.str.2:                               ; @.str.2
	.asciz	"subpacket[%i] %i %i\n"

	.no_dead_strip	_cook_decode_frame
.subsections_via_symbols
