	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpcf_fold_ast                  ## -- Begin function mpcf_fold_ast
	.p2align	4, 0x90
_mpcf_fold_ast:                         ## @mpcf_fold_ast
	.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
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movl	%edi, %r15d
	cmpl	$2, %edi
	je	LBB0_5
## %bb.3:
	cmpl	$1, %r15d
	jne	LBB0_9
## %bb.4:
	movq	(%r12), %r14
	jmp	LBB0_21
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_21
LBB0_5:
	movq	(%r12), %rax
	movq	8(%r12), %r14
	testq	%r14, %r14
	je	LBB0_6
## %bb.7:
	testq	%rax, %rax
	je	LBB0_21
## %bb.8:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_mpc_ast_new
	movq	%rax, %r14
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_mpc_ast_new
	movq	%rax, %r14
	testl	%r15d, %r15d
	jle	LBB0_19
LBB0_10:
	movl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	je	LBB0_17
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r13
	cmpq	%r15, %r13
	je	LBB0_19
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	(%r12,%r13,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, (%rsi)
	jle	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rsi), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_mpc_ast_add_child
	incq	%rbx
	movq	(%r12,%r13,8), %rsi
	movslq	(%rsi), %rax
	cmpq	%rax, %rbx
	jl	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rsi, %rdi
	callq	_mpc_ast_delete_no_children
	jmp	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	callq	_mpc_ast_add_child
	jmp	LBB0_18
LBB0_19:
	cmpl	$0, (%r14)
	je	LBB0_21
## %bb.20:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	4(%rax), %eax
	movl	%eax, 4(%r14)
	jmp	LBB0_21
LBB0_6:
	movq	%rax, %r14
LBB0_21:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	">"

L_.str.1:                               ## @.str.1
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpcf_fold_ast                  ; -- Begin function mpcf_fold_ast
	.p2align	2
_mpcf_fold_ast:                         ; @mpcf_fold_ast
	.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
	cbz	w0, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	cmp	w0, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w21, #1
	b.ne	LBB0_8
; %bb.3:
	ldr	x20, [x19]
	b	LBB0_21
LBB0_4:
	mov	x20, #0
	b	LBB0_21
LBB0_5:
	ldp	x20, x8, [x19]
	cbz	x8, LBB0_21
; %bb.6:
	cbz	x20, LBB0_20
; %bb.7:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_mpc_ast_new
	mov	x20, x0
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_mpc_ast_new
	mov	x20, x0
	cmp	w21, #1
	b.lt	LBB0_18
LBB0_9:
	mov	x22, #0
	mov	w21, w21
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	cbz	w8, LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #1
	cmp	x22, x21
	b.eq	LBB0_18
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x1, [x19, x22, lsl #3]
	cbz	x1, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x23, #0
LBB0_15:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x1, #8]
	ldr	x1, [x8, x23, lsl #3]
	mov	x0, x20
	bl	_mpc_ast_add_child
	add	x23, x23, #1
	ldr	x1, [x19, x22, lsl #3]
	ldrsw	x8, [x1]
	cmp	x23, x8
	b.lt	LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x1
	bl	_mpc_ast_delete_no_children
	b	LBB0_11
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	bl	_mpc_ast_add_child
	b	LBB0_11
LBB0_18:
	ldr	w8, [x20]
	cbz	w8, LBB0_21
; %bb.19:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w8, [x8, #4]
	str	w8, [x20, #4]
	b	LBB0_21
LBB0_20:
	mov	x20, x8
LBB0_21:
	mov	x0, x20
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	">"

l_.str.1:                               ; @.str.1
	.space	1

.subsections_via_symbols
