	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_list
_print_list:                            ## @print_list
	.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, %r14
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r12
	xorl	%ebx, %ebx
	movq	%rsi, %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rax
	addq	$8, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movl	%ebx, %edi
	callq	_alloca
	movq	%rax, %r15
	movq	%r12, -8(%rax,%rbx)
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	(%r15,%rbx), %rcx
	addq	$-16, %rcx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, (%rcx)
	movq	(%rax), %rax
	addq	$-8, %rcx
	testq	%rax, %rax
	jne	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	addq	$8, %r15
	movq	%r14, %rdi
	callq	_print_node
	movl	$32, %edi
	movq	%r14, %rsi
	callq	_putc
	addq	$-8, %rbx
	jne	LBB0_6
## %bb.7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str(%rip), %rdi
	movl	$5, %esi
	movl	$1, %edx
	movq	%r14, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fwrite                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(nil)"

	.no_dead_strip	_print_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_list
_print_list:                            ; @print_list
	.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
	cbz	x1, LBB0_8
; %bb.1:
	mov	x22, x1
	mov	x20, #0
	mov	x8, x1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8]
	add	x20, x20, #8
	cbnz	x8, LBB0_2
; %bb.3:
	mov	x0, x20
	bl	_alloca
	mov	x21, x0
	add	x9, x0, x20
	stur	x22, [x9, #-8]
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.4:
	sub	x9, x9, #16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	str	x8, [x9], #-8
	ldr	x8, [x8]
	cbnz	x8, LBB0_5
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21], #8
	mov	x0, x19
	bl	_print_node
	mov	w0, #32
	mov	x1, x19
	bl	_putc
	subs	x20, x20, #8
	b.ne	LBB0_6
; %bb.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
LBB0_8:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #5
	mov	w2, #1
	mov	x3, x19
	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	_fwrite
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(nil)"

	.no_dead_strip	_print_list
.subsections_via_symbols
