	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_exception
_handle_exception:                      ## @handle_exception
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setne	%dil
	callq	_assert
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movq	(%r14), %r15
	cmpq	$0, (%r15)
	je	LBB0_3
LBB0_2:
	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(%rip), %rdi
	movl	%eax, %esi
	callq	_h2o_error_printf
	jmp	LBB0_4
LBB0_3:
	movq	_H2O_MRUBY_MODULE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	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(%rip), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %ecx
	callq	_h2o_req_log_error
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rdx
	movq	%rdx, %rsi
	xorl	%ecx, %ecx
	callq	_h2o_send_error_500
LBB0_4:
	movq	$0, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mruby raised: %s\n"

	.comm	_H2O_MRUBY_MODULE_NAME,4,2      ## @H2O_MRUBY_MODULE_NAME
L_.str.1:                               ## @.str.1
	.asciz	"Internal Server Error"

	.no_dead_strip	_handle_exception
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_exception
_handle_exception:                      ; @handle_exception
	.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	x20, x1
	ldr	x8, [x0]
	ldr	x19, [x8]
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	cbz	x20, LBB0_2
; %bb.1:
	ldr	x21, [x20]
	ldr	x8, [x21]
	cbz	x8, LBB0_3
LBB0_2:
	ldr	x0, [x19]
	bl	_mrb_obj_value
	mov	x1, x0
	mov	x0, x19
	bl	_mrb_inspect
	bl	_RSTRING_PTR
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_h2o_error_printf
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _H2O_MRUBY_MODULE_NAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _H2O_MRUBY_MODULE_NAME@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	ldr	x0, [x19]
	bl	_mrb_obj_value
	mov	x1, x0
	mov	x0, x19
	bl	_mrb_inspect
	bl	_RSTRING_PTR
	mov	x3, x0
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_h2o_req_log_error
	ldr	x0, [x20]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x1
	mov	w3, #0
	bl	_h2o_send_error_500
LBB0_4:
	str	xzr, [x19]
	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 AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mruby raised: %s\n"

	.comm	_H2O_MRUBY_MODULE_NAME,4,2      ; @H2O_MRUBY_MODULE_NAME
l_.str.1:                               ; @.str.1
	.asciz	"Internal Server Error"

	.no_dead_strip	_handle_exception
.subsections_via_symbols
