	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_connection_ready
_on_connection_ready:                   ## @on_connection_ready
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_h2o_iovec_init
	movq	%rax, -240(%rbp)
	movq	%rdx, -232(%rbp)
	movl	$0, -120(%rbp)
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_h2o_iovec_init
	movq	%rax, -224(%rbp)
	movq	%rdx, -216(%rbp)
	leaq	-240(%rbp), %rax
	movq	%rax, -208(%rbp)
	leaq	-120(%rbp), %rax
	movq	%rax, -200(%rbp)
	leaq	-224(%rbp), %rax
	movq	%rax, -192(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -184(%rbp)
	movq	$0, -168(%rbp)
	leaq	8(%rbx), %rdi
	leaq	80(%rbx), %r10
	movl	92(%rbx), %eax
	leaq	-208(%rbp), %r11
	leaq	-112(%rbp), %r14
	leaq	-136(%rbp), %rdx
	leaq	-116(%rbp), %rcx
	leaq	-160(%rbp), %r8
	leaq	-152(%rbp), %r9
	xorl	%esi, %esi
	pushq	%rax
	pushq	%r11
	pushq	%r10
	pushq	%r14
	callq	*56(%rbx)
	addq	$32, %rsp
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	-184(%rbp), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.4:
	movups	(%rax), %xmm0
	movaps	%xmm0, -96(%rbp)
	movl	$1, %r13d
	jmp	LBB0_5
LBB0_1:
	movq	%rbx, %rdi
	callq	_close_client
	jmp	LBB0_16
LBB0_3:
	xorl	%r13d, %r13d
LBB0_5:
	movl	-116(%rbp), %ecx
	movq	-192(%rbp), %rax
	movl	(%rax), %r8d
	movq	-160(%rbp), %r9
	movq	-136(%rbp), %rsi
	movq	-128(%rbp), %rdx
	subq	$8, %rsp
	movq	%rbx, %rdi
	pushq	-152(%rbp)
	callq	_build_request
	addq	$16, %rsp
	leaq	1(%r13), %r14
	movq	%r13, %rcx
	shlq	$4, %rcx
	movq	%rax, -96(%rbp,%rcx)
	movq	%rdx, -88(%rbp,%rcx)
	movq	%rax, 24(%rbx)
	movq	-200(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	-136(%rbp), %r15
	movq	-128(%rbp), %r12
	leaq	L_.str(%rip), %rdi
	callq	_H2O_STRLIT
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_h2o_memis
	movl	%eax, 88(%rbx)
	cmpq	$0, 80(%rbx)
	je	LBB0_10
## %bb.6:
	cmpq	$0, -104(%rbp)
	je	LBB0_9
## %bb.7:
	leaq	72(%rbx), %r15
	movq	_h2o_socket_buffer_prototype@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_h2o_buffer_init
	movq	-112(%rbp), %rdx
	movq	-104(%rbp), %rsi
	movq	%r15, %rdi
	callq	_h2o_buffer_try_append
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movq	(%rbx), %rdi
	movq	_on_req_body_done@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_10:
	cmpl	$0, 68(%rbx)
	movq	-104(%rbp), %rax
	je	LBB0_12
## %bb.11:
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%r14, %rax
	shlq	$4, %rax
	leaq	(%rax,%rbp), %rsi
	addq	$-96, %rsi
	movq	-112(%rbp), %rdx
	movq	-104(%rbp), %rcx
	leaq	-144(%rbp), %r8
	movq	%rbx, %rdi
	callq	_encode_chunk
	addq	%rax, %r14
	movq	-144(%rbp), %rax
	movq	%rax, 32(%rbx)
	jmp	LBB0_14
LBB0_8:
	movq	(%rbx), %rdi
	movq	_h2o_httpclient_error_internal@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_on_whole_request_sent
	jmp	LBB0_16
LBB0_12:
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	orq	$2, %r13
	shlq	$4, %r14
	movups	-112(%rbp), %xmm0
	movups	%xmm0, -96(%rbp,%r14)
	movq	-112(%rbp), %rax
	movq	%rax, 32(%rbx)
	movq	%r13, %r14
LBB0_14:
	movq	(%rbx), %rdi
	movq	_on_whole_request_sent@GOTPCREL(%rip), %rcx
LBB0_15:
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdx
	callq	_h2o_socket_write
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_on_send_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	20(%rbx), %rdx
	movl	%eax, 20(%rbx)
	movl	(%rcx), %edi
	movl	4(%rcx), %esi
	callq	_h2o_timer_link
	movq	_STREAM_STATE_BODY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_h2o_gettimeofday
	movl	%eax, 16(%rbx)
	movq	(%rbx), %rdi
	movq	_on_head@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_h2o_socket_read_start
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HEAD"

	.comm	_h2o_socket_buffer_prototype,4,2 ## @h2o_socket_buffer_prototype
	.comm	_h2o_httpclient_error_internal,4,2 ## @h2o_httpclient_error_internal
	.comm	_on_send_timeout,4,2            ## @on_send_timeout
	.comm	_STREAM_STATE_BODY,4,2          ## @STREAM_STATE_BODY
	.comm	_on_head,4,2                    ## @on_head
	.no_dead_strip	_on_connection_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_connection_ready
_on_connection_ready:                   ; @on_connection_ready
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	x0, #0
	mov	w1, #0
	bl	_h2o_iovec_init
	stp	x0, x1, [x29, #-128]
	stur	wzr, [x29, #-132]
	mov	x0, #0
	mov	w1, #0
	bl	_h2o_iovec_init
	stp	x0, x1, [sp, #136]
	sub	x8, x29, #128
	sub	x9, x29, #132
	stp	x8, x9, [sp, #88]
	add	x8, sp, #136
	stp	x8, xzr, [sp, #104]
	stp	xzr, xzr, [sp, #120]
	add	x0, x19, #8
	ldr	x8, [x19, #56]
	add	x7, x19, #80
	ldr	w9, [x19, #92]
	str	w9, [sp, #8]
	add	x9, sp, #88
	str	x9, [sp]
	add	x2, sp, #72
	add	x3, sp, #68
	add	x4, sp, #56
	add	x5, sp, #48
	add	x6, sp, #32
	mov	x1, #0
	blr	x8
	str	x0, [x19, #48]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [sp, #112]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_4
; %bb.2:
	ldr	q0, [x8]
	stur	q0, [x29, #-112]
	mov	w23, #1
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_close_client
	b	LBB0_17
LBB0_4:
	mov	x23, #0
LBB0_5:
	ldr	w3, [sp, #68]
	ldr	x8, [sp, #104]
	ldr	w4, [x8]
	ldp	x6, x5, [sp, #48]
	ldp	x1, x2, [sp, #72]
	mov	x0, x19
	bl	_build_request
	add	x20, x23, #1
	sub	x8, x29, #112
	add	x8, x8, x23, lsl #4
	stp	x0, x1, [x8]
	str	x0, [x19, #24]
	ldr	x8, [sp, #96]
	ldr	w8, [x8]
	str	w8, [x19, #68]
	ldp	x22, x21, [sp, #72]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_H2O_STRLIT
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_h2o_memis
	str	w0, [x19, #88]
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_8
; %bb.7:
	add	x21, x19, #72
Lloh5:
	adrp	x1, _h2o_socket_buffer_prototype@GOTPAGE
Lloh6:
	ldr	x1, [x1, _h2o_socket_buffer_prototype@GOTPAGEOFF]
	mov	x0, x21
	bl	_h2o_buffer_init
	ldp	x2, x1, [sp, #32]
	mov	x0, x21
	bl	_h2o_buffer_try_append
	cbz	w0, LBB0_11
LBB0_8:
	ldr	x0, [x19]
Lloh7:
	adrp	x3, _on_req_body_done@GOTPAGE
Lloh8:
	ldr	x3, [x3, _on_req_body_done@GOTPAGEOFF]
	b	LBB0_16
LBB0_9:
	ldr	w9, [x19, #68]
	ldr	x8, [sp, #40]
	cbz	w9, LBB0_12
; %bb.10:
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	sub	x8, x29, #112
	add	x1, x8, x20, lsl #4
	ldp	x2, x3, [sp, #32]
	add	x4, sp, #24
	mov	x0, x19
	bl	_encode_chunk
	add	x20, x0, x20
	ldr	x8, [sp, #24]
	b	LBB0_14
LBB0_11:
	ldr	x0, [x19]
Lloh9:
	adrp	x8, _h2o_httpclient_error_internal@GOTPAGE
Lloh10:
	ldr	x8, [x8, _h2o_httpclient_error_internal@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_on_whole_request_sent
	b	LBB0_17
LBB0_12:
	cbz	x8, LBB0_15
; %bb.13:
	ldr	q0, [sp, #32]
	sub	x8, x29, #112
	str	q0, [x8, x20, lsl #4]
	orr	x20, x23, #0x2
	ldr	x8, [sp, #32]
LBB0_14:
	str	x8, [x19, #32]
LBB0_15:
	ldr	x0, [x19]
Lloh12:
	adrp	x3, _on_whole_request_sent@GOTPAGE
Lloh13:
	ldr	x3, [x3, _on_whole_request_sent@GOTPAGEOFF]
LBB0_16:
	sub	x1, x29, #112
	mov	x2, x20
	bl	_h2o_socket_write
	ldp	x8, x9, [x19]
	ldr	w8, [x8]
	str	w8, [x19, #40]
Lloh14:
	adrp	x8, _on_send_timeout@GOTPAGE
Lloh15:
	ldr	x8, [x8, _on_send_timeout@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	mov	x2, x19
	str	w8, [x2, #20]!
	ldp	w0, w1, [x9]
	bl	_h2o_timer_link
Lloh17:
	adrp	x8, _STREAM_STATE_BODY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _STREAM_STATE_BODY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #64]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_h2o_gettimeofday
	str	w0, [x19, #16]
	ldr	x0, [x19]
Lloh20:
	adrp	x8, _on_head@GOTPAGE
Lloh21:
	ldr	x8, [x8, _on_head@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_h2o_socket_read_start
LBB0_17:
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD"

	.comm	_h2o_socket_buffer_prototype,4,2 ; @h2o_socket_buffer_prototype
	.comm	_h2o_httpclient_error_internal,4,2 ; @h2o_httpclient_error_internal
	.comm	_on_send_timeout,4,2            ; @on_send_timeout
	.comm	_STREAM_STATE_BODY,4,2          ; @STREAM_STATE_BODY
	.comm	_on_head,4,2                    ; @on_head
	.no_dead_strip	_on_connection_ready
.subsections_via_symbols
