	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgp_s2k_process                ## -- Begin function pgp_s2k_process
	.p2align	4, 0x90
_pgp_s2k_process:                       ## @pgp_s2k_process
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rdi, %r12
	movl	%esi, %edi
	callq	_pgp_get_cipher_key_size
	movq	%rax, (%r12)
	testq	%rax, %rax
	jle	LBB0_1
## %bb.2:
	movl	12(%r12), %edi
	leaq	-40(%rbp), %rsi
	callq	_pgp_load_digest
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	8(%r12), %eax
	cmpl	$3, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$1, %eax
	je	LBB0_8
## %bb.6:
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	-40(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_calc_s2k_simple
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_1:
	movq	_PXE_PGP_UNSUPPORTED_CIPHER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_12
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_9:
	movq	-40(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_calc_s2k_iter_salted
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_8:
	movq	-40(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_calc_s2k_salted
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_10:
	movq	_PXE_PGP_BAD_S2K_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	movq	-40(%rbp), %rdi
	callq	_px_md_free
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PXE_PGP_UNSUPPORTED_CIPHER,4,2 ## @PXE_PGP_UNSUPPORTED_CIPHER
	.comm	_PXE_PGP_BAD_S2K_MODE,4,2       ## @PXE_PGP_BAD_S2K_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgp_s2k_process                ; -- Begin function pgp_s2k_process
	.p2align	2
_pgp_s2k_process:                       ; @pgp_s2k_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	mov	x0, x1
	bl	_pgp_get_cipher_key_size
	str	x0, [x21]
	cmp	x0, #0
	b.le	LBB0_6
; %bb.1:
	ldr	w0, [x21, #12]
	add	x1, sp, #8
	bl	_pgp_load_digest
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	w8, [x21, #8]
	cmp	w8, #3
	b.eq	LBB0_8
; %bb.3:
	cmp	w8, #1
	b.eq	LBB0_9
; %bb.4:
	cbnz	w8, LBB0_10
; %bb.5:
	ldr	x1, [sp, #8]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_calc_s2k_simple
	mov	x22, x0
	b	LBB0_11
LBB0_6:
Lloh0:
	adrp	x8, _PXE_PGP_UNSUPPORTED_CIPHER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PXE_PGP_UNSUPPORTED_CIPHER@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	b	LBB0_12
LBB0_7:
	mov	x22, x0
	b	LBB0_12
LBB0_8:
	ldr	x1, [sp, #8]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_calc_s2k_iter_salted
	mov	x22, x0
	b	LBB0_11
LBB0_9:
	ldr	x1, [sp, #8]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_calc_s2k_salted
	mov	x22, x0
	b	LBB0_11
LBB0_10:
Lloh3:
	adrp	x8, _PXE_PGP_BAD_S2K_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PXE_PGP_BAD_S2K_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
LBB0_11:
	ldr	x0, [sp, #8]
	bl	_px_md_free
LBB0_12:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PXE_PGP_UNSUPPORTED_CIPHER,4,2 ; @PXE_PGP_UNSUPPORTED_CIPHER
	.comm	_PXE_PGP_BAD_S2K_MODE,4,2       ; @PXE_PGP_BAD_S2K_MODE
.subsections_via_symbols
