	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ws_recv_request                ## -- Begin function ws_recv_request
	.p2align	4, 0x90
_ws_recv_request:                       ## @ws_recv_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	8(%rax), %rdx
	subq	%rdi, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_strnstr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_ws_read_http_request
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_STATE_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_STATE_READ_HTTP_HEADERS@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r\n"

	.comm	_STATE_ERROR,4,2                ## @STATE_ERROR
	.comm	_STATE_READ_HTTP_HEADERS,4,2    ## @STATE_READ_HTTP_HEADERS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ws_recv_request                ; -- Begin function ws_recv_request
	.p2align	2
_ws_recv_request:                       ; @ws_recv_request
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldp	x0, x8, [x8]
	sub	x2, x8, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strnstr
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_ws_read_http_request
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _STATE_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STATE_ERROR@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	w0, #-1
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x8, _STATE_READ_HTTP_HEADERS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _STATE_READ_HTTP_HEADERS@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r\n"

	.comm	_STATE_ERROR,4,2                ; @STATE_ERROR
	.comm	_STATE_READ_HTTP_HEADERS,4,2    ; @STATE_READ_HTTP_HEADERS
.subsections_via_symbols
