	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function expect_preface
_expect_preface:                        ## @expect_preface
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rax
	movq	_CONNECTION_PREFACE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	cmpq	%rax, %rdx
	jbe	LBB0_2
## %bb.1:
	movq	_H2O_HTTP2_ERROR_INCOMPLETE@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_2:
	movq	%rdi, %r15
	movl	8(%rbx), %eax
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_H2O_HTTP2_ERROR_PROTOCOL_CLOSE_IMMEDIATELY@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_4:
	leaq	16(%r15), %r14
	movq	_SERVER_PREFACE@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_h2o_buffer_reserve
	movl	8(%r12), %esi
	movq	(%r12), %rdx
	movl	%eax, %edi
	callq	_memcpy
	movl	(%r12), %eax
	movq	16(%r15), %rcx
	addl	%eax, (%rcx)
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_h2o_http2_encode_origin_frame
LBB0_6:
	movq	%r15, %rdi
	callq	_h2o_http2_conn_request_write
	movq	_expect_default@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_7:
	movq	(%rbx), %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONNECTION_PREFACE,16,3        ## @CONNECTION_PREFACE
	.comm	_H2O_HTTP2_ERROR_INCOMPLETE,8,3 ## @H2O_HTTP2_ERROR_INCOMPLETE
	.comm	_H2O_HTTP2_ERROR_PROTOCOL_CLOSE_IMMEDIATELY,8,3 ## @H2O_HTTP2_ERROR_PROTOCOL_CLOSE_IMMEDIATELY
	.comm	_SERVER_PREFACE,16,3            ## @SERVER_PREFACE
	.comm	_expect_default,4,2             ## @expect_default
	.no_dead_strip	_expect_preface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expect_preface
_expect_preface:                        ; @expect_preface
	.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	x8, x2
Lloh0:
	adrp	x9, _CONNECTION_PREFACE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CONNECTION_PREFACE@GOTPAGEOFF]
	ldr	x2, [x9]
	cmp	x2, x8
	b.ls	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _H2O_HTTP2_ERROR_INCOMPLETE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_INCOMPLETE@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x19, x0
	ldr	w8, [x9, #8]
	mov	x0, x1
	mov	x1, x8
	bl	_memcmp
	cbz	x0, LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _H2O_HTTP2_ERROR_PROTOCOL_CLOSE_IMMEDIATELY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_PROTOCOL_CLOSE_IMMEDIATELY@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	add	x20, x19, #16
Lloh6:
	adrp	x21, _SERVER_PREFACE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _SERVER_PREFACE@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x0, x20
	bl	_h2o_buffer_reserve
	ldr	w1, [x21, #8]
	ldr	x2, [x21]
	bl	_memcpy
	ldr	w9, [x21]
	ldp	x8, x10, [x19, #8]
	ldr	w11, [x10]
	add	w9, w11, w9
	str	w9, [x10]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_h2o_http2_encode_origin_frame
LBB0_6:
	mov	x0, x19
	bl	_h2o_http2_conn_request_write
Lloh8:
	adrp	x8, _expect_default@GOTPAGE
Lloh9:
	ldr	x8, [x8, _expect_default@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh11:
	adrp	x8, _CONNECTION_PREFACE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CONNECTION_PREFACE@GOTPAGEOFF]
LBB0_7:
	ldr	x0, [x8]
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CONNECTION_PREFACE,16,3        ; @CONNECTION_PREFACE
	.comm	_H2O_HTTP2_ERROR_INCOMPLETE,8,3 ; @H2O_HTTP2_ERROR_INCOMPLETE
	.comm	_H2O_HTTP2_ERROR_PROTOCOL_CLOSE_IMMEDIATELY,8,3 ; @H2O_HTTP2_ERROR_PROTOCOL_CLOSE_IMMEDIATELY
	.comm	_SERVER_PREFACE,16,3            ; @SERVER_PREFACE
	.comm	_expect_default,4,2             ; @expect_default
	.no_dead_strip	_expect_preface
.subsections_via_symbols
