	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_listing_print                  ## -- Begin function listing_print
	.p2align	4, 0x90
_listing_print:                         ## @listing_print
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rax
	movq	_title@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_subtitle@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	_FOPEN_WT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_fopen
	movq	_list_file@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movb	$1, %bl
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_xstrerror
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_as_warn
LBB0_3:
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_list_file@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%ebx, %ebx
LBB0_4:
	movq	_listing@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	_LISTING_NOFORM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_paper_height@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
LBB0_6:
	movq	_LISTING_LISTING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_listing_listing
	movl	(%r14), %eax
LBB0_8:
	movq	_LISTING_SYMBOLS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_list_symbol_table
LBB0_10:
	testb	%bl, %bl
	je	LBB0_13
## %bb.11:
	movq	_list_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_fclose
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_xstrerror
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_as_warn
LBB0_13:
	movq	_last_open_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$8, %rsp
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.15:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fclose                         ## TAILCALL
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_title,8,3                      ## @title
	.comm	_subtitle,8,3                   ## @subtitle
	.comm	_stdout,8,3                     ## @stdout
	.comm	_list_file,8,3                  ## @list_file
	.comm	_FOPEN_WT,4,2                   ## @FOPEN_WT
L_.str.1:                               ## @.str.1
	.asciz	"can't open %s: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_listing,4,2                    ## @listing
	.comm	_LISTING_NOFORM,4,2             ## @LISTING_NOFORM
	.comm	_paper_height,8,3               ## @paper_height
	.comm	_LISTING_LISTING,4,2            ## @LISTING_LISTING
	.comm	_LISTING_SYMBOLS,4,2            ## @LISTING_SYMBOLS
	.comm	_EOF,8,3                        ## @EOF
L_.str.2:                               ## @.str.2
	.asciz	"can't close %s: %s"

	.comm	_last_open_file,8,3             ## @last_open_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_listing_print                  ; -- Begin function listing_print
	.p2align	2
_listing_print:                         ; @listing_print
	.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
Lloh0:
	adrp	x8, _title@GOTPAGE
Lloh1:
	ldr	x8, [x8, _title@GOTPAGEOFF]
Lloh2:
	adrp	x9, l_.str@PAGE
Lloh3:
	add	x9, x9, l_.str@PAGEOFF
Lloh4:
	str	x9, [x8]
Lloh5:
	adrp	x8, _subtitle@GOTPAGE
Lloh6:
	ldr	x8, [x8, _subtitle@GOTPAGEOFF]
Lloh7:
	str	x9, [x8]
Lloh8:
	adrp	x21, _list_file@GOTPAGE
Lloh9:
	ldr	x21, [x21, _list_file@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
Lloh10:
	adrp	x8, _FOPEN_WT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FOPEN_WT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fopen
	str	x0, [x21]
	cbz	x0, LBB0_3
; %bb.2:
	mov	w20, #1
	b	LBB0_5
LBB0_3:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x20, x0
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_xstrerror
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_as_warn
LBB0_4:
	mov	w20, #0
Lloh18:
	adrp	x8, _stdout@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x21]
LBB0_5:
Lloh21:
	adrp	x22, _listing@GOTPAGE
Lloh22:
	ldr	x22, [x22, _listing@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh23:
	adrp	x9, _LISTING_NOFORM@GOTPAGE
Lloh24:
	ldr	x9, [x9, _LISTING_NOFORM@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh26:
	adrp	x9, _paper_height@GOTPAGE
Lloh27:
	ldr	x9, [x9, _paper_height@GOTPAGEOFF]
Lloh28:
	str	xzr, [x9]
LBB0_7:
Lloh29:
	adrp	x9, _LISTING_LISTING@GOTPAGE
Lloh30:
	ldr	x9, [x9, _LISTING_LISTING@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_listing_listing
	ldr	w8, [x22]
LBB0_9:
Lloh32:
	adrp	x9, _LISTING_SYMBOLS@GOTPAGE
Lloh33:
	ldr	x9, [x9, _LISTING_SYMBOLS@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	bl	_list_symbol_table
LBB0_11:
	cbz	w20, LBB0_14
; %bb.12:
	ldr	x0, [x21]
	bl	_fclose
Lloh35:
	adrp	x8, _EOF@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.13:
Lloh38:
	adrp	x0, l_.str.2@PAGE
Lloh39:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x20, x0
Lloh40:
	adrp	x8, _errno@GOTPAGE
Lloh41:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	bl	_xstrerror
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_as_warn
LBB0_14:
Lloh43:
	adrp	x8, _last_open_file@GOTPAGE
Lloh44:
	ldr	x8, [x8, _last_open_file@GOTPAGEOFF]
Lloh45:
	ldr	x0, [x8]
	cbz	x0, LBB0_16
; %bb.15:
	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	_fclose
LBB0_16:
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_title,8,3                      ; @title
	.comm	_subtitle,8,3                   ; @subtitle
	.comm	_stdout,8,3                     ; @stdout
	.comm	_list_file,8,3                  ; @list_file
	.comm	_FOPEN_WT,4,2                   ; @FOPEN_WT
l_.str.1:                               ; @.str.1
	.asciz	"can't open %s: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_listing,4,2                    ; @listing
	.comm	_LISTING_NOFORM,4,2             ; @LISTING_NOFORM
	.comm	_paper_height,8,3               ; @paper_height
	.comm	_LISTING_LISTING,4,2            ; @LISTING_LISTING
	.comm	_LISTING_SYMBOLS,4,2            ; @LISTING_SYMBOLS
	.comm	_EOF,8,3                        ; @EOF
l_.str.2:                               ; @.str.2
	.asciz	"can't close %s: %s"

	.comm	_last_open_file,8,3             ; @last_open_file
.subsections_via_symbols
