	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_picture_tables
_alloc_picture_tables:                  ## @alloc_picture_tables
	.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
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r12d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %eax
	leal	1(%rax), %r13d
	imull	%r8d, %r13d
	movl	%eax, %r15d
	imull	%r8d, %r15d
	movl	24(%rbp), %ecx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	imull	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leal	2(%r15), %edi
	callq	_av_buffer_allocz
	movq	%rax, 64(%rbx)
	movl	%r12d, %r14d
	addl	%r13d, %r14d
	leal	(%r12,%r13), %edi
	incl	%edi
	callq	_av_buffer_allocz
	movq	%rax, 56(%rbx)
	leal	4(,%r14,4), %edi
	callq	_av_buffer_allocz
	movq	%rax, 48(%rbx)
	cmpq	$0, 64(%rbx)
	je	LBB0_7
## %bb.1:
	cmpq	$0, 56(%rbx)
	je	LBB0_7
## %bb.2:
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.4:
	leal	(,%r15,4), %r14d
	movl	%r14d, %edi
	callq	_av_buffer_allocz
	movq	%rax, 40(%rbx)
	movl	%r14d, %edi
	callq	_av_buffer_allocz
	movq	%rax, 32(%rbx)
	movl	%r15d, %edi
	callq	_av_buffer_allocz
	movq	%rax, 24(%rbx)
	cmpq	$0, 40(%rbx)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_7
## %bb.5:
	cmpq	$0, 32(%rbx)
	je	LBB0_7
## %bb.6:
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_7
LBB0_8:
	movq	_FMT_H263@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_10
## %bb.9:
	movq	_AV_CODEC_FLAG2_EXPORT_MVS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_15
LBB0_10:
	shll	$4, %r14d
	addl	$32, %r14d
	je	LBB0_15
## %bb.11:
	shll	$2, %r15d
	movl	%r14d, %edi
	callq	_av_buffer_allocz
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
	movl	%r15d, %edi
	callq	_av_buffer_allocz
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.12:
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.13:
	movl	%r14d, %edi
	callq	_av_buffer_allocz
	movq	16(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movl	%r15d, %edi
	callq	_av_buffer_allocz
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	16(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.14:
	movq	8(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_7
LBB0_15:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FMT_H263,4,2                   ## @FMT_H263
	.comm	_AV_CODEC_FLAG2_EXPORT_MVS,4,2  ## @AV_CODEC_FLAG2_EXPORT_MVS
	.no_dead_strip	_alloc_picture_tables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_picture_tables
_alloc_picture_tables:                  ; @alloc_picture_tables
	.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	x22, x7
	mov	x19, x6
	mov	x20, x5
	mov	x23, x4
	mov	x26, x3
	mov	x27, x2
	mov	x21, x1
	mov	x25, x0
	mul	w24, w6, w4
	add	w28, w4, w24
	add	w0, w24, #2
	bl	_av_buffer_allocz
	str	x0, [x21, #64]
	add	w8, w23, w28
	add	w23, w8, #1
	mov	x0, x23
	bl	_av_buffer_allocz
	str	x0, [x21, #56]
	lsl	w0, w23, #2
	bl	_av_buffer_allocz
	str	x0, [x21, #48]
	ldr	x8, [x21, #64]
	cbz	x8, LBB0_15
; %bb.1:
	ldr	x8, [x21, #56]
	cbz	x8, LBB0_15
; %bb.2:
	cbz	x0, LBB0_15
; %bb.3:
	lsl	w23, w24, #2
	cbz	w27, LBB0_7
; %bb.4:
	mov	x0, x23
	bl	_av_buffer_allocz
	str	x0, [x21, #40]
	mov	x0, x23
	bl	_av_buffer_allocz
	str	x0, [x21, #32]
	mov	x0, x24
	bl	_av_buffer_allocz
	str	x0, [x21, #24]
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_15
; %bb.5:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_15
; %bb.6:
	cbnz	x0, LBB0_9
	b	LBB0_15
LBB0_7:
Lloh0:
	adrp	x8, _FMT_H263@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FMT_H263@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w26
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x25]
Lloh3:
	adrp	x9, _AV_CODEC_FLAG2_EXPORT_MVS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_FLAG2_EXPORT_MVS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
LBB0_9:
	mul	w8, w19, w22
	lsl	w8, w8, #4
	adds	w22, w8, #32
	b.eq	LBB0_14
; %bb.10:
	mov	x0, x22
	bl	_av_buffer_allocz
	ldr	x8, [x21, #16]
	str	x0, [x8]
	mov	x0, x23
	bl	_av_buffer_allocz
	ldr	x8, [x21, #8]
	str	x0, [x8]
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.11:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.12:
	mov	x0, x22
	bl	_av_buffer_allocz
	ldr	x8, [x21, #16]
	str	x0, [x8, #8]
	mov	x0, x23
	bl	_av_buffer_allocz
	ldr	x8, [x21, #8]
	str	x0, [x8, #8]
	ldr	x8, [x21, #16]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_15
; %bb.13:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_15
LBB0_14:
	stp	w20, w19, [x21]
	mov	w0, #0
	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_15:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FMT_H263,4,2                   ; @FMT_H263
	.comm	_AV_CODEC_FLAG2_EXPORT_MVS,4,2  ; @AV_CODEC_FLAG2_EXPORT_MVS
	.no_dead_strip	_alloc_picture_tables
.subsections_via_symbols
