	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_secmsg
_create_secmsg:                         ## @create_secmsg
	.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	$40, %rsp
	.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
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movslq	(%rdi), %r13
	movq	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	testq	%r13, %r13
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movl	%r13d, %eax
	movq	8(%r12), %rcx
	cmpl	$4, %eax
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_4:
	movl	%eax, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$2, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,8), %xmm2
	movdqu	16(%rcx,%rdi,8), %xmm3
	movdqu	32(%rcx,%rdi,8), %xmm4
	movdqu	48(%rcx,%rdi,8), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_7
## %bb.8:
	testb	$1, %bl
	je	LBB0_10
LBB0_9:
	movdqu	(%rcx,%rdi,8), %xmm2
	movdqu	16(%rcx,%rdi,8), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_10:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %ebx
	cmpq	%rax, %rdx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rcx,%rdx,8), %ebx
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_11
LBB0_12:
	leal	3(%r13), %r15d
	movl	%r15d, %edi
	callq	_px_alloc
	movq	%rax, %r14
	movl	4(%r12), %eax
	movl	%eax, (%r14)
	leaq	4(%r14), %rdi
	movq	8(%r12), %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movzbl	%bh, %eax
	movl	%eax, 4(%r14,%r13,4)
	movzbl	%bl, %eax
	movl	%eax, 8(%r14,%r13,4)
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_pad_eme_pkcs1_v15
	testl	%eax, %eax
	js	LBB0_14
## %bb.13:
	leal	-6(,%r12,8), %esi
	movq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	callq	_pgp_mpi_create
LBB0_14:
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_px_memset
	movq	-48(%rbp), %rdi
	callq	_px_free
LBB0_16:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_px_memset
	movq	%r14, %rdi
	callq	_px_free
	testl	%ebx, %ebx
	js	LBB0_18
## %bb.17:
	movq	-56(%rbp), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_18:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	testb	$1, %bl
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_create_secmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_secmsg
_create_secmsg:                         ; @create_secmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w21, [x0]
	stp	xzr, xzr, [sp]
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x22, #8]
	cmp	w21, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x9, #0
	mov	w25, #0
	b	LBB0_7
LBB0_3:
	mov	w25, #0
	b	LBB0_9
LBB0_4:
	and	x9, x21, #0xfffffff8
	movi.2d	v0, #0000000000000000
	add	x10, x8, #32
	mov	x11, x9
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x10, #-32]
	ldp	q6, q7, [x10], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x11, x11, #8
	b.ne	LBB0_5
; %bb.6:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w25, s0
	cmp	x9, x21
	b.eq	LBB0_9
LBB0_7:
	add	x8, x8, x9, lsl #3
	sub	x9, x21, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8], #8
	add	w25, w25, w10
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	add	w23, w21, #3
	mov	x0, x23
	bl	_px_alloc
	mov	x24, x0
	ldr	w8, [x22, #4]
	str	w8, [x0], #4
	ldr	x1, [x22, #8]
	mov	x2, x21
	bl	_memcpy
	ubfx	w8, w25, #8, #8
	add	w9, w21, #1
	str	w8, [x24, w9, sxtw #2]
	and	w8, w25, #0xff
	add	w9, w21, #2
	str	w8, [x24, w9, sxtw #2]
	add	x3, sp, #8
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	bl	_pad_eme_pkcs1_v15
	tbnz	w0, #31, LBB0_11
; %bb.10:
	lsl	w8, w20, #3
	sub	w1, w8, #6
	ldr	x0, [sp, #8]
	mov	x2, sp
	bl	_pgp_mpi_create
LBB0_11:
	mov	x21, x0
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_13
; %bb.12:
	mov	w1, #0
	mov	x2, x20
	bl	_px_memset
	ldr	x0, [sp, #8]
	bl	_px_free
LBB0_13:
	mov	x0, x24
	mov	w1, #0
	mov	x2, x23
	bl	_px_memset
	mov	x0, x24
	bl	_px_free
	tbnz	w21, #31, LBB0_15
; %bb.14:
	ldr	x8, [sp]
	str	x8, [x19]
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_create_secmsg
.subsections_via_symbols
