	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_is_websocket_handshake     ## -- Begin function h2o_is_websocket_handshake
	.p2align	4, 0x90
_h2o_is_websocket_handshake:            ## @h2o_is_websocket_handshake
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	$0, (%rsi)
	movl	24(%rdi), %r15d
	movl	28(%rdi), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_h2o_memis
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	16(%r12), %r15
	testq	%r15, %r15
	je	LBB0_6
## %bb.2:
	movl	8(%r12), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_H2O_STRLIT
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_h2o_lcstris
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	callq	_H2O_STRLIT
	movl	$-1, %r15d
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$-1, %edx
	callq	_h2o_find_header_by_str
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.4:
	movq	(%r12), %rcx
	cltq
	shlq	$4, %rax
	cmpl	$24, (%rcx,%rax)
	jne	LBB0_7
## %bb.5:
	movq	8(%rcx,%rax), %rax
	movq	%rax, (%r14)
LBB0_6:
	xorl	%r15d, %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GET"

L_.str.1:                               ## @.str.1
	.asciz	"websocket"

L_.str.2:                               ## @.str.2
	.asciz	"sec-websocket-key"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_is_websocket_handshake     ; -- Begin function h2o_is_websocket_handshake
	.p2align	2
_h2o_is_websocket_handshake:            ; @h2o_is_websocket_handshake
	.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
	mov	x20, x0
	str	xzr, [x1]
	ldp	w22, w21, [x0, #24]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_H2O_STRLIT
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_h2o_memis
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x21, [x20, #16]
	cbz	x21, LBB0_6
; %bb.2:
	ldr	w22, [x20, #8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_H2O_STRLIT
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_h2o_lcstris
	cbz	x0, LBB0_8
; %bb.3:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_H2O_STRLIT
	mov	x1, x0
	mov	x0, x20
	mov	w2, #-1
	bl	_h2o_find_header_by_str
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.4:
	mov	x8, x0
	ldr	x9, [x20]
	sbfiz	x10, x8, #4, #32
	ldr	w10, [x9, x10]
	cmp	w10, #24
	b.ne	LBB0_7
; %bb.5:
	mov	w0, #0
	sxtw	x8, w8
	add	x8, x9, x8, lsl #4
	ldr	x8, [x8, #8]
	str	x8, [x19]
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GET"

l_.str.1:                               ; @.str.1
	.asciz	"websocket"

l_.str.2:                               ; @.str.2
	.asciz	"sec-websocket-key"

.subsections_via_symbols
