	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_input
_open_input:                            ## @open_input
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movq	_S_IFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	-48(%rbp), %ebx
	movq	_S_IFDIR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_6
## %bb.4:
	movq	_S_IFREG@GOTPCREL(%rip), %r13
	cmpl	(%r13), %ebx
	je	LBB0_8
## %bb.5:
	movq	_S_IFCHR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_8
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	__nc_progname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_7
LBB0_15:
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_STDIN_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_copy_input                     ## TAILCALL
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	__nc_progname@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movq	%r15, %rdx
	movq	%r12, %rcx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_fprintf
LBB0_7:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ExitProgram
                                        ## implicit-def: $r15
LBB0_14:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_fopen
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	__nc_progname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ExitProgram
LBB0_10:
	cmpl	(%r13), %ebx
	je	LBB0_14
## %bb.11:
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_copy_input
	movq	%rax, %r15
	jmp	LBB0_14
LBB0_13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	__nc_progname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ExitProgram
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

	.comm	_stdin,8,3                      ## @stdin
	.comm	_STDIN_NAME,8,3                 ## @STDIN_NAME
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"%s: %s %s\n"

	.comm	__nc_progname,8,3               ## @_nc_progname
	.comm	_errno,4,2                      ## @errno
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_S_IFMT,4,2                     ## @S_IFMT
	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.comm	_S_IFCHR,4,2                    ## @S_IFCHR
L_.str.2:                               ## @.str.2
	.asciz	"%s: %s is not a file\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"%s: Can't open %s\n"

	.no_dead_strip	_open_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_input
_open_input:                            ; @open_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	bl	_stat
	tbnz	x0, #63, LBB0_11
; %bb.2:
	ldr	w8, [sp, #8]
Lloh2:
	adrp	x9, _S_IFMT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _S_IFMT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w22, w9, w8
Lloh5:
	adrp	x8, _S_IFDIR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S_IFDIR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_10
; %bb.3:
Lloh8:
	adrp	x23, _S_IFREG@GOTPAGE
Lloh9:
	ldr	x23, [x23, _S_IFREG@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh10:
	adrp	x9, _S_IFCHR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _S_IFCHR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w22, w8
	ccmp	w22, w9, #4, ne
	b.ne	LBB0_10
; %bb.4:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_fopen
	mov	x21, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, __nc_progname@GOTPAGE
Lloh19:
	ldr	x8, [x8, __nc_progname@GOTPAGEOFF]
Lloh20:
	ldr	x2, [x8]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x3, x19
	bl	_fprintf
Lloh23:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_ExitProgram
LBB0_6:
	ldr	w8, [x23]
	cmp	w22, w8
	b.eq	LBB0_13
; %bb.7:
	cbz	x20, LBB0_14
; %bb.8:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_copy_input
	mov	x21, x0
	b	LBB0_13
LBB0_9:
Lloh26:
	adrp	x8, _stdin@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh28:
	ldr	x0, [x8]
Lloh29:
	adrp	x8, _STDIN_NAME@GOTPAGE
Lloh30:
	ldr	x8, [x8, _STDIN_NAME@GOTPAGEOFF]
Lloh31:
	ldr	x1, [x8]
	mov	x2, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_copy_input
LBB0_10:
Lloh32:
	adrp	x8, _stderr@GOTPAGE
Lloh33:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x8, __nc_progname@GOTPAGE
Lloh36:
	ldr	x8, [x8, __nc_progname@GOTPAGEOFF]
Lloh37:
	ldr	x2, [x8]
Lloh38:
	adrp	x1, l_.str.2@PAGE
Lloh39:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh40:
	adrp	x8, _stderr@GOTPAGE
Lloh41:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh42:
	ldr	w20, [x8]
Lloh43:
	adrp	x8, __nc_progname@GOTPAGE
Lloh44:
	ldr	x8, [x8, __nc_progname@GOTPAGEOFF]
Lloh45:
	ldr	x21, [x8]
Lloh46:
	adrp	x8, _errno@GOTPAGE
Lloh47:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh49:
	adrp	x1, l_.str.1@PAGE
Lloh50:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
LBB0_12:
	mov	x3, x19
	bl	_fprintf
Lloh51:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
	bl	_ExitProgram
                                        ; implicit-def: $x21
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
Lloh54:
	adrp	x8, _stderr@GOTPAGE
Lloh55:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
Lloh57:
	adrp	x8, __nc_progname@GOTPAGE
Lloh58:
	ldr	x8, [x8, __nc_progname@GOTPAGEOFF]
Lloh59:
	ldr	x2, [x8]
Lloh60:
	adrp	x1, l_.str.2@PAGE
Lloh61:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x3, x19
	bl	_fprintf
Lloh62:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh64:
	ldr	w0, [x8]
	bl	_ExitProgram
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

	.comm	_stdin,8,3                      ; @stdin
	.comm	_STDIN_NAME,8,3                 ; @STDIN_NAME
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"%s: %s %s\n"

	.comm	__nc_progname,8,3               ; @_nc_progname
	.comm	_errno,4,2                      ; @errno
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_S_IFMT,4,2                     ; @S_IFMT
	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.comm	_S_IFCHR,4,2                    ; @S_IFCHR
l_.str.2:                               ; @.str.2
	.asciz	"%s: %s is not a file\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"%s: Can't open %s\n"

	.no_dead_strip	_open_input
.subsections_via_symbols
