	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_send_complete
_on_send_complete:                      ## @on_send_complete
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	leaq	56(%rbx), %rax
	xorl	%edi, %edi
	cmpq	%rax, 32(%rbx)
	sete	%dil
	callq	_assert
	movq	72(%rbx), %rax
	movl	(%rax), %edi
	callq	_h2o_gettimeofday
	movl	%eax, 24(%rbx)
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	movq	$0, 16(%rbx)
LBB0_2:
	movq	_OSTREAM_STATE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	cmpq	$0, (%rbx)
	je	LBB0_3
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.5:
	cmpq	$0, 48(%rbx)
	je	LBB0_2
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	callq	_H2O_STRLIT
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_h2o_build_server_timing_trailer
	movq	%rax, -24(%rbp)
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:
	movl	64(%rbx), %edi
	movq	_on_send_complete_post_trailers@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %rsi
	movl	$1, %edx
	callq	_h2o_socket_write
	jmp	LBB0_8
LBB0_3:
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cleanup_connection             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"server-timing: "

L_.str.1:                               ## @.str.1
	.asciz	"\r\n\r\n"

	.comm	_on_send_complete_post_trailers,4,2 ## @on_send_complete_post_trailers
	.comm	_OSTREAM_STATE_DONE,4,2         ## @OSTREAM_STATE_DONE
	.no_dead_strip	_on_send_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_send_complete
_on_send_complete:                      ; @on_send_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	ldr	x19, [x0]
	ldr	x8, [x19, #32]
	add	x9, x19, #56
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #72]
	ldr	w0, [x8]
	bl	_h2o_gettimeofday
	str	w0, [x19, #24]
	cbz	x20, LBB0_4
; %bb.1:
	str	xzr, [x19, #16]
LBB0_2:
Lloh0:
	adrp	x8, _OSTREAM_STATE_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSTREAM_STATE_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	ldr	x8, [x19]
	cbz	x8, LBB0_8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.5:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_2
; %bb.6:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_H2O_STRLIT
	mov	x20, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_H2O_STRLIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_h2o_build_server_timing_trailer
	str	x0, [sp, #8]
	cbz	x0, LBB0_2
; %bb.7:
	ldr	w0, [x19, #64]
Lloh7:
	adrp	x8, _on_send_complete_post_trailers@GOTPAGE
Lloh8:
	ldr	x8, [x8, _on_send_complete_post_trailers@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	w2, #1
	bl	_h2o_socket_write
	b	LBB0_3
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_cleanup_connection
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"server-timing: "

l_.str.1:                               ; @.str.1
	.asciz	"\r\n\r\n"

	.comm	_on_send_complete_post_trailers,4,2 ; @on_send_complete_post_trailers
	.comm	_OSTREAM_STATE_DONE,4,2         ; @OSTREAM_STATE_DONE
	.no_dead_strip	_on_send_complete
.subsections_via_symbols
