	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function File_Open
_File_Open:                             ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rax
	movq	%rdi, %rbx
	testl	%edx, %edx
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str(%rip), %rsi
	cmoveq	%rcx, %rsi
	movq	%rax, %rdi
	callq	_fopen
	movq	%rax, %rcx
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wb+"

L_.str.1:                               ## @.str.1
	.asciz	"rb"

	.comm	_errno,4,2                      ## @errno
	.comm	_CREATE_ALWAYS,4,2              ## @CREATE_ALWAYS
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ## @FILE_ATTRIBUTE_NORMAL
	.comm	_FILE_SHARE_READ,4,2            ## @FILE_SHARE_READ
	.comm	_GENERIC_READ,4,2               ## @GENERIC_READ
	.comm	_GENERIC_WRITE,4,2              ## @GENERIC_WRITE
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_OPEN_EXISTING,4,2              ## @OPEN_EXISTING
	.no_dead_strip	_File_Open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function File_Open
_File_Open:                             ; @File_Open
	.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	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, l_.str@PAGE
Lloh1:
	add	x9, x9, l_.str@PAGEOFF
Lloh2:
	adrp	x10, l_.str.1@PAGE
Lloh3:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w2, #0
	csel	x1, x10, x9, eq
	mov	x0, x8
	bl	_fopen
	str	x0, [x19, #8]
Lloh4:
	adrp	x8, _errno@GOTPAGE
Lloh5:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wb+"

l_.str.1:                               ; @.str.1
	.asciz	"rb"

	.comm	_errno,4,2                      ; @errno
	.comm	_CREATE_ALWAYS,4,2              ; @CREATE_ALWAYS
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ; @FILE_ATTRIBUTE_NORMAL
	.comm	_FILE_SHARE_READ,4,2            ; @FILE_SHARE_READ
	.comm	_GENERIC_READ,4,2               ; @GENERIC_READ
	.comm	_GENERIC_WRITE,4,2              ; @GENERIC_WRITE
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_OPEN_EXISTING,4,2              ; @OPEN_EXISTING
	.no_dead_strip	_File_Open
.subsections_via_symbols
