	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_reductions
_add_reductions:                        ## @add_reductions
	.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	$24, %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	%edi, %ebx
	movq	_ntokens@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WORDSIZE
	movq	_lookaheads@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%ebx, %rdx
	movslq	(%rcx,%rdx,4), %r12
	movl	4(%rcx,%rdx,4), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %r12d
	jge	LBB0_8
## %bb.1:
	cltq
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	incq	%r12
	cmpl	%r12d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	_ntokens@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_LAruleno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %r14d
	imulq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	shlq	$2, %r12
	movq	_LA@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	incl	%r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	decl	%r13d
	cmpl	$1, %r13d
	jbe	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-2(%r13), %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_BIT
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_add_reduce
	movq	%rax, %r15
	jmp	LBB0_6
LBB0_8:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ntokens,4,2                    ## @ntokens
	.comm	_lookaheads,8,3                 ## @lookaheads
	.comm	_LAruleno,8,3                   ## @LAruleno
	.comm	_LA,8,3                         ## @LA
	.no_dead_strip	_add_reductions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_reductions
_add_reductions:                        ; @add_reductions
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _ntokens@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ntokens@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_WORDSIZE
                                        ; kill: def $w0 killed $w0 def $x0
Lloh2:
	adrp	x8, _lookaheads@GOTPAGE
Lloh3:
	ldr	x8, [x8, _lookaheads@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x8, x8, w20, sxtw #2
	ldp	w24, w25, [x8]
                                        ; kill: def $w24 killed $w24 def $x24
	sxtw	x24, w24
	cmp	w24, w25
	b.ge	LBB0_8
; %bb.1:
	sxtw	x26, w0
Lloh5:
	adrp	x28, _LA@GOTPAGE
Lloh6:
	ldr	x28, [x28, _LA@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	cmp	w25, w24
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh7:
	adrp	x9, _LAruleno@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LAruleno@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	w20, [x9, x24, lsl #2]
	ldr	x9, [x28]
	mul	x10, x24, x26
	add	x21, x9, x10, lsl #2
	add	w27, w8, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	sub	w27, w27, #1
	cmp	w27, #1
	b.ls	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w22, w27, #2
	mov	x0, x21
	mov	x1, x22
	bl	_BIT
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_add_reduce
	mov	x19, x0
	b	LBB0_5
LBB0_8:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ntokens,4,2                    ; @ntokens
	.comm	_lookaheads,8,3                 ; @lookaheads
	.comm	_LAruleno,8,3                   ; @LAruleno
	.comm	_LA,8,3                         ; @LA
	.no_dead_strip	_add_reductions
.subsections_via_symbols
