	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_file_open                ## -- Begin function input_file_open
	.p2align	4, 0x90
_input_file_open:                       ## @input_file_open
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_preprocess@GOTPCREL(%rip), %r15
	movl	%esi, (%r15)
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	cmpb	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_FOPEN_RT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fopen
	movq	_f_in@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_3
LBB0_2:
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_f_in@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rax, %rbx
	movq	(%r14), %rax
LBB0_3:
	movq	_file_name@GOTPCREL(%rip), %r13
	movq	%rbx, (%r13)
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %rdi
	callq	_getc
	movl	%eax, %r14d
	movq	_f_in@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	%rax, %rbx
	movq	(%r13), %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_xstrerror
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_as_bad
	movq	(%r12), %rdi
	callq	_fclose
	movq	$0, (%r12)
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.9:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	%rax, %rbx
	movq	(%r13), %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_xstrerror
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_32
## %bb.5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_as_bad                         ## TAILCALL
LBB0_10:
	cmpl	$35, %r14d
	jne	LBB0_30
## %bb.11:
	movq	%rbx, %rdi
	callq	_getc
	cmpl	$10, %eax
	je	LBB0_25
## %bb.12:
	cmpl	$65, %eax
	je	LBB0_20
## %bb.13:
	cmpl	$78, %eax
	jne	LBB0_28
## %bb.14:
	movq	(%r12), %rdx
	leaq	-128(%rbp), %rdi
	movl	$80, %esi
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	leaq	L_.str.3(%rip), %rsi
	leaq	-128(%rbp), %rdi
	movl	$5, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_18
## %bb.16:
	movsbl	-123(%rbp), %edi
	callq	_ISSPACE
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	$0, (%r15)
	jmp	LBB0_18
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	jmp	LBB0_27
LBB0_20:
	movq	(%r12), %rdx
	leaq	-128(%rbp), %rdi
	movl	$80, %esi
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_18
## %bb.21:
	leaq	L_.str.4(%rip), %rsi
	leaq	-128(%rbp), %rdi
	movl	$2, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_18
## %bb.22:
	movsbl	-126(%rbp), %edi
	callq	_ISSPACE
	testq	%rax, %rax
	je	LBB0_18
## %bb.23:
	movl	$1, (%r15)
LBB0_18:
	leaq	-128(%rbp), %rdi
	movl	$10, %esi
	callq	_strchr
	movq	(%r12), %rsi
	testl	%eax, %eax
	je	LBB0_19
## %bb.24:
	movl	$10, %edi
	callq	_ungetc
	jmp	LBB0_8
LBB0_25:
	movq	(%r12), %rsi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.26:
	movl	$10, %edi
	jmp	LBB0_27
LBB0_28:
	movq	(%r12), %rsi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.29:
	movl	$35, %edi
LBB0_27:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ungetc                         ## TAILCALL
LBB0_19:
	movl	$35, %edi
	callq	_ungetc
	jmp	LBB0_8
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_preprocess,4,2                 ## @preprocess
	.comm	_FOPEN_RT,4,2                   ## @FOPEN_RT
	.comm	_f_in,8,3                       ## @f_in
	.comm	_file_name,8,3                  ## @file_name
	.comm	_stdin,8,3                      ## @stdin
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"{standard input}"

L_.str.1:                               ## @.str.1
	.asciz	"can't open %s for reading: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"can't read from %s: %s"

L_.str.3:                               ## @.str.3
	.asciz	"O_APP"

L_.str.4:                               ## @.str.4
	.asciz	"PP"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_file_open                ; -- Begin function input_file_open
	.p2align	2
_input_file_open:                       ; @input_file_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x22, _preprocess@GOTPAGE
Lloh4:
	ldr	x22, [x22, _preprocess@GOTPAGEOFF]
	str	w1, [x22]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldrb	w8, [x19]
Lloh5:
	adrp	x21, _f_in@GOTPAGE
Lloh6:
	ldr	x21, [x21, _f_in@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _FOPEN_RT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FOPEN_RT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fopen
	str	x0, [x21]
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _stdin@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x21]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x19, x0
	ldr	x0, [x21]
LBB0_3:
Lloh15:
	adrp	x23, _file_name@GOTPAGE
Lloh16:
	ldr	x23, [x23, _file_name@GOTPAGEOFF]
	str	x19, [x23]
	cbz	x0, LBB0_8
; %bb.4:
	bl	_getc
	mov	x20, x0
	ldr	x19, [x21]
	mov	x0, x19
	bl	_ferror
	cbz	x0, LBB0_10
; %bb.5:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x19, x0
	ldr	x20, [x23]
Lloh19:
	adrp	x8, _errno@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_xstrerror
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_as_bad
	ldr	x0, [x21]
	bl	_fclose
	str	xzr, [x21]
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.7:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_8:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x19, x0
	ldr	x20, [x23]
Lloh27:
	adrp	x8, _errno@GOTPAGE
Lloh28:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_xstrerror
	ldur	x8, [x29, #-56]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.9:
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_as_bad
LBB0_10:
	cmp	w20, #35
	b.ne	LBB0_18
; %bb.11:
	mov	x0, x19
	bl	_getc
	cmp	w0, #10
	b.eq	LBB0_26
; %bb.12:
	cmp	w0, #65
	b.eq	LBB0_20
; %bb.13:
	cmp	w0, #78
	b.ne	LBB0_28
; %bb.14:
	ldr	x2, [x21]
	add	x0, sp, #8
	mov	w1, #80
	bl	_fgets
	cbz	x0, LBB0_24
; %bb.15:
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	mov	w2, #5
	bl	_strncmp
	cbnz	w0, LBB0_24
; %bb.16:
	ldrsb	w0, [sp, #13]
	bl	_ISSPACE
	cbz	x0, LBB0_24
; %bb.17:
	str	wzr, [x22]
	b	LBB0_24
LBB0_18:
	ldur	x8, [x29, #-56]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.19:
	mov	x0, x20
	mov	x1, x19
	b	LBB0_30
LBB0_20:
	ldr	x2, [x21]
	add	x0, sp, #8
	mov	w1, #80
	bl	_fgets
	cbz	x0, LBB0_24
; %bb.21:
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #8
	mov	w2, #2
	bl	_strncmp
	cbnz	w0, LBB0_24
; %bb.22:
	ldrsb	w0, [sp, #10]
	bl	_ISSPACE
	cbz	x0, LBB0_24
; %bb.23:
	mov	w8, #1
	str	w8, [x22]
LBB0_24:
	add	x0, sp, #8
	mov	w1, #10
	bl	_strchr
	ldr	x1, [x21]
	cbz	w0, LBB0_31
; %bb.25:
	mov	w0, #10
	bl	_ungetc
	b	LBB0_6
LBB0_26:
	ldr	x1, [x21]
	ldur	x8, [x29, #-56]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.27:
	mov	w0, #10
	b	LBB0_30
LBB0_28:
	ldr	x1, [x21]
	ldur	x8, [x29, #-56]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.29:
	mov	w0, #35
LBB0_30:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_ungetc
LBB0_31:
	mov	w0, #35
	bl	_ungetc
	b	LBB0_6
LBB0_32:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_preprocess,4,2                 ; @preprocess
	.comm	_FOPEN_RT,4,2                   ; @FOPEN_RT
	.comm	_f_in,8,3                       ; @f_in
	.comm	_file_name,8,3                  ; @file_name
	.comm	_stdin,8,3                      ; @stdin
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"{standard input}"

l_.str.1:                               ; @.str.1
	.asciz	"can't open %s for reading: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"can't read from %s: %s"

l_.str.3:                               ; @.str.3
	.asciz	"O_APP"

l_.str.4:                               ; @.str.4
	.asciz	"PP"

.subsections_via_symbols
