	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_mruby_define_callback      ## -- Begin function h2o_mruby_define_callback
	.p2align	4, 0x90
_h2o_mruby_define_callback:             ## @h2o_mruby_define_callback
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rbx
	movq	(%rbx), %rdx
	incq	%rdx
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_h2o_vector_reserve
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%rbx)
	movl	%r15d, (%rcx,%rax,4)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_mrb_str_new_cstr
	movl	%eax, -56(%rbp)
	subl	(%rbx), %r13d
	movl	%r13d, %edi
	callq	_mrb_fixnum_value
	movl	%eax, -52(%rbp)
	movq	%r12, %rdi
	callq	_mrb_top_self
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_mrb_intern_lit
	leaq	-56(%rbp), %r8
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	$2, %ecx
	callq	_mrb_funcall_argv
	cmpq	$0, (%r12)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_h2o_error_printf
	movq	%r12, %rdi
	callq	_h2o_mruby_assert
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_h2o_define_callback"

L_.str.1:                               ## @.str.1
	.asciz	"failed to define mruby function: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_mruby_define_callback      ; -- Begin function h2o_mruby_define_callback
	.p2align	2
_h2o_mruby_define_callback:             ; @h2o_mruby_define_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x22, [x0, #8]
	ldr	x8, [x22]
	add	x2, x8, #1
	mov	x0, #0
	mov	x1, x22
	bl	_h2o_vector_reserve
	ldp	x9, x8, [x22]
	add	x10, x9, #1
	str	x10, [x22]
	str	w21, [x8, x9, lsl #2]
	mov	x0, x19
	mov	x1, x20
	bl	_mrb_str_new_cstr
	str	w0, [sp]
	ldr	w8, [x22]
	neg	w0, w8
	bl	_mrb_fixnum_value
	str	w0, [sp, #4]
	mov	x0, x19
	bl	_mrb_top_self
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mrb_intern_lit
	mov	x2, x0
	mov	x4, sp
	mov	x0, x19
	mov	x1, x21
	mov	w3, #2
	bl	_mrb_funcall_argv
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_h2o_error_printf
	mov	x0, x19
	bl	_h2o_mruby_assert
LBB0_2:
	ldr	x8, [sp, #8]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	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
	add	sp, sp, #64
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_h2o_define_callback"

l_.str.1:                               ; @.str.1
	.asciz	"failed to define mruby function: %s\n"

.subsections_via_symbols
