	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lang_rust_run
_lang_rust_run:                         ## @lang_rust_run
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_r_sandbox_fopen
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	movl	$743, %esi                      ## imm = 0x2E7
	movl	$1, %edx
	movq	%rax, %rcx
	callq	_fwrite
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_fputs
	leaq	L_.str.3(%rip), %rdi
	movl	$12, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	movq	%rbx, %rdi
	callq	_fclose
	leaq	L_.str(%rip), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_lang_rust_file
	movq	%rbx, %rdi
	callq	_r_file_rm
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.4(%rip), %rdi
	callq	_eprintf
LBB0_3:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_tmp.rs"

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

L_.str.2:                               ## @.str.2
	.asciz	"use std::ffi::CStr;\nextern {\n        pub fn r_core_cmd_str(core: *const u8, s: *const u8) -> *const u8;\n        pub fn free (ptr: *const u8);\n}\n\npub struct R2;\n\n#[allow(dead_code)]\nimpl R2 {\n        fn cmdstr(&self, c: *const u8, str: &str) -> String {\n                unsafe {\n                        let ptr = r_core_cmd_str(c, str.as_ptr()) as *const i8;\n                        let c_str = CStr::from_ptr(ptr).to_string_lossy().into_owned();\n                        free (ptr as *const u8);\n                        String::from (c_str)\n                }\n        }\n}\n\n#[no_mangle]\n#[allow(unused_variables)]\n#[allow(unused_unsafe)]\npub extern fn entry(core: *const u8) {\n        let r2 = R2;\n        unsafe { /* because core is external */\n"

L_.str.3:                               ## @.str.3
	.asciz	"        }\n}\n"

L_.str.4:                               ## @.str.4
	.asciz	"Cannot open _tmp.rs\n"

	.no_dead_strip	_lang_rust_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lang_rust_run
_lang_rust_run:                         ; @lang_rust_run
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_r_sandbox_fopen
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #743
	mov	w2, #1
	mov	x3, x20
	bl	_fwrite
	mov	x0, x21
	mov	x1, x20
	bl	_fputs
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w1, #12
	mov	w2, #1
	mov	x3, x20
	bl	_fwrite
	mov	x0, x20
	bl	_fclose
Lloh8:
	adrp	x20, l_.str@PAGE
Lloh9:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_lang_rust_file
	mov	x0, x20
	bl	_r_file_rm
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_eprintf
LBB0_3:
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_tmp.rs"

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

l_.str.2:                               ; @.str.2
	.asciz	"use std::ffi::CStr;\nextern {\n        pub fn r_core_cmd_str(core: *const u8, s: *const u8) -> *const u8;\n        pub fn free (ptr: *const u8);\n}\n\npub struct R2;\n\n#[allow(dead_code)]\nimpl R2 {\n        fn cmdstr(&self, c: *const u8, str: &str) -> String {\n                unsafe {\n                        let ptr = r_core_cmd_str(c, str.as_ptr()) as *const i8;\n                        let c_str = CStr::from_ptr(ptr).to_string_lossy().into_owned();\n                        free (ptr as *const u8);\n                        String::from (c_str)\n                }\n        }\n}\n\n#[no_mangle]\n#[allow(unused_variables)]\n#[allow(unused_unsafe)]\npub extern fn entry(core: *const u8) {\n        let r2 = R2;\n        unsafe { /* because core is external */\n"

l_.str.3:                               ; @.str.3
	.asciz	"        }\n}\n"

l_.str.4:                               ; @.str.4
	.asciz	"Cannot open _tmp.rs\n"

	.no_dead_strip	_lang_rust_run
.subsections_via_symbols
