	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_push_undo_stack                ## -- Begin function push_undo_stack
	.p2align	4, 0x90
_push_undo_stack:                       ## @push_undo_stack
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_ustack@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_u_p@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	_usize@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edx
	cmpl	%edx, %ecx
	jl	LBB0_3
## %bb.1:
	movq	_USIZE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %edx
	movl	%edx, (%rsi)
	shll	$3, %edx
	leal	(%rdx,%rdx,2), %esi
	movq	%rax, %rdi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	(%r13), %ecx
LBB0_3:
	movq	%rax, (%r12)
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	%ebx, (%rax,%rcx,8)
	movq	%r15, %rdi
	callq	_get_addressed_line_node
	movq	(%r12), %rcx
	movslq	(%r13), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movq	%rax, 16(%rcx,%rdx,8)
	movq	%r14, %rdi
	callq	_get_addressed_line_node
	movq	(%r12), %rcx
	movslq	(%r13), %rdx
	leal	1(%rdx), %esi
	shlq	$3, %rdx
	leaq	(%rdx,%rdx,2), %rbx
	movq	%rax, 8(%rcx,%rbx)
	movl	%esi, (%r13)
	addq	(%r12), %rbx
	jmp	LBB0_5
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
	leaq	L_.str.1(%rip), %rax
	movq	_errmsg@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_clear_undo_stack
	movq	(%r12), %rdi
	callq	_free
	movq	$0, (%r12)
	movq	_usize@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ustack,8,3                     ## @ustack
	.comm	_u_p,4,2                        ## @u_p
	.comm	_usize,4,2                      ## @usize
	.comm	_USIZE,4,2                      ## @USIZE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

	.comm	_errmsg,8,3                     ## @errmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_push_undo_stack                ; -- Begin function push_undo_stack
	.p2align	2
_push_undo_stack:                       ; @push_undo_stack
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _ustack@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ustack@GOTPAGEOFF]
Lloh2:
	adrp	x23, _u_p@GOTPAGE
Lloh3:
	ldr	x23, [x23, _u_p@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	w8, [x23]
Lloh4:
	adrp	x24, _usize@GOTPAGE
Lloh5:
	ldr	x24, [x24, _usize@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w8, w9
	b.lt	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _USIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _USIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w8, w8, w9
	str	w8, [x24]
	add	w8, w8, w8, lsl #1
	lsl	w1, w8, #3
	bl	_realloc
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x23]
LBB0_3:
	str	x0, [x22]
	mov	w24, #24
	smull	x8, w8, w24
	str	w21, [x0, x8]
	mov	x0, x20
	bl	_get_addressed_line_node
	ldr	x8, [x22]
	ldrsw	x9, [x23]
	madd	x8, x9, x24, x8
	str	x0, [x8, #16]
	mov	x0, x19
	bl	_get_addressed_line_node
	ldr	x8, [x22]
	ldrsw	x9, [x23]
	add	x10, x9, x9, lsl #1
	lsl	x10, x10, #3
	add	x8, x8, x10
	str	x0, [x8, #8]
	ldr	x8, [x22]
	add	w9, w9, #1
	str	w9, [x23]
	add	x0, x8, x10
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
Lloh17:
	adrp	x8, _errmsg@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errmsg@GOTPAGEOFF]
Lloh19:
	adrp	x9, l_.str.1@PAGE
Lloh20:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh21:
	str	x9, [x8]
	bl	_clear_undo_stack
	ldr	x0, [x22]
	bl	_free
	mov	x0, #0
	str	xzr, [x22]
	str	wzr, [x24]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh21
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ustack,8,3                     ; @ustack
	.comm	_u_p,4,2                        ; @u_p
	.comm	_usize,4,2                      ; @usize
	.comm	_USIZE,4,2                      ; @USIZE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

	.comm	_errmsg,8,3                     ; @errmsg
.subsections_via_symbols
