	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_printdag                       ## -- Begin function printdag
	.p2align	4, 0x90
_printdag:                              ## @printdag
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	cmpl	$1, %esi
	jne	LBB0_1
## %bb.2:
	movq	_stdout@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %r15
	xorl	%edi, %edi
	callq	_printed
	testq	%r14, %r14
	je	LBB0_4
## %bb.7:
	movl	%r14d, %edi
	callq	_nodeid
	movl	%eax, %edi
	callq	_printed
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.9:
	movl	%r14d, %edi
	callq	_nodeid
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprint                         ## TAILCALL
LBB0_4:
	movq	_forest@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rbx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_printdag1
	cmpq	(%r14), %rbx
	jne	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printdag1                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,8,3                     ## @stdout
	.comm	_stderr,8,3                     ## @stderr
	.comm	_forest,8,3                     ## @forest
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"node'%d printed above\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_printdag                       ; -- Begin function printdag
	.p2align	2
_printdag:                              ; @printdag
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _stdout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh2:
	adrp	x9, _stderr@GOTPAGE
Lloh3:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
	cmp	w1, #1
	csel	x8, x8, x9, eq
	ldr	x21, [x8]
	mov	w0, #0
	bl	_printed
	cbz	x20, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_nodeid
	bl	_printed
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_nodeid
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	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
	b	_fprint
LBB0_3:
Lloh6:
	adrp	x21, _forest@GOTPAGE
Lloh7:
	ldr	x21, [x21, _forest@GOTPAGEOFF]
	ldr	x20, [x21]
	cbz	x20, LBB0_5
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x20]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_printdag1
	ldr	x8, [x21]
	cmp	x20, x8
	b.ne	LBB0_4
LBB0_5:
	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
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	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
	b	_printdag1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,8,3                     ; @stdout
	.comm	_stderr,8,3                     ; @stderr
	.comm	_forest,8,3                     ; @forest
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"node'%d printed above\n"

.subsections_via_symbols
