	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_open
_try_open:                              ## @try_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	%r12
	pushq	%rbx
	subq	$1008, %rsp                     ## imm = 0x3F0
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, %rbx
	movq	_trace_file_tries@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
LBB0_3:
	callq	_info_msg
	jmp	LBB0_13
LBB0_4:
	testq	%rbx, %rbx
	jne	LBB0_13
## %bb.5:
	cmpb	$0, (%r15)
	jne	LBB0_6
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_info_msg
	cmpb	$0, (%r15)
	je	LBB0_12
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	leaq	-1040(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_sprintf
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	movq	%rax, %rbx
	cmpq	$0, (%r12)
	je	LBB0_13
## %bb.7:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	leaq	-1040(%rbp), %rsi
	movl	%eax, %edi
	jmp	LBB0_3
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	leaq	-1040(%rbp), %rsi
	movl	%eax, %edi
	callq	_info_msg
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movq	%rbx, %rax
	addq	$1008, %rsp                     ## imm = 0x3F0
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_trace_file_tries,8,3           ## @trace_file_tries
L_.str.1:                               ## @.str.1
	.asciz	"cannot find script file %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"opened script file %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s%s"

	.no_dead_strip	_try_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function try_open
_try_open:                              ; @try_open
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #1008
	mov	x21, x1
	mov	x20, 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	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	mov	x19, x0
Lloh5:
	adrp	x22, _trace_file_tries@GOTPAGE
Lloh6:
	ldr	x22, [x22, _trace_file_tries@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.1:
	cbz	x19, LBB0_8
; %bb.2:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x1, x20
	b	LBB0_12
LBB0_3:
	cbnz	x19, LBB0_13
; %bb.4:
	ldrb	w8, [x21]
	cbz	w8, LBB0_9
LBB0_5:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, sp
	mov	x2, x20
	mov	x3, x21
	bl	_sprintf
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	bl	_fopen
	mov	x19, x0
	ldr	x8, [x22]
	cbz	x8, LBB0_13
; %bb.6:
	cbz	x19, LBB0_10
; %bb.7:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x20
	bl	_info_msg
	ldrb	w8, [x21]
	cbnz	w8, LBB0_5
LBB0_9:
	mov	x19, #0
	b	LBB0_13
LBB0_10:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	bl	__
	mov	x1, sp
LBB0_12:
	bl	_info_msg
LBB0_13:
	ldur	x8, [x29, #-56]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	add	sp, sp, #1008
	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
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_trace_file_tries,8,3           ; @trace_file_tries
l_.str.1:                               ; @.str.1
	.asciz	"cannot find script file %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"opened script file %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s%s"

	.no_dead_strip	_try_open
.subsections_via_symbols
