	.file	"extr_http2client.c_do_write_req.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	do_write_req, @function
do_write_req:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	QWORD PTR 32[rdi], 0
	mov	rbx, rdi
	setne	dil
	movzx	edi, dil
	call	assert@PLT
	test	r12d, r12d
	je	.L2
	mov	DWORD PTR 24[rbx], 1
.L2:
	cmp	QWORD PTR 16[rbx], 0
	je	.L11
.L3:
	test	ebp, ebp
	jne	.L12
	lea	rbp, 8[rbx]
	mov	rdi, rbp
	call	h2o_linklist_is_linked@PLT
	test	eax, eax
	je	.L13
.L5:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rsi, rbp
	lea	rdi, 16[rbx]
	mov	edx, ebp
	sar	rsi, 32
	lea	rbp, 8[rbx]
	call	h2o_buffer_append@PLT
	mov	rdi, rbp
	call	h2o_linklist_is_linked@PLT
	test	eax, eax
	jne	.L5
.L13:
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, rbp
	call	h2o_linklist_insert@PLT
	mov	rdi, QWORD PTR [rbx]
	call	request_write@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rdi, 16[rbx]
	lea	rsi, h2o_socket_buffer_prototype[rip]
	call	h2o_buffer_init@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	do_write_req, .-do_write_req
	.comm	h2o_socket_buffer_prototype,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_http2client.c_do_write_req.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_write_req, %function
do_write_req:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r3
	sub	sp, sp, #8
	add	r3, sp, #8
	mov	r4, r0
	ldr	r0, [r0, #16]
	stmdb	r3, {r1, r2}
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r6, [sp]
	bl	assert
	cmp	r5, #0
	movne	r3, #1
	strne	r3, [r4, #12]
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L14
.L3:
	cmp	r6, #0
	bne	.L15
.L4:
	add	r5, r4, #4
	mov	r0, r5
	bl	h2o_linklist_is_linked
	cmp	r0, #0
	beq	.L16
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L15:
	mov	r2, r6
	ldr	r1, [sp, #4]
	add	r0, r4, #8
	bl	h2o_buffer_append
	b	.L4
.L16:
	mov	r1, r5
	ldr	r0, [r4]
	bl	h2o_linklist_insert
	ldr	r0, [r4]
	bl	request_write
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r1, .L17
	add	r0, r4, #8
	bl	h2o_buffer_init
	b	.L3
.L18:
	.align	2
.L17:
	.word	h2o_socket_buffer_prototype
	.size	do_write_req, .-do_write_req
	.comm	h2o_socket_buffer_prototype,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
