	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	(%rdi), %esi
	testl	%esi, %esi
	jle	LBB0_2
## %bb.1:
	movl	4(%rdi), %ebx
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.4:
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	8(%rcx), %r8d
	movl	%r8d, %eax
	cltd
	idivl	%esi
	cmpl	%ebx, %eax
	jge	LBB0_6
## %bb.5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_3
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_3:
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	(%rcx), %r14
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	%rdi, %rbx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movl	$1, (%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,8), %edx
	leaq	-44(%rbp), %rdi
	movq	%r14, %rsi
	callq	_init_get_bits
	movl	(%rbx), %edx
	testl	%edx, %edx
	jle	LBB0_15
## %bb.9:
	movq	%rbx, %rcx
	movl	4(%rbx), %eax
	xorl	%edi, %edi
	leaq	-44(%rbp), %rbx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%edi
	cmpl	%edx, %edi
	jge	LBB0_15
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	testl	%eax, %eax
	jle	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%r15), %rax
	movq	16(%r15), %r8
	movl	8(%r8), %edx
	imull	%edi, %edx
	movslq	%edx, %rdx
	shlq	$2, %rdx
	addq	16(%rax), %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rdx
	movl	4(%r8), %esi
	imull	%edi, %esi
	movslq	%esi, %r12
	shlq	$2, %r12
	addq	8(%rax), %r12
	movl	(%r8), %eax
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	imull	%edi, %eax
	cltq
	leaq	(%rdx,%rax,4), %r14
	addq	$12, %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movl	$5, %esi
	movq	%rcx, %r15
	callq	_get_bits
	movl	%eax, %ecx
	shll	$5, %ecx
	addl	%eax, %ecx
	sarl	$2, %ecx
	movl	%ecx, (%r14,%r13,4)
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, %ecx
	shll	$5, %ecx
	addl	%eax, %ecx
	sarl	$2, %ecx
	movl	%ecx, -4(%r14,%r13,4)
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, %ecx
	shll	$5, %ecx
	addl	%eax, %ecx
	sarl	$2, %ecx
	movl	%ecx, -8(%r14,%r13,4)
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, %ecx
	shll	$5, %ecx
	addl	%eax, %ecx
	sarl	$2, %ecx
	movl	%ecx, -12(%r14,%r13,4)
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_get_bits
	shll	$2, %eax
	movl	%eax, (%r12,%r13)
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_get_bits
	movq	%r15, %rcx
	shll	$2, %eax
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%r13)
	movl	4(%r15), %eax
	addq	$4, %r13
	cmpl	%eax, %r13d
	jl	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%rcx), %edx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_15:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_7:
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid width or height\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Resolution larger than buffer size. Invalid header?\n"

	.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, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	w9, [x19, #4]
	cmp	w9, #0
	b.le	LBB0_4
; %bb.2:
	ldr	w20, [x3, #8]
	sdiv	w8, w20, w8
	cmp	w8, w9
	b.ge	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_av_log
Lloh10:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	mov	x21, x2
	mov	x22, x1
	ldr	x23, [x3]
	mov	x0, x19
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_16
; %bb.8:
Lloh13:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x22, #24]
	mov	w24, #1
	str	w24, [x22]
	lsl	w2, w20, #3
	add	x0, sp, #12
	mov	x1, x23
	bl	_init_get_bits
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_15
; %bb.9:
	mov	w23, #0
	ldr	w8, [x19, #4]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w23, w23, #1
	cmp	w23, w9
	b.ge	LBB0_15
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x25, #0
	ldp	x8, x9, [x22, #8]
	ldp	x12, x10, [x8, #8]
	ldr	w11, [x9, #8]
	ldr	x8, [x8]
	mul	w11, w11, w23
	add	x26, x10, w11, sxtw #2
	ldp	w9, w10, [x9]
	mul	w10, w10, w23
	add	x27, x12, w10, sxtw #2
	mul	w9, w9, w23
	add	x8, x8, w9, sxtw #2
	add	x28, x8, #8
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #12
	mov	w1, #5
	bl	_get_bits
	add	w8, w0, w0, lsl #5
	asr	w8, w8, #2
	str	w8, [x28, #4]
	add	x0, sp, #12
	mov	w1, #5
	bl	_get_bits
	add	w8, w0, w0, lsl #5
	asr	w8, w8, #2
	str	w8, [x28]
	add	x0, sp, #12
	mov	w1, #5
	bl	_get_bits
	add	w8, w0, w0, lsl #5
	asr	w8, w8, #2
	stur	w8, [x28, #-4]
	add	x0, sp, #12
	mov	w1, #5
	bl	_get_bits
	add	w8, w0, w0, lsl #5
	asr	w8, w8, #2
	stur	w8, [x28, #-8]
	add	x0, sp, #12
	mov	w1, #6
	bl	_get_bits
	lsl	w8, w0, #2
	str	w8, [x27, x25]
	add	x0, sp, #12
	mov	w1, #6
	bl	_get_bits
	lsl	w8, w0, #2
	str	w8, [x26, x25]
	ldr	w8, [x19, #4]
	add	x25, x25, #4
	add	x28, x28, #16
	cmp	w25, w8
	b.lt	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [x19]
	b	LBB0_10
LBB0_15:
	str	w24, [x21]
	b	LBB0_6
LBB0_16:
	mov	x20, x0
	b	LBB0_6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid width or height\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Resolution larger than buffer size. Invalid header?\n"

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