	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_key_id
_calc_key_id:                           ## @calc_key_id
	.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	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_PGP_DIGEST_SHA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-136(%rbp), %rsi
	callq	_pgp_load_digest
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r14), %ecx
	leal	-128(%rcx), %eax
	cmpl	$3, %eax
	jae	LBB0_3
## %bb.6:
	movq	56(%r14), %rax
	movq	64(%r14), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %eax
	addl	%ecx, %eax
	addl	$10, %eax
	jmp	LBB0_8
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_3:
	cmpl	$132, %ecx
	je	LBB0_7
## %bb.4:
	movl	$6, %eax
	cmpl	$131, %ecx
	jne	LBB0_8
## %bb.5:
	movq	88(%r14), %rax
	movl	(%rax), %eax
	movq	72(%r14), %rcx
	movq	80(%r14), %rdx
	movl	(%rcx), %ecx
	addl	(%rdx), %eax
	addl	%ecx, %eax
	addl	$12, %eax
	jmp	LBB0_8
LBB0_7:
	movq	48(%r14), %rax
	movl	(%rax), %eax
	movq	40(%r14), %rcx
	movq	24(%r14), %rdx
	movq	32(%r14), %rsi
	addl	(%rcx), %eax
	movl	(%rdx), %ecx
	addl	(%rsi), %eax
	addl	%ecx, %eax
	addl	$14, %eax
LBB0_8:
	movl	$153, -44(%rbp)
	movl	%eax, %ecx
	sarl	$8, %ecx
	movl	%ecx, -40(%rbp)
	movzbl	%al, %eax
	movl	%eax, -36(%rbp)
	movq	-136(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	movl	$3, %edx
	callq	_px_md_update
	movq	-136(%rbp), %rdi
	leaq	4(%r14), %rsi
	movl	$1, %edx
	callq	_px_md_update
	movq	-136(%rbp), %rdi
	movq	8(%r14), %rsi
	movl	$4, %edx
	callq	_px_md_update
	movq	-136(%rbp), %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_px_md_update
	movl	(%r14), %eax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_9
## %bb.12:
	movq	-136(%rbp), %rdi
	leaq	56(%r14), %rbx
	movq	64(%r14), %rsi
	jmp	LBB0_14
LBB0_9:
	cmpl	$132, %eax
	je	LBB0_13
## %bb.10:
	cmpl	$131, %eax
	jne	LBB0_15
## %bb.11:
	movq	-136(%rbp), %rdi
	leaq	72(%r14), %rbx
	movq	88(%r14), %rsi
	callq	_pgp_mpi_hash
	movq	-136(%rbp), %rdi
	movq	80(%r14), %rsi
	jmp	LBB0_14
LBB0_13:
	movq	-136(%rbp), %rdi
	leaq	24(%r14), %rbx
	movq	48(%r14), %rsi
	callq	_pgp_mpi_hash
	movq	-136(%rbp), %rdi
	movq	40(%r14), %rsi
	callq	_pgp_mpi_hash
	movq	-136(%rbp), %rdi
	movq	32(%r14), %rsi
LBB0_14:
	callq	_pgp_mpi_hash
	movq	-136(%rbp), %rdi
	movq	(%rbx), %rsi
	callq	_pgp_mpi_hash
LBB0_15:
	movq	-136(%rbp), %rdi
	leaq	-128(%rbp), %r15
	movq	%r15, %rsi
	callq	_px_md_finish
	movq	-136(%rbp), %rdi
	callq	_px_md_free
	movl	16(%r14), %edi
	leaq	-80(%rbp), %rsi
	movl	$8, %edx
	callq	_memcpy
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_px_memset
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PGP_DIGEST_SHA1,4,2            ## @PGP_DIGEST_SHA1
	.no_dead_strip	_calc_key_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_key_id
_calc_key_id:                           ; @calc_key_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _PGP_DIGEST_SHA1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PGP_DIGEST_SHA1@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, sp
	bl	_pgp_load_digest
	tbnz	w0, #31, LBB0_16
; %bb.1:
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hs	LBB0_3
; %bb.2:
	ldp	x9, x8, [x19, #56]
	ldr	w8, [x8]
	ldr	w9, [x9]
	add	w8, w8, w9
	add	w8, w8, #10
	b	LBB0_8
LBB0_3:
	cmp	w8, #132
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #131
	b.ne	LBB0_7
; %bb.5:
	ldp	x9, x8, [x19, #80]
	ldr	w8, [x8]
	ldr	x10, [x19, #72]
	ldr	w9, [x9]
	ldr	w10, [x10]
	add	w8, w8, w9
	add	w8, w8, w10
	add	w8, w8, #12
	b	LBB0_8
LBB0_6:
	ldp	x9, x8, [x19, #40]
	ldr	w8, [x8]
	ldr	w9, [x9]
	ldp	x11, x10, [x19, #24]
	ldr	w10, [x10]
	ldr	w11, [x11]
	add	w8, w8, w9
	add	w8, w8, w10
	add	w8, w8, w11
	add	w8, w8, #14
	b	LBB0_8
LBB0_7:
	mov	w8, #6
LBB0_8:
	mov	w9, #153
	asr	w10, w8, #8
	stp	w9, w10, [x29, #-36]
	and	w8, w8, #0xff
	stur	w8, [x29, #-28]
	ldr	x0, [sp]
	sub	x1, x29, #36
	mov	w2, #3
	bl	_px_md_update
	ldr	x0, [sp]
	add	x1, x19, #4
	mov	w2, #1
	bl	_px_md_update
	ldr	x0, [sp]
	ldr	x1, [x19, #8]
	mov	w2, #4
	bl	_px_md_update
	ldr	x0, [sp]
	mov	x1, x19
	mov	w2, #1
	bl	_px_md_update
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hs	LBB0_10
; %bb.9:
	ldr	x0, [sp]
	add	x20, x19, #56
	ldr	x1, [x19, #64]
	b	LBB0_14
LBB0_10:
	cmp	w8, #132
	b.eq	LBB0_13
; %bb.11:
	cmp	w8, #131
	b.ne	LBB0_15
; %bb.12:
	ldr	x0, [sp]
	add	x20, x19, #72
	ldr	x1, [x19, #88]
	bl	_pgp_mpi_hash
	ldr	x0, [sp]
	ldr	x1, [x19, #80]
	b	LBB0_14
LBB0_13:
	ldr	x0, [sp]
	add	x20, x19, #24
	ldr	x1, [x19, #48]
	bl	_pgp_mpi_hash
	ldr	x0, [sp]
	ldr	x1, [x19, #40]
	bl	_pgp_mpi_hash
	ldr	x0, [sp]
	ldr	x1, [x19, #32]
LBB0_14:
	bl	_pgp_mpi_hash
	ldr	x0, [sp]
	ldr	x1, [x20]
	bl	_pgp_mpi_hash
LBB0_15:
	ldr	x0, [sp]
	add	x20, sp, #12
	add	x1, sp, #12
	bl	_px_md_finish
	ldr	x0, [sp]
	bl	_px_md_free
	ldr	w0, [x19, #16]
	add	x1, x20, #48
	mov	w2, #8
	bl	_memcpy
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #20
	bl	_px_memset
	mov	w0, #0
LBB0_16:
	ldur	x8, [x29, #-24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PGP_DIGEST_SHA1,4,2            ; @PGP_DIGEST_SHA1
	.no_dead_strip	_calc_key_id
.subsections_via_symbols
