	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_input_stream
_open_input_stream:                     ## @open_input_stream
	.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, %r14
	movq	_istream_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ISTREAM_FILE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	xorl	%eax, %eax
	callq	_choose_temp_base
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	leaq	5(%rax), %rdi
	callq	_xmalloc
	movq	_cpp_temp_file@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_sprintf
	movq	%rbx, %rdi
	callq	_free
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_run_cmd
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	%rax, %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_fatal
LBB0_3:
	movq	(%r15), %rdi
	movq	_FOPEN_RT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fopen
	movq	_cpp_pipe@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	%rax, %rbx
	movq	(%r15), %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_fatal
LBB0_5:
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	(%r15), %rdx
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_11
LBB0_7:
	movq	_FOPEN_RT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_popen
	movq	_cpp_pipe@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movq	%rax, %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_fatal
LBB0_9:
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_11:
	movq	_close_input_stream@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_xatexit
	movq	_cpp_pipe@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_istream_type,8,3               ## @istream_type
	.comm	_ISTREAM_FILE,8,3               ## @ISTREAM_FILE
	.comm	_cpp_temp_file,8,3              ## @cpp_temp_file
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s.irc"

L_.str.1:                               ## @.str.1
	.asciz	"can't execute `%s': %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_FOPEN_RT,4,2                   ## @FOPEN_RT
	.comm	_cpp_pipe,8,3                   ## @cpp_pipe
L_.str.2:                               ## @.str.2
	.asciz	"can't open temporary file `%s': %s"

	.comm	_verbose,8,3                    ## @verbose
	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"Using temporary file `%s' to read preprocessor output\n"

L_.str.4:                               ## @.str.4
	.asciz	"can't popen `%s': %s"

L_.str.5:                               ## @.str.5
	.asciz	"Using popen to read preprocessor output\n"

	.comm	_close_input_stream,4,2         ## @close_input_stream
	.no_dead_strip	_open_input_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_input_stream
_open_input_stream:                     ; @open_input_stream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _istream_type@GOTPAGE
Lloh1:
	ldr	x8, [x8, _istream_type@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ISTREAM_FILE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ISTREAM_FILE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x21, _cpp_pipe@GOTPAGE
Lloh7:
	ldr	x21, [x21, _cpp_pipe@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	bl	_choose_temp_base
	mov	x20, x0
	bl	_strlen
	add	x0, x0, #5
	bl	_xmalloc
Lloh8:
	adrp	x22, _cpp_temp_file@GOTPAGE
Lloh9:
	ldr	x22, [x22, _cpp_temp_file@GOTPAGEOFF]
	str	x0, [x22]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_sprintf
	mov	x0, x20
	bl	_free
	ldr	x1, [x22]
	mov	x0, x19
	bl	_run_cmd
	cbz	x0, LBB0_3
; %bb.2:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x20, x0
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_fatal
LBB0_3:
	ldr	x0, [x22]
Lloh17:
	adrp	x8, _FOPEN_RT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FOPEN_RT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_fopen
	str	x0, [x21]
	cbnz	x0, LBB0_5
; %bb.4:
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x19, x0
	ldr	x20, [x22]
Lloh22:
	adrp	x8, _errno@GOTPAGE
Lloh23:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_fatal
LBB0_5:
Lloh25:
	adrp	x8, _verbose@GOTPAGE
Lloh26:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.6:
Lloh28:
	adrp	x8, _stderr@GOTPAGE
Lloh29:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh30:
	ldr	w19, [x8]
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x1, x0
	ldr	x8, [x22]
	str	x8, [sp]
	b	LBB0_11
LBB0_7:
Lloh33:
	adrp	x8, _FOPEN_RT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FOPEN_RT@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_popen
	str	x0, [x21]
	cbnz	x0, LBB0_9
; %bb.8:
Lloh36:
	adrp	x0, l_.str.4@PAGE
Lloh37:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x20, x0
Lloh38:
	adrp	x8, _errno@GOTPAGE
Lloh39:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_fatal
LBB0_9:
Lloh41:
	adrp	x8, _verbose@GOTPAGE
Lloh42:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.10:
Lloh44:
	adrp	x8, _stderr@GOTPAGE
Lloh45:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh46:
	ldr	w19, [x8]
Lloh47:
	adrp	x0, l_.str.5@PAGE
Lloh48:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x1, x0
LBB0_11:
	mov	x0, x19
	bl	_fprintf
LBB0_12:
Lloh49:
	adrp	x8, _close_input_stream@GOTPAGE
Lloh50:
	ldr	x8, [x8, _close_input_stream@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	bl	_xatexit
	ldr	x0, [x21]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_istream_type,8,3               ; @istream_type
	.comm	_ISTREAM_FILE,8,3               ; @ISTREAM_FILE
	.comm	_cpp_temp_file,8,3              ; @cpp_temp_file
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s.irc"

l_.str.1:                               ; @.str.1
	.asciz	"can't execute `%s': %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_FOPEN_RT,4,2                   ; @FOPEN_RT
	.comm	_cpp_pipe,8,3                   ; @cpp_pipe
l_.str.2:                               ; @.str.2
	.asciz	"can't open temporary file `%s': %s"

	.comm	_verbose,8,3                    ; @verbose
	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"Using temporary file `%s' to read preprocessor output\n"

l_.str.4:                               ; @.str.4
	.asciz	"can't popen `%s': %s"

l_.str.5:                               ; @.str.5
	.asciz	"Using popen to read preprocessor output\n"

	.comm	_close_input_stream,4,2         ; @close_input_stream
	.no_dead_strip	_open_input_stream
.subsections_via_symbols
