	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_write_req
_do_write_req:                          ## @do_write_req
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, 32(%rbx)
	setne	%dil
	callq	_assert
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	movl	$1, 24(%rbx)
LBB0_2:
	leaq	16(%rbx), %r12
	cmpq	$0, 16(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_h2o_socket_buffer_prototype@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_h2o_buffer_init
LBB0_4:
	leaq	8(%rbx), %r15
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	movq	%r14, %rsi
	shrq	$32, %rsi
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r14d, %edx
	callq	_h2o_buffer_append
LBB0_6:
	movq	%r15, %rdi
	callq	_h2o_linklist_is_linked
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_h2o_linklist_insert
	movq	(%rbx), %rdi
	callq	_request_write
LBB0_8:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_h2o_socket_buffer_prototype,4,2 ## @h2o_socket_buffer_prototype
	.no_dead_strip	_do_write_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_write_req
_do_write_req:                          ; @do_write_req
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #32]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	cbz	w21, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19, #24]
LBB0_2:
	mov	x22, x19
	ldr	x8, [x22, #16]!
	sub	x21, x22, #8
	cbz	x8, LBB0_8
; %bb.3:
	cbz	w20, LBB0_5
LBB0_4:
	lsr	x1, x20, #32
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x20
	bl	_h2o_buffer_append
LBB0_5:
	mov	x0, x21
	bl	_h2o_linklist_is_linked
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	x0, [x19]
	mov	x1, x21
	bl	_h2o_linklist_insert
	ldr	x0, [x19]
	bl	_request_write
LBB0_7:
	mov	w0, #0
	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
LBB0_8:
Lloh0:
	adrp	x1, _h2o_socket_buffer_prototype@GOTPAGE
Lloh1:
	ldr	x1, [x1, _h2o_socket_buffer_prototype@GOTPAGEOFF]
	mov	x0, x22
	bl	_h2o_buffer_init
	cbnz	w20, LBB0_4
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_h2o_socket_buffer_prototype,4,2 ; @h2o_socket_buffer_prototype
	.no_dead_strip	_do_write_req
.subsections_via_symbols
