	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_req_body_done
_on_req_body_done:                      ## @on_req_body_done
	.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	%rsi, %r15
	movq	(%rdi), %rbx
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	leaq	32(%rbx), %r14
	testq	%r15, %r15
	jne	LBB0_6
## %bb.2:
	cmpq	$0, 8(%rbx)
	jne	LBB0_3
## %bb.4:
	movq	_H2O_SEND_STATE_IN_PROGRESS@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_H2O_SEND_STATE_FINAL@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %edx
	leaq	16(%rbx), %rdi
	movl	(%rax), %esi
	callq	*40(%rbx)
	movq	32(%rbx), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_h2o_buffer_consume
LBB0_7:
	testq	%r15, %r15
	je	LBB0_10
## %bb.8:
	movl	(%rbx), %edi
	movq	%r15, %rsi
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_on_whole_request_sent          ## TAILCALL
LBB0_10:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.15:
	leaq	16(%rbx), %r14
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_h2o_iovec_init
	movq	8(%rbx), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_write_req                   ## TAILCALL
LBB0_12:
	cmpq	$0, 8(%rbx)
	je	LBB0_14
## %bb.13:
	movl	(%rbx), %edi
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_SEND_STATE_FINAL,4,2       ## @H2O_SEND_STATE_FINAL
	.comm	_H2O_SEND_STATE_IN_PROGRESS,4,2 ## @H2O_SEND_STATE_IN_PROGRESS
	.no_dead_strip	_on_req_body_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_req_body_done
_on_req_body_done:                      ; @on_req_body_done
	.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	x19, x1
	ldr	x21, [x0]
	mov	x20, x21
	ldr	x8, [x20, #32]!
	cbz	x8, LBB0_4
; %bb.1:
	cbnz	x19, LBB0_3
; %bb.2:
	ldr	x9, [x21, #8]
Lloh0:
	adrp	x10, _H2O_SEND_STATE_FINAL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _H2O_SEND_STATE_FINAL@GOTPAGEOFF]
Lloh2:
	adrp	x11, _H2O_SEND_STATE_IN_PROGRESS@GOTPAGE
Lloh3:
	ldr	x11, [x11, _H2O_SEND_STATE_IN_PROGRESS@GOTPAGEOFF]
	cmp	x9, #0
	csel	x9, x11, x10, eq
	ldr	w2, [x9]
	ldr	x9, [x21, #40]
	add	x0, x21, #16
	ldr	w1, [x8]
	blr	x9
	ldr	x8, [x21, #32]
LBB0_3:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_h2o_buffer_consume
LBB0_4:
	cbz	x19, LBB0_7
; %bb.5:
	ldr	w0, [x21]
	mov	x1, x19
LBB0_6:
	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
	b	_on_whole_request_sent
LBB0_7:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_10
; %bb.8:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
	add	x19, x21, #16
	mov	x0, #0
	mov	w1, #0
	bl	_h2o_iovec_init
	mov	x1, x0
	ldr	x2, [x21, #8]
	mov	x0, 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
	b	_do_write_req
LBB0_10:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	w0, [x21]
	mov	x1, #0
	b	LBB0_6
LBB0_12:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_SEND_STATE_FINAL,4,2       ; @H2O_SEND_STATE_FINAL
	.comm	_H2O_SEND_STATE_IN_PROGRESS,4,2 ; @H2O_SEND_STATE_IN_PROGRESS
	.no_dead_strip	_on_req_body_done
.subsections_via_symbols
