	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ltbl_add                       ## -- Begin function ltbl_add
	.p2align	4, 0x90
_ltbl_add:                              ## @ltbl_add
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_ltbl_check
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	setg	%dil
	callq	_assert
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ltbl_get_to
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	cmpl	%eax, %ecx
	jl	LBB0_3
## %bb.2:
	sete	%al
	movzbl	%al, %edi
	callq	_assert
	movl	(%rbx), %r12d
	movl	4(%rbx), %esi
	leal	(%rsi,%rsi), %eax
	movl	%eax, (%rbx)
	movq	8(%rbx), %rdi
	shll	$3, %esi
	leal	(,%r12,4), %r15d
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	callq	_qrealloc
	movq	%rax, 8(%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movl	(%rbx), %eax
	decl	%eax
	xorl	%edi, %edi
	cmpl	$99999999, %eax                 ## imm = 0x5F5E0FF
	setb	%dil
	callq	_assert
	movq	8(%rbx), %rdi
	movl	(%rbx), %esi
	callq	_poly_h
	movl	%eax, 20(%rbx)
	addl	8(%rbx), %r15d
	movl	(%rbx), %edx
	subl	%r12d, %edx
	shll	$2, %edx
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_memset
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
LBB0_3:
	xorl	%edi, %edi
	cmpl	%eax, %ecx
	setl	%dil
	callq	_assert
	movq	8(%rbx), %rax
	movslq	4(%rbx), %rcx
	movl	%r14d, (%rax,%rcx,4)
	movslq	4(%rbx), %r15
	leaq	16(%rbx), %rdi
	movl	%r14d, %esi
	callq	_htbl_find_or_create
	movq	%r15, (%rax)
	movl	4(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 4(%rbx)
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ltbl_add                       ; -- Begin function ltbl_add
	.p2align	2
_ltbl_add:                              ; @ltbl_add
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_ltbl_check
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, gt
	bl	_assert
	mov	x0, x19
	mov	x1, x20
	bl	_ltbl_get_to
	cbnz	w0, LBB0_4
; %bb.1:
	ldp	w9, w8, [x19]
	cmp	w8, w9
	b.lt	LBB0_3
; %bb.2:
	cset	w0, eq
	bl	_assert
	ldp	w22, w8, [x19]
	lsl	w9, w8, #1
	str	w9, [x19]
	ldr	x0, [x19, #8]
	lsl	w1, w8, #3
	lsl	w21, w22, #2
	mov	x2, x21
	bl	_qrealloc
	str	x0, [x19, #8]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	w8, [x19]
	sub	w8, w8, #1
	mov	w9, #57599
	movk	w9, #1525, lsl #16
	cmp	w8, w9
	cset	w0, lo
	bl	_assert
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
	bl	_poly_h
	str	w0, [x19, #20]
	ldr	w8, [x19, #8]
	add	w0, w8, w21
	ldr	w8, [x19]
	sub	w8, w8, w22
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldp	w9, w8, [x19]
LBB0_3:
	cmp	w8, w9
	cset	w0, lt
	bl	_assert
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #4]
	str	w20, [x8, x9, lsl #2]
	ldrsw	x21, [x19, #4]
	add	x0, x19, #16
	mov	x1, x20
	bl	_htbl_find_or_create
	str	x21, [x0]
	ldr	w0, [x19, #4]
	add	w8, w0, #1
	str	w8, [x19, #4]
LBB0_4:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
