	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_mrb_open
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	-80(%rbp), %rcx
	movq	%rax, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_parse_args
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%eax, %r13d
	cmpl	%ebx, %eax
	jne	LBB0_7
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-80(%rbp), %rdx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_fputs
	jmp	LBB0_27
LBB0_3:
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	callq	_cleanup
	movq	(%r14), %rdi
	callq	_usage
	jmp	LBB0_27
LBB0_7:
	cmpq	$0, -72(%rbp)
	jne	LBB0_14
## %bb.8:
	cmpq	$0, -56(%rbp)
	jne	LBB0_14
## %bb.9:
	leal	1(%r13), %eax
	cmpl	%ebx, %eax
	jne	LBB0_29
## %bb.10:
	movl	%r13d, %eax
	movq	(%r14,%rax,8), %rsi
	cmpq	$0, -48(%rbp)
	jne	LBB0_11
## %bb.12:
	movq	_RITEBIN_EXT@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_29:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-80(%rbp), %rdx
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_27
LBB0_11:
	movq	_C_EXT@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_get_outfilename
	movq	%rax, -72(%rbp)
LBB0_14:
	movl	%r13d, -64(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	callq	_load_file
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_mrb_nil_p
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	callq	_cleanup
LBB0_27:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	cmpq	$0, -56(%rbp)
	je	LBB0_20
## %bb.17:
	movq	-80(%rbp), %rsi
	movl	%r13d, %eax
	movq	(%r14,%rax,8), %rdx
	leaq	L_.str.3(%rip), %rdi
	callq	_printf
	cmpq	$0, -56(%rbp)
	je	LBB0_20
## %bb.18:
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	callq	_cleanup
	jmp	LBB0_19
LBB0_20:
	movq	-72(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_26
## %bb.21:
	leaq	L_.str.4(%rip), %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.24:
	movq	-72(%rbp), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_fopen
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_23
## %bb.25:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-80(%rbp), %rdx
	movq	-72(%rbp), %rcx
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_27
LBB0_26:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_27
LBB0_22:
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_23:
	movq	-72(%rbp), %r14
	movl	%r12d, %edi
	callq	_mrb_proc_ptr
	leaq	-80(%rbp), %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	movq	%r12, %r8
	callq	_dump_file
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_fclose
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_cleanup
	movq	_MRB_DUMP_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_27
LBB0_19:
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid mrb_state, exiting mrbc\n"

	.comm	_stderr,4,2                     ## @stderr
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"%s: no program file given\n"

	.comm	_C_EXT,4,2                      ## @C_EXT
	.comm	_RITEBIN_EXT,4,2                ## @RITEBIN_EXT
L_.str.2:                               ## @.str.2
	.asciz	"%s: output file should be specified to compile multiple files\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s:%s:Syntax OK\n"

	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
L_.str.4:                               ## @.str.4
	.asciz	"-"

	.comm	_stdout,8,3                     ## @stdout
L_.str.5:                               ## @.str.5
	.asciz	"wb"

L_.str.6:                               ## @.str.6
	.asciz	"%s: cannot open output file:(%s)\n"

L_.str.7:                               ## @.str.7
	.asciz	"Output file is required\n"

	.comm	_MRB_DUMP_OK,4,2                ## @MRB_DUMP_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x21, x0
	bl	_mrb_open
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x3, sp, #24
	mov	x1, x21
	mov	x2, x20
	bl	_parse_args
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x22, x0
	cmp	w0, w21
	b.ne	LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_4:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fputs
	b	LBB0_22
LBB0_5:
	add	x1, sp, #24
	mov	x0, x19
	bl	_cleanup
	ldr	x0, [x20]
	bl	_usage
	b	LBB0_22
LBB0_6:
	ldr	x8, [sp, #32]
	cbnz	x8, LBB0_10
; %bb.7:
	ldr	x8, [sp, #48]
	cbnz	x8, LBB0_10
; %bb.8:
	add	w8, w22, #1
	cmp	w8, w21
	b.ne	LBB0_15
; %bb.9:
	ldr	x1, [x20, w22, uxtw #3]
Lloh10:
	adrp	x8, _C_EXT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _C_EXT@GOTPAGEOFF]
	ldr	x9, [sp, #56]
Lloh12:
	adrp	x10, _RITEBIN_EXT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _RITEBIN_EXT@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w2, [x8]
	mov	x0, x19
	bl	_get_outfilename
	str	x0, [sp, #32]
LBB0_10:
	str	w22, [sp, #40]
	add	x1, sp, #24
	mov	x0, x19
	bl	_load_file
	mov	x21, x0
	bl	_mrb_nil_p
	cbz	x0, LBB0_12
; %bb.11:
	add	x1, sp, #24
	mov	x0, x19
	bl	_cleanup
	b	LBB0_22
LBB0_12:
	ldr	x8, [sp, #48]
	cbz	x8, LBB0_16
; %bb.13:
	ldr	x1, [sp, #24]
	ldr	x2, [x20, w22, uxtw #3]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	x8, [sp, #48]
	cbz	x8, LBB0_16
; %bb.14:
	add	x1, sp, #24
	mov	x0, x19
	bl	_cleanup
Lloh16:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
	b	LBB0_23
LBB0_15:
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_16:
	ldr	x1, [sp, #32]
	cbz	x1, LBB0_20
; %bb.17:
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_24
; %bb.18:
	ldr	x0, [sp, #32]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fopen
	mov	x20, x0
	cbnz	x0, LBB0_25
; %bb.19:
Lloh27:
	adrp	x8, _stderr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldp	x8, x9, [sp, #24]
	stp	x8, x9, [sp]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh32:
	adrp	x8, _stderr@GOTPAGE
Lloh33:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x1, l_.str.7@PAGE
Lloh36:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_21:
	bl	_fprintf
LBB0_22:
Lloh37:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
LBB0_23:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_24:
Lloh39:
	adrp	x8, _stdout@GOTPAGE
Lloh40:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh41:
	ldr	x20, [x8]
LBB0_25:
	ldr	x22, [sp, #32]
	mov	x0, x21
	bl	_mrb_proc_ptr
	mov	x3, x0
	add	x4, sp, #24
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_dump_file
	mov	x21, x0
	mov	x0, x20
	bl	_fclose
	add	x1, sp, #24
	mov	x0, x19
	bl	_cleanup
Lloh42:
	adrp	x8, _MRB_DUMP_OK@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MRB_DUMP_OK@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _EXIT_FAILURE@GOTPAGE
Lloh46:
	ldr	x9, [x9, _EXIT_FAILURE@GOTPAGEOFF]
Lloh47:
	adrp	x10, _EXIT_SUCCESS@GOTPAGE
Lloh48:
	ldr	x10, [x10, _EXIT_SUCCESS@GOTPAGEOFF]
	cmp	w21, w8
	csel	x8, x10, x9, eq
	b	LBB0_23
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid mrb_state, exiting mrbc\n"

	.comm	_stderr,4,2                     ; @stderr
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"%s: no program file given\n"

	.comm	_C_EXT,4,2                      ; @C_EXT
	.comm	_RITEBIN_EXT,4,2                ; @RITEBIN_EXT
l_.str.2:                               ; @.str.2
	.asciz	"%s: output file should be specified to compile multiple files\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s:%s:Syntax OK\n"

	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
l_.str.4:                               ; @.str.4
	.asciz	"-"

	.comm	_stdout,8,3                     ; @stdout
l_.str.5:                               ; @.str.5
	.asciz	"wb"

l_.str.6:                               ; @.str.6
	.asciz	"%s: cannot open output file:(%s)\n"

l_.str.7:                               ; @.str.7
	.asciz	"Output file is required\n"

	.comm	_MRB_DUMP_OK,4,2                ; @MRB_DUMP_OK
.subsections_via_symbols
