	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_table
_alloc_table:                           ## @alloc_table
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r14d
	movl	4(%rdi), %eax
	addl	%r14d, %esi
	movl	%esi, (%rdi)
	cmpl	%eax, %esi
	jle	LBB0_4
## %bb.1:
	testl	%edx, %edx
	jne	LBB0_5
## %bb.2:
	movq	%rdi, %rbx
	movb	8(%rdi), %cl
	movl	$1, %esi
	shll	%cl, %esi
	movl	$1, %r15d
	addl	%eax, %esi
	movl	%esi, 4(%rdi)
	movq	16(%rdi), %rdi
	movl	$8, %edx
	callq	_av_realloc_f
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movb	8(%rbx), %cl
	shll	%cl, %r15d
	movslq	4(%rbx), %rdx
	addq	%rdx, %rax
	movslq	%r15d, %rdx
	subq	%rdx, %rax
	movl	$8, %edx
	shlq	%cl, %rdx
	movq	%rax, %rdi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	$0, (%rbx)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_5:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_alloc_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_table
_alloc_table:                           ; @alloc_table
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldp	w19, w8, [x0]
	add	w9, w19, w1
	cmp	w9, w8
	str	w9, [x0]
	b.le	LBB0_4
; %bb.1:
	cbnz	w2, LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	w9, [x0, #8]
	mov	w21, #1
	lsl	w9, w21, w9
	add	w1, w9, w8
	str	w1, [x0, #4]
	ldr	x0, [x0, #16]
	mov	w2, #8
	bl	_av_realloc_f
	str	x0, [x20, #16]
	cbz	x0, LBB0_5
; %bb.3:
	ldp	w8, w9, [x20, #4]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	x8, x0, x8
	lsl	w10, w21, w9
	sub	x0, x8, w10, sxtw
	mov	w8, #8
	lsl	x2, x8, x9
	mov	w1, #0
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memset
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	str	xzr, [x20]
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_6:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_alloc_table
.subsections_via_symbols
