	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OpenInputFile
_OpenInputFile:                         ## @OpenInputFile
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	$0, (%rsi)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_BROTLI_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKE_BINARY
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_fdopen
	movq	%rax, (%r14)
	movq	_BROTLI_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_PrintablePath
	movq	%rax, %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_fprintf
	movq	_BROTLI_FALSE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

	.comm	_BROTLI_TRUE,4,2                ## @BROTLI_TRUE
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"failed to open input file [%s]: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_BROTLI_FALSE,4,2               ## @BROTLI_FALSE
	.no_dead_strip	_OpenInputFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OpenInputFile
_OpenInputFile:                         ; @OpenInputFile
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	str	xzr, [x1]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	str	x0, [x19]
	cbnz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	mov	x0, x20
	bl	_PrintablePath
	mov	x20, x0
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_fprintf
Lloh10:
	adrp	x8, _BROTLI_FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BROTLI_FALSE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh12:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_MAKE_BINARY
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fdopen
	str	x0, [x19]
LBB0_4:
Lloh17:
	adrp	x8, _BROTLI_TRUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BROTLI_TRUE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

	.comm	_BROTLI_TRUE,4,2                ; @BROTLI_TRUE
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"failed to open input file [%s]: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_BROTLI_FALSE,4,2               ; @BROTLI_FALSE
	.no_dead_strip	_OpenInputFile
.subsections_via_symbols
