	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ws_unmask_payload
_ws_unmask_payload:                     ## @ws_unmask_payload
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, %r8d
	subl	%edx, %r8d
	jle	LBB0_24
## %bb.1:
	movslq	%edx, %r9
	movl	%edx, %r14d
	notl	%r14d
	addl	%esi, %r14d
	xorl	%eax, %eax
	cmpl	$7, %r14d
	jb	LBB0_19
## %bb.2:
	cmpl	$3, %r14d
	ja	LBB0_19
## %bb.3:
	leaq	(%rdi,%r9), %r10
	leaq	(%r14,%rcx), %rbx
	incq	%rbx
	cmpq	%rbx, %r10
	jae	LBB0_5
## %bb.4:
	leaq	(%r9,%r14), %rbx
	addq	%rdi, %rbx
	incq	%rbx
	cmpq	%rcx, %rbx
	ja	LBB0_19
LBB0_5:
	leaq	1(%r14), %r11
	movabsq	$8589934560, %rax               ## imm = 0x1FFFFFFE0
	cmpl	$31, %r14d
	jae	LBB0_10
## %bb.6:
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_10:
	movq	%r11, %r14
	andq	%rax, %r14
	leaq	-32(%r14), %rbx
	movq	%rbx, %r15
	shrq	$5, %r15
	incq	%r15
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.12:
	movq	%r15, %r12
	andq	$-2, %r12
	movups	(%rcx), %xmm0
	movups	16(%rcx), %xmm1
	leaq	(%r9,%rdi), %r13
	addq	$48, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movups	-48(%r13,%rbx), %xmm2
	movups	-32(%r13,%rbx), %xmm3
	movups	-16(%r13,%rbx), %xmm4
	movups	(%r13,%rbx), %xmm5
	xorps	%xmm0, %xmm2
	xorps	%xmm1, %xmm3
	movups	%xmm2, -48(%r13,%rbx)
	movups	%xmm3, -32(%r13,%rbx)
	xorps	%xmm0, %xmm4
	xorps	%xmm1, %xmm5
	movups	%xmm4, -16(%r13,%rbx)
	movups	%xmm5, (%r13,%rbx)
	addq	$64, %rbx
	addq	$-2, %r12
	jne	LBB0_13
	jmp	LBB0_14
LBB0_11:
	xorl	%ebx, %ebx
LBB0_14:
	testb	$1, %r15b
	je	LBB0_16
## %bb.15:
	addq	%r9, %rbx
	movups	(%rcx), %xmm0
	movups	16(%rcx), %xmm1
	movups	(%rdi,%rbx), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%rdi,%rbx), %xmm0
	xorps	%xmm1, %xmm0
	movups	%xmm2, (%rdi,%rbx)
	movups	%xmm0, 16(%rdi,%rbx)
LBB0_16:
	cmpq	%r14, %r11
	je	LBB0_24
## %bb.17:
	testb	$24, %r11b
	je	LBB0_18
LBB0_7:
	addq	$24, %rax
	andq	%r11, %rax
	addq	%rax, %r9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rbx
	xorq	%rbx, (%r10,%r14)
	addq	$8, %r14
	cmpq	%r14, %rax
	jne	LBB0_8
## %bb.9:
	cmpq	%rax, %r11
	jne	LBB0_19
	jmp	LBB0_24
LBB0_18:
	addq	%r14, %r9
	movl	%r14d, %eax
LBB0_19:
	movl	%eax, %r11d
	notl	%r11d
	addl	%esi, %r11d
	subl	%eax, %esi
	subl	%edx, %esi
	testb	$1, %sil
	je	LBB0_21
## %bb.20:
	movl	%eax, %esi
	andl	$3, %esi
	movb	(%rcx,%rsi), %bl
	xorb	%bl, (%rdi,%r9)
	incq	%r9
	incl	%eax
LBB0_21:
	cmpl	%edx, %r11d
	je	LBB0_24
## %bb.22:
	leaq	(%r9,%rdi), %rdx
	incq	%rdx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %esi
	andl	$3, %esi
	movzbl	(%rcx,%rsi), %ebx
	xorb	%bl, -1(%rdx)
	leal	1(%rax), %esi
	andl	$3, %esi
	movzbl	(%rcx,%rsi), %ebx
	xorb	%bl, (%rdx)
	addl	$2, %eax
	addq	$2, %rdx
	cmpl	%eax, %r8d
	jne	LBB0_23
LBB0_24:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ws_unmask_payload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ws_unmask_payload
_ws_unmask_payload:                     ; @ws_unmask_payload
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
	subs	w8, w1, w2
	b.le	LBB0_8
; %bb.1:
	sxtw	x9, w2
	mvn	w10, w2
	add	w11, w10, w1
	cmp	w11, #7
	b.lo	LBB0_5
; %bb.2:
	cmp	w11, #3
	b.hi	LBB0_5
; %bb.3:
	mvn	w10, w2
	add	w10, w10, w1
	add	x12, x10, x3
	add	x12, x12, #1
	add	x13, x0, x9
	cmp	x13, x12
	b.hs	LBB0_9
; %bb.4:
	add	x10, x9, x10
	add	x10, x10, x0
	add	x10, x10, #1
	cmp	x10, x3
	b.ls	LBB0_9
LBB0_5:
	mov	w12, #0
	mov	x13, x9
LBB0_6:
	add	x9, x0, x13
                                        ; kill: def $w12 killed $w12 killed $x12 def $x12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	and	x10, x12, #0x3
	ldrb	w10, [x3, x10]
	ldrb	w11, [x9]
	eor	w10, w11, w10
	strb	w10, [x9], #1
	add	w12, w12, #1
	cmp	w8, w12
	b.ne	LBB0_7
LBB0_8:
	ret
LBB0_9:
	add	x10, x11, #1
	cmp	w11, #63
	b.hs	LBB0_11
; %bb.10:
	mov	x11, #0
	b	LBB0_15
LBB0_11:
	and	x11, x10, #0x1ffffffc0
	ldp	q0, q1, [x3]
	ldp	q2, q3, [x3, #32]
	add	x12, x9, x0
	add	x12, x12, #32
	mov	x13, x11
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x12, #-32]
	ldp	q6, q7, [x12]
	eor.16b	v4, v4, v0
	eor.16b	v5, v5, v1
	eor.16b	v6, v6, v2
	eor.16b	v7, v7, v3
	stp	q4, q5, [x12, #-32]
	stp	q6, q7, [x12], #64
	subs	x13, x13, #64
	b.ne	LBB0_12
; %bb.13:
	cmp	x10, x11
	b.eq	LBB0_8
; %bb.14:
	tst	x10, #0x38
	b.eq	LBB0_18
LBB0_15:
	and	x12, x10, #0x1fffffff8
	add	x13, x12, x9
	sub	x14, x11, x12
	add	x9, x11, x9
	add	x9, x0, x9
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x3]
	ldr	d1, [x9]
	eor.8b	v0, v1, v0
	str	d0, [x9], #8
	adds	x14, x14, #8
	b.ne	LBB0_16
; %bb.17:
	cmp	x10, x12
	b.ne	LBB0_6
	b	LBB0_8
LBB0_18:
	add	x13, x11, x9
	mov	x12, x11
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ws_unmask_payload
.subsections_via_symbols
