	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tbl_append
_tbl_append:                            ## @tbl_append
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_tb@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	xorl	%edi, %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpl	$0, (%rax)
	setg	%dil
LBB0_2:
	callq	_assert
	movq	(%r15), %rax
	movl	4(%rax), %esi
	incl	%esi
	movl	%esi, 4(%rax)
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.3:
	movl	$1, %ebx
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movq	-8(%rax,%rbx,8), %rdi
	shll	$3, %esi
	callq	_realloc
	movq	(%r15), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, -8(%rcx,%rbx,8)
	movq	(%r15), %rax
	movq	8(%rax), %rcx
	movq	-8(%rcx,%rbx,8), %rcx
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_err
	movq	(%r15), %rax
	movq	8(%rax), %rcx
	movq	-8(%rcx,%rbx,8), %rcx
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	4(%rax), %rax
	movq	$0, -8(%rcx,%rax,8)
	movq	(%r15), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rax), %esi
	incq	%rbx
	jmp	LBB0_4
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tb,8,3                         ## @tb
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"realloc"

	.no_dead_strip	_tbl_append
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tbl_append
_tbl_append:                            ; @tbl_append
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x20, _tb@GOTPAGE
Lloh1:
	ldr	x20, [x20, _tb@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, gt
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_assert
	ldr	x8, [x20]
	ldp	w10, w9, [x8]
	add	w9, w9, #1
	str	w9, [x8, #4]
	cmp	w10, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x21, #0
Lloh2:
	adrp	x22, _EXIT_FAILURE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _EXIT_FAILURE@GOTPAGEOFF]
Lloh4:
	adrp	x19, l_.str@PAGE
Lloh5:
	add	x19, x19, l_.str@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	lsl	x23, x21, #3
	ldr	x0, [x8, x23]
	lsl	w1, w9, #3
	bl	_realloc
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	str	x0, [x8, x23]
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	ldr	x9, [x9, x23]
	cbnz	x9, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22]
	mov	x1, x19
	bl	_err
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	ldr	x9, [x9, x21, lsl #3]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrsw	x8, [x8, #4]
	add	x8, x9, x8, lsl #3
	stur	xzr, [x8, #-8]
	add	x21, x21, #1
	ldr	x8, [x20]
	ldrsw	x9, [x8]
	cmp	x21, x9
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x8, #4]
	b	LBB0_5
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_tb,8,3                         ; @tb
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"realloc"

	.no_dead_strip	_tbl_append
.subsections_via_symbols
