	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_mruby_compile_code         ## -- Begin function h2o_mruby_compile_code
	.p2align	4, 0x90
_h2o_mruby_compile_code:                ## @h2o_mruby_compile_code
	.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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_mrbc_context_new
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_H2O_MRUBY_MODULE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_h2o_fatal
LBB0_2:
	movq	24(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mrbc_filename
LBB0_4:
	movl	$1, (%r12)
	movl	(%rbx), %eax
	movl	%eax, 4(%r12)
	movl	8(%rbx), %edx
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	movq	%r12, %rcx
	callq	_mrb_parse_nstring
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	cmpq	$0, (%r13)
	je	LBB0_11
LBB0_7:
	testq	%r15, %r15
	jne	LBB0_9
## %bb.8:
	movq	_H2O_MRUBY_MODULE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_h2o_fatal
LBB0_9:
	movq	8(%r13), %rax
	movl	(%rax), %ecx
	movq	8(%rax), %r8
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_snprintf
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcat
	movq	%r15, %rdi
	callq	_strlen
	movslq	%eax, %rdi
	addq	%r15, %rdi
	movl	16(%rbx), %esi
	movq	8(%rbx), %rdx
	movq	8(%r13), %rax
	movl	(%rax), %ecx
	movl	16(%rax), %r8d
	subl	(%rbx), %ecx
	incl	%ecx
	callq	_h2o_str_at_position
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%r15, %rdi
	callq	_strlen
	cltq
	movb	$0, -2(%rax,%r15)
	jmp	LBB0_13
LBB0_5:
	movq	_H2O_MRUBY_MODULE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_h2o_fatal
	cmpq	$0, (%r13)
	jne	LBB0_7
LBB0_11:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_mrb_generate_code
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:
	movq	_H2O_MRUBY_MODULE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_h2o_fatal
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%r13, %rdi
	callq	_mrb_parser_free
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mrbc_context_free
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: no memory\n"

	.comm	_H2O_MRUBY_MODULE_NAME,4,2      ## @H2O_MRUBY_MODULE_NAME
L_.str.1:                               ## @.str.1
	.asciz	"%s: internal error (unexpected state)\n"

L_.str.2:                               ## @.str.2
	.asciz	"line %d:%s"

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

L_.str.4:                               ## @.str.4
	.asciz	"%s: internal error (mrb_generate_code failed)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_mruby_compile_code         ; -- Begin function h2o_mruby_compile_code
	.p2align	2
_h2o_mruby_compile_code:                ; @h2o_mruby_compile_code
	.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	x21, x2
	mov	x23, x1
	mov	x19, x0
	bl	_mrbc_context_new
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _H2O_MRUBY_MODULE_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H2O_MRUBY_MODULE_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_h2o_fatal
LBB0_2:
	ldr	x2, [x23, #24]
	cbz	x2, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_mrbc_filename
LBB0_4:
	mov	w8, #1
	ldr	w9, [x23]
	stp	w8, w9, [x20]
	ldr	w1, [x23, #16]
	ldr	w2, [x23, #8]
	mov	x0, x19
	mov	x3, x20
	bl	_mrb_parse_nstring
	mov	x22, x0
	cbz	x0, LBB0_10
; %bb.5:
	ldr	x8, [x22]
	cbz	x8, LBB0_11
LBB0_6:
	cbnz	x21, LBB0_8
; %bb.7:
Lloh5:
	adrp	x8, _H2O_MRUBY_MODULE_NAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _H2O_MRUBY_MODULE_NAME@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_h2o_fatal
LBB0_8:
	ldr	x8, [x22, #8]
	ldr	w3, [x8]
	ldr	x4, [x8, #8]
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	w1, #256
	bl	_snprintf
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_strcat
	mov	x0, x21
	bl	_strlen
	add	x0, x21, w0, sxtw
	ldr	w1, [x23, #16]
	ldr	x2, [x23, #8]
	ldr	x8, [x22, #8]
	ldr	w9, [x8]
	ldr	w10, [x23]
	sub	w9, w9, w10
	add	w3, w9, #1
	ldr	w4, [x8, #16]
	bl	_h2o_str_at_position
	cbz	x0, LBB0_13
; %bb.9:
	mov	x0, x21
	bl	_strlen
	mov	x23, #0
	add	x8, x21, w0, sxtw
	sturb	wzr, [x8, #-2]
	b	LBB0_14
LBB0_10:
Lloh14:
	adrp	x8, _H2O_MRUBY_MODULE_NAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _H2O_MRUBY_MODULE_NAME@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_h2o_fatal
	ldr	x8, [x22]
	cbnz	x8, LBB0_6
LBB0_11:
	mov	x0, x19
	mov	x1, x22
	bl	_mrb_generate_code
	mov	x23, x0
	cbnz	x0, LBB0_14
; %bb.12:
Lloh19:
	adrp	x8, _H2O_MRUBY_MODULE_NAME@GOTPAGE
Lloh20:
	ldr	x8, [x8, _H2O_MRUBY_MODULE_NAME@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_h2o_fatal
	b	LBB0_14
LBB0_13:
	mov	x23, #0
LBB0_14:
	mov	x0, x22
	bl	_mrb_parser_free
	mov	x0, x19
	mov	x1, x20
	bl	_mrbc_context_free
	mov	x0, x23
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: no memory\n"

	.comm	_H2O_MRUBY_MODULE_NAME,4,2      ; @H2O_MRUBY_MODULE_NAME
l_.str.1:                               ; @.str.1
	.asciz	"%s: internal error (unexpected state)\n"

l_.str.2:                               ; @.str.2
	.asciz	"line %d:%s"

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

l_.str.4:                               ; @.str.4
	.asciz	"%s: internal error (mrb_generate_code failed)\n"

.subsections_via_symbols
