	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_config_mruby_handler_file
_on_config_mruby_handler_file:          ## @on_config_mruby_handler_file
	.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	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r13
	movl	(%rdx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	movq	%r13, -1096(%rbp)               ## 8-byte Spill
	movq	%r12, -1088(%rbp)               ## 8-byte Spill
	movq	%r15, -1080(%rbp)               ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	65536(%r13), %esi
	movq	%r12, %rdi
	callq	_h2o_mem_realloc
	movq	%rax, %r12
	movslq	%r13d, %rax
	leaq	(%r12,%rax,4), %rdi
	movl	$1, %esi
	movl	$65536, %edx                    ## imm = 0x10000
	movq	%rbx, %rcx
	callq	_fread
	movl	%eax, %r15d
	addl	%r13d, %r15d
	movq	%rbx, %rdi
	callq	_ferror
	movl	%r15d, %r13d
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	(%r14), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdx
	movq	-1080(%rbp), %rdi               ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r15d, %ecx
	movq	%rax, %r8
	callq	_h2o_configurator_errprintf
	movq	%rbx, %rdi
	callq	_fclose
	movl	$-1, %r14d
	testq	%r12, %r12
	je	LBB0_10
## %bb.5:
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_10
LBB0_12:
	movl	(%r14), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %ecx
	movq	%rax, %r8
	callq	_h2o_configurator_errprintf
	movl	$-1, %r14d
	jmp	LBB0_10
LBB0_6:
	movq	-1096(%rbp), %r15               ## 8-byte Reload
	movq	(%r15), %rax
	movl	%r13d, 16(%rax)
	movl	$0, 20(%rax)
	movq	%r12, 24(%rax)
	movq	$0, 32(%rax)
	movl	(%r14), %eax
	movq	(%r15), %rcx
	movl	%eax, 8(%rcx)
	movq	$0, (%rcx)
	movq	%r15, %rdi
	callq	_get_mrb
	movq	(%r15), %rsi
	leaq	-1072(%rbp), %rdx
	movl	%eax, %edi
	callq	_compile_test
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	-1088(%rbp), %rax               ## 8-byte Reload
	movl	(%rax), %edi
	movq	(%r15), %rsi
	callq	_h2o_mruby_register
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_7:
	movl	(%r14), %ecx
	leaq	L_.str.3(%rip), %rdx
	leaq	-1072(%rbp), %r8
	movq	-1080(%rbp), %rdi               ## 8-byte Reload
	movq	%r14, %rsi
	callq	_h2o_configurator_errprintf
	movl	$-1, %r14d
LBB0_9:
	movq	%rbx, %rdi
	callq	_fclose
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.11:
	movl	%r14d, %eax
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rt"

L_.str.1:                               ## @.str.1
	.asciz	"failed to open file: %s:%s"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"I/O error occurred while reading file:%s:%s"

L_.str.3:                               ## @.str.3
	.asciz	"failed to compile file:%s:%s"

	.no_dead_strip	_on_config_mruby_handler_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_config_mruby_handler_file
_on_config_mruby_handler_file:          ; @on_config_mruby_handler_file
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #1040
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x23, [x0]
	ldr	w0, [x2]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	mov	w25, #0
	mov	x24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_feof
	cbnz	w0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w1, w25, #16, lsl #12           ; =65536
	mov	x0, x24
	bl	_h2o_mem_realloc
	mov	x24, x0
	add	x0, x0, w25, sxtw #2
	mov	w1, #1
	mov	w2, #65536
	mov	x3, x19
	bl	_fread
	add	w25, w0, w25
	mov	x0, x19
	bl	_ferror
	cbz	x0, LBB0_2
; %bb.4:
	ldr	w22, [x20]
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_strerror
	mov	x4, x0
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	bl	_h2o_configurator_errprintf
	mov	x0, x19
	bl	_fclose
	cbz	x24, LBB0_6
; %bb.5:
	mov	x0, x24
	bl	_free
LBB0_6:
	mov	w20, #-1
	b	LBB0_12
LBB0_7:
	ldr	w19, [x20]
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_strerror
	mov	x4, x0
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_h2o_configurator_errprintf
	mov	w20, #-1
	b	LBB0_12
LBB0_8:
	ldr	x8, [x23]
	stp	w25, wzr, [x8, #16]
	stp	x24, xzr, [x8, #24]
	ldr	w8, [x20]
	ldr	x9, [x23]
	str	w8, [x9, #8]
	str	xzr, [x9]
	mov	x0, x23
	bl	_get_mrb
	ldr	x1, [x23]
	add	x2, sp, #8
	bl	_compile_test
	cbz	w0, LBB0_10
; %bb.9:
	ldr	w0, [x22]
	ldr	x1, [x23]
	bl	_h2o_mruby_register
	mov	w20, #0
	b	LBB0_11
LBB0_10:
	ldr	w3, [x20]
Lloh15:
	adrp	x2, l_.str.3@PAGE
Lloh16:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x4, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_h2o_configurator_errprintf
	mov	w20, #-1
LBB0_11:
	mov	x0, x19
	bl	_fclose
LBB0_12:
	ldur	x8, [x29, #-72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x20
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rt"

l_.str.1:                               ; @.str.1
	.asciz	"failed to open file: %s:%s"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"I/O error occurred while reading file:%s:%s"

l_.str.3:                               ; @.str.3
	.asciz	"failed to compile file:%s:%s"

	.no_dead_strip	_on_config_mruby_handler_file
.subsections_via_symbols
