	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function error_stream_write
_error_stream_write:                    ## @error_stream_write
	.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
	callq	_h2o_mruby_get_error_stream
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_E_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_mrb_raise
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mrb_get_args
	movl	-28(%rbp), %esi
	movq	%rbx, %rdi
	callq	_h2o_mruby_to_str
	movl	%eax, -28(%rbp)
	movl	%eax, %edi
	callq	_RSTRING_PTR
	movq	%rax, %rbx
	movl	-28(%rbp), %edi
	callq	_RSTRING_LEN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_h2o_iovec_init
	movl	%eax, %r14d
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rax), %rax
	movq	8(%rax), %r15
	movl	(%rax), %ebx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_h2o_iovec_init
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	*%r15
	jmp	LBB0_6
LBB0_4:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_h2o_iovec_init
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_h2o_write_error_log
LBB0_6:
	movl	%r14d, %edi
	callq	_mrb_fixnum_value
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E_ARGUMENT_ERROR,4,2           ## @E_ARGUMENT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ErrorStream#write wrong self"

L_.str.1:                               ## @.str.1
	.asciz	"o"

	.no_dead_strip	_error_stream_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function error_stream_write
_error_stream_write:                    ; @error_stream_write
	.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	x19, x0
	bl	_h2o_mruby_get_error_stream
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _E_ARGUMENT_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E_ARGUMENT_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mrb_raise
LBB0_2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_mrb_get_args
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_h2o_mruby_to_str
	str	w0, [sp, #12]
	bl	_RSTRING_PTR
	mov	x19, x0
	ldr	w0, [sp, #12]
	bl	_RSTRING_LEN
	mov	x1, x0
	mov	x0, x19
	bl	_h2o_iovec_init
	mov	x19, x0
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x8]
	ldr	x21, [x8, #8]
	ldr	w20, [x8]
	mov	x0, #0
	mov	w1, #0
	bl	_h2o_iovec_init
	mov	w1, w0
	mov	w2, w19
	mov	x0, x20
	blr	x21
	b	LBB0_6
LBB0_4:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, #0
	mov	w1, #0
	bl	_h2o_iovec_init
	mov	w0, w0
	mov	w1, w19
	bl	_h2o_write_error_log
LBB0_6:
	mov	x0, x19
	bl	_mrb_fixnum_value
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_E_ARGUMENT_ERROR,4,2           ; @E_ARGUMENT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ErrorStream#write wrong self"

l_.str.1:                               ; @.str.1
	.asciz	"o"

	.no_dead_strip	_error_stream_write
.subsections_via_symbols
