	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function simpleProjectSaveScript
_simpleProjectSaveScript:               ## @simpleProjectSaveScript
	.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
	xorl	%r12d, %r12d
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.1:
	movq	%rsi, %rbx
	cmpb	$0, (%rsi)
	je	LBB0_20
## %bb.2:
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	%rbx, %rdi
	callq	_r_str_word_get_first
	movq	_O_BINARY@GOTPCREL(%rip), %rcx
	movq	_O_RDWR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$420, %edx                      ## imm = 0x1A4
	callq	_r_sandbox_open
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r13d
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_r_cons_singleton
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_strdup
	movq	%rax, %r12
	xorl	%edi, %edi
	callq	_r_cons_highlight
LBB0_6:
	xorl	%eax, %eax
	callq	_r_cons_singleton
	movl	8(%rax), %ebx
	xorl	%eax, %eax
	callq	_r_cons_singleton
	movl	%r13d, 8(%rax)
	xorl	%eax, %eax
	callq	_r_cons_singleton
	movq	16(%rax), %rax
	movl	$0, (%rax)
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	callq	_r_str_write
	movq	_R_CORE_PRJ_EVAL@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	callq	_r_str_write
	movl	4(%r15), %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_r_config_list
	xorl	%eax, %eax
	callq	_r_cons_flush
LBB0_8:
	movq	_R_CORE_PRJ_FCNS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edi
	callq	_r_str_write
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_r_core_cmd
	xorl	%eax, %eax
	callq	_r_cons_flush
LBB0_10:
	movq	_R_CORE_PRJ_FLAGS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movl	%r13d, %edi
	callq	_r_str_write
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_r_core_cmd
	xorl	%eax, %eax
	callq	_r_cons_flush
LBB0_12:
	movq	_R_CORE_PRJ_META@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_14
## %bb.13:
	leaq	L_.str.6(%rip), %rsi
	movl	%r13d, %edi
	callq	_r_str_write
	movl	(%r15), %edi
	movq	_R_META_TYPE_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_r_meta_list
	xorl	%eax, %eax
	callq	_r_cons_flush
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_r_core_cmd
	xorl	%eax, %eax
	callq	_r_cons_flush
LBB0_14:
	movq	_R_CORE_PRJ_XREFS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_16
## %bb.15:
	leaq	L_.str.8(%rip), %rsi
	movl	%r13d, %edi
	callq	_r_str_write
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_r_core_cmd
	xorl	%eax, %eax
	callq	_r_cons_flush
LBB0_16:
	xorl	%eax, %eax
	callq	_r_cons_singleton
	movl	%ebx, 8(%rax)
	xorl	%eax, %eax
	callq	_r_cons_singleton
	movq	16(%rax), %rax
	movl	$1, (%rax)
	testq	%r12, %r12
	je	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	callq	_r_cons_highlight
	movq	%r12, %rdi
	callq	_free
LBB0_18:
	movl	%r13d, %edi
	callq	_close
	movl	$1, %r12d
	jmp	LBB0_19
LBB0_3:
	xorl	%r12d, %r12d
LBB0_19:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
LBB0_20:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"# r2 rdb project file\n"

	.comm	_R_CORE_PRJ_EVAL,4,2            ## @R_CORE_PRJ_EVAL
L_.str.1:                               ## @.str.1
	.asciz	"# eval\n"

	.comm	_R_CORE_PRJ_FCNS,4,2            ## @R_CORE_PRJ_FCNS
L_.str.2:                               ## @.str.2
	.asciz	"# functions\n"

L_.str.3:                               ## @.str.3
	.asciz	"afl*"

	.comm	_R_CORE_PRJ_FLAGS,4,2           ## @R_CORE_PRJ_FLAGS
L_.str.4:                               ## @.str.4
	.asciz	"# flags\n"

L_.str.5:                               ## @.str.5
	.asciz	"f.**"

	.comm	_R_CORE_PRJ_META,4,2            ## @R_CORE_PRJ_META
L_.str.6:                               ## @.str.6
	.asciz	"# meta\n"

	.comm	_R_META_TYPE_ANY,4,2            ## @R_META_TYPE_ANY
L_.str.7:                               ## @.str.7
	.asciz	"fV*"

	.comm	_R_CORE_PRJ_XREFS,4,2           ## @R_CORE_PRJ_XREFS
L_.str.8:                               ## @.str.8
	.asciz	"# xrefs\n"

L_.str.9:                               ## @.str.9
	.asciz	"ax*"

	.no_dead_strip	_simpleProjectSaveScript
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function simpleProjectSaveScript
_simpleProjectSaveScript:               ; @simpleProjectSaveScript
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	cbz	x1, LBB0_22
; %bb.1:
	ldrb	w8, [x20]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x22, x2
	mov	x21, x0
	mov	x0, x20
	bl	_r_str_word_get_first
	mov	x19, x0
Lloh0:
	adrp	x8, _O_BINARY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_BINARY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x20
	mov	w2, #420
	bl	_r_sandbox_open
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.3:
	mov	x20, x0
	bl	_r_cons_singleton
	ldr	x0, [x0]
	cbz	x0, LBB0_7
; %bb.4:
	bl	_strdup
	mov	x23, x0
	mov	x0, #0
	bl	_r_cons_highlight
	b	LBB0_8
LBB0_5:
	mov	w20, #0
	b	LBB0_22
LBB0_6:
	mov	w20, #0
	b	LBB0_21
LBB0_7:
	mov	x23, #0
LBB0_8:
	bl	_r_cons_singleton
	ldr	w24, [x0, #8]
	bl	_r_cons_singleton
	str	w20, [x0, #8]
	bl	_r_cons_singleton
	ldr	x8, [x0, #16]
	str	wzr, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_r_str_write
Lloh14:
	adrp	x8, _R_CORE_PRJ_EVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _R_CORE_PRJ_EVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_10
; %bb.9:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_r_str_write
	ldr	w0, [x21, #4]
	mov	x1, #0
	mov	w2, #1
	bl	_r_config_list
	bl	_r_cons_flush
LBB0_10:
Lloh19:
	adrp	x8, _R_CORE_PRJ_FCNS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _R_CORE_PRJ_FCNS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_12
; %bb.11:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_r_str_write
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	bl	_r_core_cmd
	bl	_r_cons_flush
LBB0_12:
Lloh26:
	adrp	x8, _R_CORE_PRJ_FLAGS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _R_CORE_PRJ_FLAGS@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_14
; %bb.13:
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_r_str_write
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	bl	_r_core_cmd
	bl	_r_cons_flush
LBB0_14:
Lloh33:
	adrp	x8, _R_CORE_PRJ_META@GOTPAGE
Lloh34:
	ldr	x8, [x8, _R_CORE_PRJ_META@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_16
; %bb.15:
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_r_str_write
	ldr	w0, [x21]
Lloh38:
	adrp	x8, _R_META_TYPE_ANY@GOTPAGE
Lloh39:
	ldr	x8, [x8, _R_META_TYPE_ANY@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_r_meta_list
	bl	_r_cons_flush
Lloh41:
	adrp	x1, l_.str.7@PAGE
Lloh42:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	bl	_r_core_cmd
	bl	_r_cons_flush
LBB0_16:
Lloh43:
	adrp	x8, _R_CORE_PRJ_XREFS@GOTPAGE
Lloh44:
	ldr	x8, [x8, _R_CORE_PRJ_XREFS@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_18
; %bb.17:
Lloh46:
	adrp	x1, l_.str.8@PAGE
Lloh47:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_r_str_write
Lloh48:
	adrp	x1, l_.str.9@PAGE
Lloh49:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	bl	_r_core_cmd
	bl	_r_cons_flush
LBB0_18:
	bl	_r_cons_singleton
	str	w24, [x0, #8]
	bl	_r_cons_singleton
	ldr	x8, [x0, #16]
	mov	w9, #1
	str	w9, [x8]
	cbz	x23, LBB0_20
; %bb.19:
	mov	x0, x23
	bl	_r_cons_highlight
	mov	x0, x23
	bl	_free
LBB0_20:
	mov	x0, x20
	bl	_close
	mov	w20, #1
LBB0_21:
	mov	x0, x19
	bl	_free
LBB0_22:
	mov	x0, x20
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"# r2 rdb project file\n"

	.comm	_R_CORE_PRJ_EVAL,4,2            ; @R_CORE_PRJ_EVAL
l_.str.1:                               ; @.str.1
	.asciz	"# eval\n"

	.comm	_R_CORE_PRJ_FCNS,4,2            ; @R_CORE_PRJ_FCNS
l_.str.2:                               ; @.str.2
	.asciz	"# functions\n"

l_.str.3:                               ; @.str.3
	.asciz	"afl*"

	.comm	_R_CORE_PRJ_FLAGS,4,2           ; @R_CORE_PRJ_FLAGS
l_.str.4:                               ; @.str.4
	.asciz	"# flags\n"

l_.str.5:                               ; @.str.5
	.asciz	"f.**"

	.comm	_R_CORE_PRJ_META,4,2            ; @R_CORE_PRJ_META
l_.str.6:                               ; @.str.6
	.asciz	"# meta\n"

	.comm	_R_META_TYPE_ANY,4,2            ; @R_META_TYPE_ANY
l_.str.7:                               ; @.str.7
	.asciz	"fV*"

	.comm	_R_CORE_PRJ_XREFS,4,2           ; @R_CORE_PRJ_XREFS
l_.str.8:                               ; @.str.8
	.asciz	"# xrefs\n"

l_.str.9:                               ; @.str.9
	.asciz	"ax*"

	.no_dead_strip	_simpleProjectSaveScript
.subsections_via_symbols
