	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_subreq_error_callback
_on_subreq_error_callback:              ## @on_subreq_error_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movl	(%rdi), %edi
	callq	_mrb_nil_p
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	leaq	4(%rbx), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_h2o_concat
	movq	%rax, %rsi
	shrq	$32, %rsi
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%eax, %edx
	callq	_h2o_mruby_new_str
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	movl	%eax, %r8d
	callq	_mrb_funcall
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_mrb_obj_value
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mrb_inspect
	movl	%eax, %edi
	callq	_RSTRING_PTR
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_h2o_error_printf
	movq	$0, (%r14)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write"

L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

	.no_dead_strip	_on_subreq_error_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_subreq_error_callback
_on_subreq_error_callback:              ; @on_subreq_error_callback
	.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, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x19, [x8]
	ldr	w0, [x0]
	bl	_mrb_nil_p
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	add	x0, x22, #4
	mov	x1, x21
	mov	x2, x20
	bl	_h2o_concat
	mov	x2, x0
	lsr	x1, x0, #32
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_h2o_mruby_new_str
	mov	x4, x0
	ldr	w1, [x22]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w3, #1
	bl	_mrb_funcall
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_mrb_obj_value
	mov	x1, x0
	mov	x0, x19
	bl	_mrb_inspect
	bl	_RSTRING_PTR
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_h2o_error_printf
	str	xzr, [x19]
LBB0_2:
	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	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write"

l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

	.no_dead_strip	_on_subreq_error_callback
.subsections_via_symbols
