	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_s2k_iter_salted
_calc_s2k_iter_salted:                  ## @calc_s2k_iter_salted
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PGP_MAX_DIGEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movl	24(%r12), %edi
	callq	_s2k_decode_count
	movl	%eax, %r13d
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_px_md_result_size
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	(%r12), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movq	16(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-128(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	callq	_px_md_reset
	testl	%ebx, %ebx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_px_md_update
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, -92(%rbp)                 ## 4-byte Spill
	movq	8(%r12), %rsi
	movq	_PGP_S2K_SALT@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_px_md_update
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %edx
	callq	_px_md_update
	movl	(%r14), %eax
	leal	(%rax,%rbx), %r14d
	movl	%r13d, %r12d
	subl	%r14d, %r12d
	movq	%r15, %rbx
	jbe	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(%rax,%r14), %ecx
	cmpl	%r13d, %ecx
	cmovbl	%eax, %r12d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_px_md_update
	addl	%r14d, %r12d
	movq	-104(%rbp), %r15                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r12,%r15), %r14d
	cmpl	%r13d, %r14d
	jae	LBB0_7
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_px_md_update
	movq	_PGP_S2K_SALT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%r14), %ecx
	movl	%r13d, %r12d
	subl	%r14d, %r12d
	cmpl	%r13d, %ecx
	cmovbl	%eax, %r12d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_px_md_update
	addl	%r14d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edx
	subl	%r12d, %edx
	jbe	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_px_md_update
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_px_md_finish
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	cmpl	%r14d, %ebx
	jbe	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rsi
	movl	-92(%rbp), %r15d                ## 4-byte Reload
	incl	%r15d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_memcpy
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leaq	(%r12,%rax,4), %r12
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	subl	%r14d, %ebx
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%r15d, %ebx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_2
	jmp	LBB0_12
LBB0_10:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memcpy
LBB0_12:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leal	(,%rax,4), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_px_memset
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.13:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PGP_MAX_DIGEST,4,2             ## @PGP_MAX_DIGEST
	.comm	_PGP_S2K_SALT,4,2               ## @PGP_S2K_SALT
	.no_dead_strip	_calc_s2k_iter_salted
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_s2k_iter_salted
_calc_s2k_iter_salted:                  ; @calc_s2k_iter_salted
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _PGP_MAX_DIGEST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PGP_MAX_DIGEST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
	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	x23, x9, x8
	mov	sp, x23
	ldr	w0, [x0, #24]
	bl	_s2k_decode_count
	mov	x24, x0
	mov	x0, x21
	bl	_px_md_result_size
	ldr	w25, [x22]
	cbz	w25, LBB0_12
; %bb.1:
	mov	x26, x0
	mov	w27, #0
	ldr	x28, [x22, #16]
	mov	w8, w0
	stp	x23, x8, [x29, #-112]           ; 16-byte Folded Spill
	stur	w0, [x29, #-96]                 ; 4-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	stur	w25, [x29, #-92]                ; 4-byte Folded Spill
	mov	x0, x21
	bl	_px_md_reset
	cbz	w27, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	mov	w1, #0
	mov	x2, x27
	bl	_memset
	mov	x0, x21
	mov	x1, x23
	mov	x2, x27
	bl	_px_md_update
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x22, #8]
Lloh8:
	adrp	x25, _PGP_S2K_SALT@GOTPAGE
Lloh9:
	ldr	x25, [x25, _PGP_S2K_SALT@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x21
	bl	_px_md_update
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_px_md_update
	ldr	w8, [x25]
	add	w26, w8, w19
	subs	w9, w24, w26
	b.ls	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w10, w8, w26
	cmp	w10, w24
	csel	w23, w8, w9, lo
	ldr	x1, [x22, #8]
	mov	x0, x21
	mov	x2, x23
	bl	_px_md_update
	add	w8, w23, w26
	add	w26, w8, w19
	cmp	w26, w24
Lloh10:
	adrp	x25, _PGP_S2K_SALT@GOTPAGE
Lloh11:
	ldr	x25, [x25, _PGP_S2K_SALT@GOTPAGEOFF]
	b.hs	LBB0_7
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_px_md_update
	ldr	w8, [x25]
	sub	w9, w24, w26
	add	w10, w8, w26
	cmp	w10, w24
	csel	w23, w8, w9, lo
	ldr	x1, [x22, #8]
	mov	x0, x21
	mov	x2, x23
	bl	_px_md_update
	add	w8, w23, w26
	add	w26, w8, w19
	cmp	w26, w24
	b.lo	LBB0_6
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	subs	w2, w24, w8
	ldur	x23, [x29, #-112]               ; 8-byte Folded Reload
	b.ls	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_px_md_update
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_px_md_finish
	ldp	w26, w25, [x29, #-96]           ; 8-byte Folded Reload
	cmp	w25, w26
	b.ls	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	add	w27, w27, #1
	mov	x0, x28
	mov	x1, x23
	mov	x2, x26
	bl	_memcpy
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	add	x28, x28, x8, lsl #2
	subs	w25, w25, w26
	b.ne	LBB0_2
	b	LBB0_12
LBB0_11:
	mov	x0, x28
	mov	x1, x23
	mov	x2, x25
	bl	_memcpy
LBB0_12:
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	lsl	w2, w8, #2
	mov	x0, x23
	mov	w1, #0
	bl	_px_memset
	ldur	x8, [x29, #-88]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	w0, #0
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PGP_MAX_DIGEST,4,2             ; @PGP_MAX_DIGEST
	.comm	_PGP_S2K_SALT,4,2               ; @PGP_S2K_SALT
	.no_dead_strip	_calc_s2k_iter_salted
.subsections_via_symbols
