	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_whole_request_sent
_on_whole_request_sent:                 ## @on_whole_request_sent
	.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, %rbx
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_h2o_timer_unlink
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.8:
	movq	_h2o_httpclient_error_io@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_on_error                       ## TAILCALL
LBB0_1:
	cmpq	$0, 48(%r14)
	je	LBB0_4
## %bb.2:
	movq	$0, 48(%r14)
	leaq	L_.str(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, %edi
	callq	_h2o_iovec_init
	movq	%rax, -24(%rbp)
	addl	%eax, 24(%r14)
	addl	%eax, 20(%r14)
	movl	40(%r14), %edi
	leaq	_on_whole_request_sent(%rip), %rcx
	leaq	-24(%rbp), %rsi
	movl	$1, %edx
	callq	_h2o_socket_write
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	$129, 32(%r14)
	movq	8(%r14), %rax
	movl	4(%rax), %edi
	callq	_h2o_gettimeofday
	movl	%eax, 16(%r14)
	movl	36(%r14), %eax
	cmpl	$129, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.6:
	movq	_on_head_first_byte_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	8(%r14), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	%r14, %rdx
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_h2o_timer_link                 ## TAILCALL
LBB0_7:
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_close_client                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_h2o_httpclient_error_io,4,2    ## @h2o_httpclient_error_io
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0\r\n\r\n"

	.comm	_on_head_first_byte_timeout,4,2 ## @on_head_first_byte_timeout
	.no_dead_strip	_on_whole_request_sent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_whole_request_sent
_on_whole_request_sent:                 ; @on_whole_request_sent
	.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]
	mov	x0, x19
	bl	_h2o_timer_unlink
	cbz	x20, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _h2o_httpclient_error_io@GOTPAGE
Lloh1:
	ldr	x8, [x8, _h2o_httpclient_error_io@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	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	_on_error
LBB0_2:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_5
; %bb.3:
	str	xzr, [x19, #48]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_H2O_STRLIT
	bl	_h2o_iovec_init
	str	x0, [sp, #8]
	ldur	d0, [x19, #20]
	dup.2s	v1, w0
	add.2s	v0, v0, v1
	stur	d0, [x19, #20]
	ldr	w0, [x19, #40]
Lloh5:
	adrp	x3, _on_whole_request_sent@PAGE
Lloh6:
	add	x3, x3, _on_whole_request_sent@PAGEOFF
	add	x1, sp, #8
	mov	w2, #1
	bl	_h2o_socket_write
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	mov	w8, #129
	str	w8, [x19, #32]
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	bl	_h2o_gettimeofday
	str	w0, [x19, #16]
	ldr	w8, [x19, #36]
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.6:
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.7:
Lloh7:
	adrp	x8, _on_head_first_byte_timeout@GOTPAGE
Lloh8:
	ldr	x8, [x8, _on_head_first_byte_timeout@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x8, [x19, #8]
	ldp	w1, w0, [x8]
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_h2o_timer_link
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	_close_client
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_h2o_httpclient_error_io,4,2    ; @h2o_httpclient_error_io
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0\r\n\r\n"

	.comm	_on_head_first_byte_timeout,4,2 ; @on_head_first_byte_timeout
	.no_dead_strip	_on_whole_request_sent
.subsections_via_symbols
