	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reduce
_reduce:                                ## @reduce
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_reuse
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_getrule
	movq	_IR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rdx
	movslq	%eax, %r13
	movq	(%rdx,%r13,8), %rbx
	leaq	-128(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	*16(%rcx)
	movzwl	(%rbx), %eax
	testw	%ax, %ax
	je	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-128(%rbp,%r12,4), %rdi
	movswl	%ax, %esi
	callq	_reduce
	movzwl	2(%rbx,%r12), %eax
	addq	$2, %r12
	testw	%ax, %ax
	jne	LBB0_2
LBB0_3:
	movq	_IR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	cmpq	$0, (%rax,%r13,8)
	je	LBB0_7
## %bb.4:
	movl	8(%r15), %eax
	testl	%eax, %eax
	sete	%cl
	cmpl	%r14d, %eax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movl	%r14d, 8(%r15)
	movq	(%r15), %rax
	movq	_RX@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_fprint
	movl	%eax, %edi
	callq	_debug
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	incl	(%rax)
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IR,8,3                         ## @IR
	.comm	_RX,8,3                         ## @RX
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(using %s)\n"

	.no_dead_strip	_reduce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reduce
_reduce:                                ; @reduce
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_reuse
	mov	x19, x0
	mov	x1, x20
	bl	_getrule
	mov	x1, x0
Lloh3:
	adrp	x21, _IR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _IR@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x8]
	sxtw	x22, w1
	ldr	x23, [x9, w0, sxtw #3]
	ldr	x8, [x8, #16]
	add	x2, sp, #8
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	blr	x8
	ldrh	w8, [x23]
	cbz	w8, LBB0_3
; %bb.1:
	add	x23, x23, #2
	add	x24, sp, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24], #8
	sxth	w1, w8
	bl	_reduce
	ldrh	w8, [x23], #2
	cbnz	w8, LBB0_2
LBB0_3:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x22, lsl #3]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	w8, [x19, #8]
	cmp	w8, #0
	ccmp	w8, w20, #4, ne
	cset	w0, eq
	bl	_assert
	str	w20, [x19, #8]
	ldr	x8, [x19]
Lloh5:
	adrp	x20, _RX@GOTPAGE
Lloh6:
	ldr	x20, [x20, _RX@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.6:
Lloh7:
	adrp	x9, _stderr@GOTPAGE
Lloh8:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x9]
	ldr	w2, [x8, #4]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprint
	bl	_debug
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IR,8,3                         ; @IR
	.comm	_RX,8,3                         ; @RX
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(using %s)\n"

	.no_dead_strip	_reduce
.subsections_via_symbols
