	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_mruby_setup_globals        ## -- Begin function h2o_mruby_setup_globals
	.p2align	4, 0x90
_h2o_mruby_setup_globals:               ## @h2o_mruby_setup_globals
	.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	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_H2O_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_H2O_TO_STR
	movq	%rax, %r14
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mrb_intern_lit
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_h2o_mruby_new_str
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_mrb_gv_set
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_h2o_mruby_eval_expr
	movq	%rbx, %rdi
	callq	_h2o_mruby_assert
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_h2o_mruby_eval_expr
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	callq	_mrb_obj_value
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mrb_class_get
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_mrb_obj_is_instance_of
	testq	%rax, %rax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.6(%rip), %r15
	cmoveq	%rax, %r15
	movq	(%rbx), %rdi
	callq	_mrb_obj_value
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mrb_inspect
	movl	%eax, %edi
	callq	_RSTRING_PTR
	leaq	L_.str.7(%rip), %rdi
	leaq	L_.str.8(%rip), %rdx
	movq	%r14, %rsi
	movl	%eax, %ecx
	movq	%r15, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_h2o_fatal                      ## TAILCALL
LBB0_3:
	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	"H2O_ROOT"

	.comm	_H2O_ROOT,4,2                   ## @H2O_ROOT
L_.str.1:                               ## @.str.1
	.asciz	"$H2O_ROOT"

L_.str.2:                               ## @.str.2
	.asciz	"$LOAD_PATH << \"#{$H2O_ROOT}/share/h2o/mruby\""

L_.str.3:                               ## @.str.3
	.asciz	"require \"#{$H2O_ROOT}/share/h2o/mruby/preloads.rb\""

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	"LoadError"

L_.str.6:                               ## @.str.6
	.asciz	"Did you forget to run `make install`?\n"

L_.str.7:                               ## @.str.7
	.asciz	"an error occurred while loading %s/%s: %s\n%s"

L_.str.8:                               ## @.str.8
	.asciz	"share/h2o/mruby/preloads.rb"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_mruby_setup_globals        ; -- Begin function h2o_mruby_setup_globals
	.p2align	2
_h2o_mruby_setup_globals:               ; @h2o_mruby_setup_globals
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _H2O_ROOT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _H2O_ROOT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_H2O_TO_STR
	mov	x20, x0
LBB0_2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mrb_intern_lit
	mov	x21, x0
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_h2o_mruby_new_str
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mrb_gv_set
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_h2o_mruby_eval_expr
	mov	x0, x19
	bl	_h2o_mruby_assert
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_h2o_mruby_eval_expr
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_mrb_obj_value
	mov	x21, x0
Lloh11:
	adrp	x1, l_.str.5@PAGE
Lloh12:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_mrb_class_get
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mrb_obj_is_instance_of
Lloh13:
	adrp	x8, l_.str.6@PAGE
Lloh14:
	add	x8, x8, l_.str.6@PAGEOFF
Lloh15:
	adrp	x9, l_.str.4@PAGE
Lloh16:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	x0, #0
	csel	x21, x9, x8, eq
	ldr	x0, [x19]
	bl	_mrb_obj_value
	mov	x1, x0
	mov	x0, x19
	bl	_mrb_inspect
	bl	_RSTRING_PTR
Lloh17:
	adrp	x8, l_.str.7@PAGE
Lloh18:
	add	x8, x8, l_.str.7@PAGEOFF
Lloh19:
	adrp	x2, l_.str.8@PAGE
Lloh20:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x3, x0
	mov	x0, x8
	mov	x1, x20
	mov	x4, x21
	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
	b	_h2o_fatal
LBB0_4:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"H2O_ROOT"

	.comm	_H2O_ROOT,4,2                   ; @H2O_ROOT
l_.str.1:                               ; @.str.1
	.asciz	"$H2O_ROOT"

l_.str.2:                               ; @.str.2
	.asciz	"$LOAD_PATH << \"#{$H2O_ROOT}/share/h2o/mruby\""

l_.str.3:                               ; @.str.3
	.asciz	"require \"#{$H2O_ROOT}/share/h2o/mruby/preloads.rb\""

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	"LoadError"

l_.str.6:                               ; @.str.6
	.asciz	"Did you forget to run `make install`?\n"

l_.str.7:                               ; @.str.7
	.asciz	"an error occurred while loading %s/%s: %s\n%s"

l_.str.8:                               ; @.str.8
	.asciz	"share/h2o/mruby/preloads.rb"

.subsections_via_symbols
