	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ws_parse_request
_ws_parse_request:                      ## @ws_parse_request
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_ws_get_method
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r12
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_strlen
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_7
LBB0_3:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movslq	%r14d, %rax
	addq	%rax, %rbx
	incq	%rbx
	movq	%r15, %r13
	subq	%rbx, %r13
	testl	%r13d, %r13d
	jle	LBB0_7
## %bb.4:
	leal	1(%r13), %edi
	callq	_xmalloc
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_strncpy
	movslq	%r13d, %rax
	movb	$0, (%r14,%rax)
	movq	%r12, %rdi
	callq	_xstrdup
	movl	%eax, %edi
	callq	_strtoupper
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	incq	%r15
	movq	%r15, %rdi
	callq	_xstrdup
	movl	%eax, %edi
	callq	_strtoupper
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_8
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HTTP/1.0"

L_.str.1:                               ## @.str.1
	.asciz	" HTTP/1.1"

	.no_dead_strip	_ws_parse_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ws_parse_request
_ws_parse_request:                      ; @ws_parse_request
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	bl	_ws_get_method
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	bl	_strlen
	mov	x24, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_strstr
	mov	x22, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_strstr
	mov	x22, x0
	cbz	x0, LBB0_5
LBB0_3:
	add	x8, x23, w24, sxtw
	add	x25, x8, #1
	sub	x24, x22, x25
	cmp	w24, #1
	b.lt	LBB0_5
; %bb.4:
	add	w0, w24, #1
	bl	_xmalloc
	mov	x23, x0
	mov	x1, x25
	mov	x2, x24
	bl	_strncpy
	strb	wzr, [x23, w24, sxtw]
	mov	x0, x21
	bl	_xstrdup
	bl	_strtoupper
	str	x0, [x20]
	add	x0, x22, #1
	bl	_xstrdup
	bl	_strtoupper
	str	x0, [x19]
	b	LBB0_6
LBB0_5:
	mov	x23, #0
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HTTP/1.0"

l_.str.1:                               ; @.str.1
	.asciz	" HTTP/1.1"

	.no_dead_strip	_ws_parse_request
.subsections_via_symbols
