	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_retrieve_current_scheme        ## -- Begin function retrieve_current_scheme
	.p2align	4, 0x90
_retrieve_current_scheme:               ## @retrieve_current_scheme
	.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	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	_scheme_filename@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	callq	_send_rpc_command
	sarq	$63, %rax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_log_printf
	movl	$-1, %eax
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

	.comm	_scheme_filename,8,3            ## @scheme_filename
L_.str.1:                               ## @.str.1
	.asciz	"Couln't open \"%s\" for writing. %m\n"

L_.str.2:                               ## @.str.2
	.asciz	"(help.getScheme 1)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_retrieve_current_scheme        ; -- Begin function retrieve_current_scheme
	.p2align	2
_retrieve_current_scheme:               ; @retrieve_current_scheme
	.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, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
Lloh2:
	adrp	x8, _scheme_filename@GOTPAGE
Lloh3:
	ldr	x8, [x8, _scheme_filename@GOTPAGEOFF]
Lloh4:
	str	x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_send_rpc_command
	asr	x0, x0, #63
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_log_printf
	mov	w0, #-1
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

	.comm	_scheme_filename,8,3            ; @scheme_filename
l_.str.1:                               ; @.str.1
	.asciz	"Couln't open \"%s\" for writing. %m\n"

l_.str.2:                               ; @.str.2
	.asciz	"(help.getScheme 1)"

.subsections_via_symbols
