	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_regret                         ## -- Begin function regret
	.p2align	4, 0x90
_regret:                                ## @regret
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_regretp@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	incq	%rax
	movq	%rax, (%r14)
	movq	_REGDEP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movq	(%r14), %rax
LBB0_2:
	movq	_regretstack@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, (%rcx,%rax,4)
	movq	_lexstring@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_STRINGLEN@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	movb	$0, -1(%rdx,%rcx)
	movq	(%rax), %rdi
	callq	_savestr
	movq	_string_stack@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r14), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	_lexnumber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_numberstack@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx,%rdx,4)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_regretp,8,3                    ## @regretp
	.comm	_REGDEP,8,3                     ## @REGDEP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many regrets"

	.comm	_regretstack,8,3                ## @regretstack
	.comm	_lexstring,8,3                  ## @lexstring
	.comm	_STRINGLEN,4,2                  ## @STRINGLEN
	.comm	_string_stack,8,3               ## @string_stack
	.comm	_lexnumber,4,2                  ## @lexnumber
	.comm	_numberstack,8,3                ## @numberstack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_regret                         ; -- Begin function regret
	.p2align	2
_regret:                                ; @regret
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _regretp@GOTPAGE
Lloh1:
	ldr	x20, [x20, _regretp@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
Lloh2:
	adrp	x9, _REGDEP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _REGDEP@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x8, [x20]
LBB0_2:
Lloh7:
	adrp	x9, _regretstack@GOTPAGE
Lloh8:
	ldr	x9, [x9, _regretstack@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	str	w19, [x9, x8, lsl #2]
Lloh10:
	adrp	x8, _lexstring@GOTPAGE
Lloh11:
	ldr	x8, [x8, _lexstring@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh12:
	adrp	x10, _STRINGLEN@GOTPAGE
Lloh13:
	ldr	x10, [x10, _STRINGLEN@GOTPAGEOFF]
Lloh14:
	ldrsw	x10, [x10]
	add	x9, x10, x9
	sturb	wzr, [x9, #-1]
	ldr	x0, [x8]
	bl	_savestr
Lloh15:
	adrp	x8, _string_stack@GOTPAGE
Lloh16:
	ldr	x8, [x8, _string_stack@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x9, [x20]
	lsl	x9, x9, #2
	str	w0, [x8, x9]
Lloh18:
	adrp	x8, _lexnumber@GOTPAGE
Lloh19:
	ldr	x8, [x8, _lexnumber@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x10, _numberstack@GOTPAGE
Lloh22:
	ldr	x10, [x10, _numberstack@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	str	w8, [x10, x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_regretp,8,3                    ; @regretp
	.comm	_REGDEP,8,3                     ; @REGDEP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many regrets"

	.comm	_regretstack,8,3                ; @regretstack
	.comm	_lexstring,8,3                  ; @lexstring
	.comm	_STRINGLEN,4,2                  ; @STRINGLEN
	.comm	_string_stack,8,3               ; @string_stack
	.comm	_lexnumber,4,2                  ; @lexnumber
	.comm	_numberstack,8,3                ; @numberstack
.subsections_via_symbols
