	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function p2ps_gen_hash
LCPI0_0:
	.space	16,191
LCPI0_1:
	.space	16,25
LCPI0_2:
	.space	16,32
LCPI0_3:
	.byte	191                             ## 0xbf
	.byte	191                             ## 0xbf
	.byte	191                             ## 0xbf
	.byte	191                             ## 0xbf
	.byte	191                             ## 0xbf
	.byte	191                             ## 0xbf
	.byte	191                             ## 0xbf
	.byte	191                             ## 0xbf
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_4:
	.byte	26                              ## 0x1a
	.byte	26                              ## 0x1a
	.byte	26                              ## 0x1a
	.byte	26                              ## 0x1a
	.byte	26                              ## 0x1a
	.byte	26                              ## 0x1a
	.byte	26                              ## 0x1a
	.byte	26                              ## 0x1a
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_5:
	.byte	32                              ## 0x20
	.byte	32                              ## 0x20
	.byte	32                              ## 0x20
	.byte	32                              ## 0x20
	.byte	32                              ## 0x20
	.byte	32                              ## 0x20
	.byte	32                              ## 0x20
	.byte	32                              ## 0x20
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_p2ps_gen_hash:                         ## @p2ps_gen_hash
	.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	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SHA256_MAC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	xorl	%r12d, %r12d
	testq	%r13, %r13
	je	LBB0_26
## %bb.1:
	testq	%r14, %r14
	je	LBB0_26
## %bb.2:
	cmpb	$0, (%r13)
	je	LBB0_3
## %bb.4:
	leaq	-304(%rbp), %rax
	movq	%rax, -320(%rbp)
	movq	%r13, %rdi
	callq	_os_strlen
	movq	%rax, -312(%rbp)
	cmpq	$255, %rax
	ja	LBB0_26
## %bb.5:
	testq	%rax, %rax
	je	LBB0_23
## %bb.6:
	cmpq	$8, %rax
	jae	LBB0_9
## %bb.7:
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_3:
	movq	(%rbx), %rsi
	movq	_P2PS_HASH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	jmp	LBB0_25
LBB0_9:
	cmpq	$32, %rax
	jae	LBB0_11
## %bb.10:
	xorl	%ecx, %ecx
	jmp	LBB0_20
LBB0_11:
	movq	%rax, %rcx
	movdqu	(%r13), %xmm5
	movdqu	16(%r13), %xmm1
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [191,191,191,191,191,191,191,191,191,191,191,191,191,191,191,191]
	movdqa	%xmm5, %xmm2
	paddb	%xmm3, %xmm2
	movdqa	%xmm1, %xmm4
	paddb	%xmm3, %xmm4
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25]
	movdqa	%xmm2, %xmm0
	pminub	%xmm8, %xmm0
	pcmpeqb	%xmm2, %xmm0
	movdqa	%xmm4, %xmm2
	pminub	%xmm8, %xmm2
	pcmpeqb	%xmm4, %xmm2
	movdqa	LCPI0_2(%rip), %xmm4            ## xmm4 = [32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32]
	movdqa	%xmm5, %xmm7
	paddb	%xmm4, %xmm7
	movdqa	%xmm1, %xmm6
	paddb	%xmm4, %xmm6
	pblendvb	%xmm0, %xmm7, %xmm5
	movdqa	%xmm2, %xmm0
	pblendvb	%xmm0, %xmm6, %xmm1
	andq	$-32, %rcx
	movdqa	%xmm5, -304(%rbp)
	movdqa	%xmm1, -288(%rbp)
	cmpq	$32, %rcx
	je	LBB0_18
## %bb.12:
	movdqu	32(%r13), %xmm1
	movdqu	48(%r13), %xmm5
	movdqa	%xmm1, %xmm2
	paddb	%xmm3, %xmm2
	movdqa	%xmm5, %xmm6
	paddb	%xmm3, %xmm6
	movdqa	%xmm2, %xmm0
	pminub	%xmm8, %xmm0
	pcmpeqb	%xmm2, %xmm0
	movdqa	%xmm6, %xmm2
	pminub	%xmm8, %xmm2
	pcmpeqb	%xmm6, %xmm2
	movdqa	%xmm1, %xmm6
	paddb	%xmm4, %xmm6
	movdqa	%xmm5, %xmm7
	paddb	%xmm4, %xmm7
	pblendvb	%xmm0, %xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pblendvb	%xmm0, %xmm7, %xmm5
	movdqa	%xmm1, -272(%rbp)
	movdqa	%xmm5, -256(%rbp)
	cmpq	$64, %rcx
	je	LBB0_18
## %bb.13:
	movdqu	64(%r13), %xmm1
	movdqu	80(%r13), %xmm5
	movdqa	%xmm1, %xmm2
	paddb	%xmm3, %xmm2
	movdqa	%xmm5, %xmm6
	paddb	%xmm3, %xmm6
	movdqa	%xmm2, %xmm0
	pminub	%xmm8, %xmm0
	pcmpeqb	%xmm2, %xmm0
	movdqa	%xmm6, %xmm2
	pminub	%xmm8, %xmm2
	pcmpeqb	%xmm6, %xmm2
	movdqa	%xmm1, %xmm6
	paddb	%xmm4, %xmm6
	movdqa	%xmm5, %xmm7
	paddb	%xmm4, %xmm7
	pblendvb	%xmm0, %xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pblendvb	%xmm0, %xmm7, %xmm5
	movdqa	%xmm1, -240(%rbp)
	movdqa	%xmm5, -224(%rbp)
	cmpq	$96, %rcx
	je	LBB0_18
## %bb.14:
	movdqu	96(%r13), %xmm1
	movdqu	112(%r13), %xmm5
	movdqa	%xmm1, %xmm2
	paddb	%xmm3, %xmm2
	movdqa	%xmm5, %xmm6
	paddb	%xmm3, %xmm6
	movdqa	%xmm2, %xmm0
	pminub	%xmm8, %xmm0
	pcmpeqb	%xmm2, %xmm0
	movdqa	%xmm6, %xmm2
	pminub	%xmm8, %xmm2
	pcmpeqb	%xmm6, %xmm2
	movdqa	%xmm1, %xmm6
	paddb	%xmm4, %xmm6
	movdqa	%xmm5, %xmm7
	paddb	%xmm4, %xmm7
	pblendvb	%xmm0, %xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pblendvb	%xmm0, %xmm7, %xmm5
	movdqa	%xmm1, -208(%rbp)
	movdqa	%xmm5, -192(%rbp)
	cmpq	$128, %rcx
	je	LBB0_18
## %bb.15:
	movdqu	128(%r13), %xmm1
	movdqu	144(%r13), %xmm5
	movdqa	%xmm1, %xmm2
	paddb	%xmm3, %xmm2
	movdqa	%xmm5, %xmm6
	paddb	%xmm3, %xmm6
	movdqa	%xmm2, %xmm0
	pminub	%xmm8, %xmm0
	pcmpeqb	%xmm2, %xmm0
	movdqa	%xmm6, %xmm2
	pminub	%xmm8, %xmm2
	pcmpeqb	%xmm6, %xmm2
	movdqa	%xmm1, %xmm6
	paddb	%xmm4, %xmm6
	movdqa	%xmm5, %xmm7
	paddb	%xmm4, %xmm7
	pblendvb	%xmm0, %xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pblendvb	%xmm0, %xmm7, %xmm5
	movdqa	%xmm1, -176(%rbp)
	movdqa	%xmm5, -160(%rbp)
	cmpq	$160, %rcx
	je	LBB0_18
## %bb.16:
	movdqu	160(%r13), %xmm1
	movdqu	176(%r13), %xmm5
	movdqa	%xmm1, %xmm2
	paddb	%xmm3, %xmm2
	movdqa	%xmm5, %xmm6
	paddb	%xmm3, %xmm6
	movdqa	%xmm2, %xmm0
	pminub	%xmm8, %xmm0
	pcmpeqb	%xmm2, %xmm0
	movdqa	%xmm6, %xmm2
	pminub	%xmm8, %xmm2
	pcmpeqb	%xmm6, %xmm2
	movdqa	%xmm1, %xmm6
	paddb	%xmm4, %xmm6
	movdqa	%xmm5, %xmm7
	paddb	%xmm4, %xmm7
	pblendvb	%xmm0, %xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pblendvb	%xmm0, %xmm7, %xmm5
	movdqa	%xmm1, -144(%rbp)
	movdqa	%xmm5, -128(%rbp)
	cmpq	$192, %rcx
	je	LBB0_18
## %bb.17:
	movdqu	192(%r13), %xmm1
	movdqu	208(%r13), %xmm2
	movdqa	%xmm1, %xmm5
	paddb	%xmm3, %xmm5
	paddb	%xmm2, %xmm3
	movdqa	%xmm5, %xmm0
	pminub	%xmm8, %xmm0
	pcmpeqb	%xmm5, %xmm0
	pminub	%xmm3, %xmm8
	pcmpeqb	%xmm3, %xmm8
	movdqa	%xmm1, %xmm3
	paddb	%xmm4, %xmm3
	paddb	%xmm2, %xmm4
	pblendvb	%xmm0, %xmm3, %xmm1
	movdqa	%xmm8, %xmm0
	pblendvb	%xmm0, %xmm4, %xmm2
	movdqa	%xmm1, -112(%rbp)
	movdqa	%xmm2, -96(%rbp)
LBB0_18:
	cmpq	%rcx, %rax
	je	LBB0_23
## %bb.19:
	testb	$24, %al
	je	LBB0_8
LBB0_20:
	movq	%rcx, %rdx
	movq	%rax, %rcx
	andq	$-8, %rcx
	movdqa	LCPI0_3(%rip), %xmm1            ## xmm1 = <191,191,191,191,191,191,191,191,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_4(%rip), %xmm2            ## xmm2 = <26,26,26,26,26,26,26,26,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_5(%rip), %xmm3            ## xmm3 = <32,32,32,32,32,32,32,32,u,u,u,u,u,u,u,u>
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rdx), %xmm4              ## xmm4 = mem[0],zero
	movdqa	%xmm4, %xmm5
	paddb	%xmm1, %xmm5
	movdqa	%xmm5, %xmm0
	pmaxub	%xmm2, %xmm0
	pcmpeqb	%xmm5, %xmm0
	movdqa	%xmm4, %xmm5
	paddb	%xmm3, %xmm5
	pblendvb	%xmm0, %xmm4, %xmm5
	movq	%xmm5, -304(%rbp,%rdx)
	addq	$8, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_21
	jmp	LBB0_22
LBB0_8:
	movzbl	(%r13,%rcx), %edx
	leal	-65(%rdx), %esi
	leal	32(%rdx), %edi
	cmpb	$26, %sil
	movzbl	%dil, %esi
	cmovael	%edx, %esi
	movb	%sil, -304(%rbp,%rcx)
	incq	%rcx
LBB0_22:
	cmpq	%rcx, %rax
	jne	LBB0_8
LBB0_23:
	leaq	-320(%rbp), %rsi
	leaq	-312(%rbp), %rdx
	movl	$1, %edi
	movq	%r15, %rcx
	callq	_sha256_vector
	testq	%rax, %rax
	jne	LBB0_26
## %bb.24:
	movq	_P2PS_HASH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
LBB0_25:
	callq	_os_memcpy
	movl	$1, %r12d
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA256_MAC_LEN,4,2             ## @SHA256_MAC_LEN
	.comm	_P2PS_HASH_LEN,4,2              ## @P2PS_HASH_LEN
	.no_dead_strip	_p2ps_gen_hash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2ps_gen_hash
_p2ps_gen_hash:                         ; @p2ps_gen_hash
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #288
	mov	x19, sp
	mov	x20, x2
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _SHA256_MAC_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SHA256_MAC_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	mov	w8, #0
	cbz	x1, LBB0_24
; %bb.1:
	cbz	x20, LBB0_24
; %bb.2:
	ldrb	w8, [x22]
	cbz	w8, LBB0_7
; %bb.3:
	add	x8, x19, #16
	str	x8, [x19, #8]
	mov	x0, x22
	bl	_os_strlen
	str	x0, [x19]
	cmp	x0, #255
	b.hi	LBB0_21
; %bb.4:
	cbz	x0, LBB0_20
; %bb.5:
	cmp	x0, #8
	b.hs	LBB0_8
; %bb.6:
	mov	x8, #0
	b	LBB0_18
LBB0_7:
	ldr	x1, [x0]
Lloh8:
	adrp	x8, _P2PS_HASH_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _P2PS_HASH_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	b	LBB0_23
LBB0_8:
	cmp	x0, #64
	b.hs	LBB0_10
; %bb.9:
	mov	x8, #0
	b	LBB0_15
LBB0_10:
	and	x8, x0, #0xffffffffffffffc0
	ldp	q3, q4, [x22]
	ldp	q5, q6, [x22, #32]
	movi.16b	v0, #191
	add.16b	v2, v3, v0
	add.16b	v7, v4, v0
	add.16b	v16, v5, v0
	add.16b	v17, v6, v0
	movi.16b	v1, #26
	cmhi.16b	v18, v1, v2
	cmhi.16b	v7, v1, v7
	cmhi.16b	v16, v1, v16
	cmhi.16b	v17, v1, v17
	movi.16b	v2, #32
	add.16b	v19, v3, v2
	add.16b	v20, v4, v2
	add.16b	v21, v5, v2
	add.16b	v22, v6, v2
	bit.16b	v3, v19, v18
	bit.16b	v4, v20, v7
	bit.16b	v5, v21, v16
	stp	q3, q4, [x19, #16]
	mov.16b	v3, v17
	bsl.16b	v3, v22, v6
	stp	q5, q3, [x19, #48]
	cmp	x8, #64
	b.eq	LBB0_13
; %bb.11:
	ldp	q3, q4, [x22, #64]
	ldp	q5, q6, [x22, #96]
	add.16b	v7, v3, v0
	add.16b	v16, v4, v0
	add.16b	v17, v5, v0
	add.16b	v0, v6, v0
	cmhi.16b	v7, v1, v7
	cmhi.16b	v16, v1, v16
	cmhi.16b	v17, v1, v17
	cmhi.16b	v0, v1, v0
	add.16b	v1, v3, v2
	add.16b	v18, v4, v2
	add.16b	v19, v5, v2
	add.16b	v2, v6, v2
	bif.16b	v1, v3, v7
	mov.16b	v3, v16
	bsl.16b	v3, v18, v4
	mov.16b	v4, v17
	bsl.16b	v4, v19, v5
	stp	q1, q3, [x19, #80]
	bsl.16b	v0, v2, v6
	stp	q4, q0, [x19, #112]
	cmp	x8, #128
	b.eq	LBB0_13
; %bb.12:
	ldp	q0, q1, [x22, #128]
	ldp	q2, q3, [x22, #160]
	movi.16b	v4, #191
	add.16b	v5, v0, v4
	add.16b	v6, v1, v4
	add.16b	v7, v2, v4
	add.16b	v4, v3, v4
	movi.16b	v16, #26
	cmhi.16b	v5, v16, v5
	cmhi.16b	v6, v16, v6
	cmhi.16b	v7, v16, v7
	cmhi.16b	v4, v16, v4
	movi.16b	v16, #32
	add.16b	v17, v0, v16
	add.16b	v18, v1, v16
	add.16b	v19, v2, v16
	add.16b	v16, v3, v16
	bit.16b	v0, v17, v5
	bit.16b	v1, v18, v6
	bit.16b	v2, v19, v7
	stp	q0, q1, [x19, #144]
	mov.16b	v0, v4
	bsl.16b	v0, v16, v3
	stp	q2, q0, [x19, #176]
LBB0_13:
	cmp	x0, x8
	b.eq	LBB0_20
; %bb.14:
	tst	x0, #0x38
	b.eq	LBB0_18
LBB0_15:
	mov	x11, x8
	and	x8, x0, #0xfffffffffffffff8
	add	x9, x22, x11
	add	x10, x19, #16
	add	x10, x10, x11
	sub	x11, x11, x8
	movi.8b	v0, #191
	movi.8b	v1, #26
	movi.8b	v2, #32
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	d3, [x9], #8
	add.8b	v4, v3, v0
	cmhi.8b	v4, v1, v4
	add.8b	v5, v3, v2
	bit.8b	v3, v5, v4
	str	d3, [x10], #8
	adds	x11, x11, #8
	b.ne	LBB0_16
; %bb.17:
	cmp	x0, x8
	b.eq	LBB0_20
LBB0_18:
	add	x9, x19, #16
	add	x9, x9, x8
	sub	x10, x0, x8
	add	x8, x22, x8
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x8], #1
	sub	w12, w11, #65
	add	w13, w11, #32
	cmp	w12, #26
	csel	w11, w13, w11, lo
	strb	w11, [x9], #1
	subs	x10, x10, #1
	b.ne	LBB0_19
LBB0_20:
	add	x1, x19, #8
	add	x2, x19, #0
	mov	w0, #1
	mov	x3, x21
	bl	_sha256_vector
	cbz	x0, LBB0_22
LBB0_21:
	mov	w8, #0
	b	LBB0_24
LBB0_22:
Lloh11:
	adrp	x8, _P2PS_HASH_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _P2PS_HASH_LEN@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
LBB0_23:
	bl	_os_memcpy
	mov	w8, #1
LBB0_24:
	ldur	x9, [x29, #-56]
Lloh14:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_26
; %bb.25:
	mov	x0, x8
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA256_MAC_LEN,4,2             ; @SHA256_MAC_LEN
	.comm	_P2PS_HASH_LEN,4,2              ; @P2PS_HASH_LEN
	.no_dead_strip	_p2ps_gen_hash
.subsections_via_symbols
