	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_e_ending
_r_e_ending:                            ## @r_e_ending
	.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	(%rdi), %rax
	movl	$0, (%rax)
	movslq	12(%rdi), %rax
	movl	%eax, 8(%rdi)
	xorl	%r14d, %r14d
	cmpl	16(%rdi), %eax
	jle	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	24(%rdi), %rcx
	cmpb	$101, -1(%rcx,%rax)
	jne	LBB0_6
## %bb.2:
	decq	%rax
	movl	%eax, 12(%rbx)
	movl	%eax, 32(%rbx)
	movq	%rbx, %rdi
	callq	_r_R1
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	movl	12(%rbx), %r15d
	movl	36(%rbx), %r12d
	movq	_g_v@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	$97, %edx
	movl	$232, %ecx
	xorl	%r8d, %r8d
	callq	_out_grouping_b_U
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	subl	%r12d, %r15d
	addl	36(%rbx), %r15d
	movl	%r15d, 12(%rbx)
	movq	%rbx, %rdi
	callq	_slice_del
	testl	%eax, %eax
	js	LBB0_5
## %bb.8:
	movq	(%rbx), %rax
	movl	$1, (%rax)
	movq	%rbx, %rdi
	callq	_r_undouble
	testl	%eax, %eax
	movl	$1, %ecx
	cmovgl	%ecx, %eax
	jmp	LBB0_7
LBB0_5:
	movl	%eax, %r14d
LBB0_6:
	movl	%r14d, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_v,4,2                        ## @g_v
	.no_dead_strip	_r_e_ending
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_e_ending
_r_e_ending:                            ; @r_e_ending
	.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	x19, x0
	mov	w0, #0
	ldr	x8, [x19]
	str	wzr, [x8]
	ldp	w8, w9, [x19, #12]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	str	w8, [x19, #8]
	cmp	w8, w9
	b.le	LBB0_7
; %bb.1:
	ldr	x9, [x19, #24]
	sub	x8, x8, #1
	ldrb	w9, [x9, x8]
	cmp	w9, #101
	b.ne	LBB0_6
; %bb.2:
	str	w8, [x19, #12]
	str	w8, [x19, #32]
	mov	x0, x19
	bl	_r_R1
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.3:
	ldr	w20, [x19, #36]
	ldr	w21, [x19, #12]
Lloh0:
	adrp	x8, _g_v@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_v@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #97
	mov	w3, #232
	mov	w4, #0
	bl	_out_grouping_b_U
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_7
; %bb.4:
	ldr	w8, [x19, #36]
	sub	w9, w21, w20
	add	w8, w9, w8
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_slice_del
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8]
	mov	x0, x19
	bl	_r_undouble
	cmp	w0, #1
	csinc	w0, w0, wzr, lt
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_g_v,4,2                        ; @g_v
	.no_dead_strip	_r_e_ending
.subsections_via_symbols
