	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function krb5_nfold
_krb5_nfold:                            ## @krb5_nfold
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
                                        ## kill: def $edi killed $edi def $rdi
	movl	%edi, %r13d
	sarl	$3, %r13d
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	sarl	$3, %ebx
	movl	%ebx, %esi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpl	$8, %edi
	jb	LBB0_3
## %bb.1:
	movl	%ebx, %eax
	movl	%r13d, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %esi
	cltd
	idivl	%esi
	movl	%esi, %eax
	testl	%edx, %edx
	jne	LBB0_2
LBB0_3:
	movl	%ebx, %eax
	imull	%r13d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r15d
	xorl	%r14d, %r14d
	movq	%rcx, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	callq	_memset
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	testl	%r15d, %r15d
	jle	LBB0_10
## %bb.4:
	movq	%rbx, %r8
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	andl	$-8, %r11d
	leal	-1(%r11), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leal	13(%r11), %r9d
	incl	%r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%r15), %esi
	movl	%esi, %eax
	cltd
	idivl	%r13d
                                        ## kill: def $eax killed $eax def $rax
	imull	%r9d, %eax
	addl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%r13d, %ecx
	subl	%edx, %ecx
	leal	(%rax,%rcx,8), %eax
	cltd
	idivl	%r11d
	movl	%edx, %ecx
	movl	%edx, %eax
	sarl	$3, %eax
	movl	%r13d, %edi
	subl	%eax, %edi
	notl	%eax
	addl	%r13d, %eax
	cltd
	idivl	%r13d
	movslq	%edx, %rax
	movl	(%r12,%rax,4), %ebx
	movl	%edi, %eax
	cltd
	idivl	%r13d
	shll	$8, %ebx
	movslq	%edx, %rax
	orl	(%r12,%rax,4), %ebx
	andb	$7, %cl
	incb	%cl
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %ebx
	movl	%esi, %eax
	cltd
	idivl	%r8d
                                        ## kill: def $edx killed $edx def $rdx
	movzbl	%bl, %ecx
	addl	(%r10,%rdx,4), %r14d
	movl	%r14d, %eax
	addl	%ecx, %eax
	movzbl	%al, %ecx
	movl	%ecx, (%r10,%rdx,4)
	movl	%eax, %r14d
	sarl	$8, %r14d
	decl	%r15d
	cmpl	$1, %r15d
	ja	LBB0_5
## %bb.6:
	cmpl	$256, %eax                      ## imm = 0x100
	jb	LBB0_10
## %bb.7:
	cmpl	$8, -52(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_10
## %bb.8:
	leal	1(%r8), %eax
	decl	%r8d
	leaq	(%r10,%r8,4), %rcx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	addl	(%rcx), %r14d
	movzbl	%r14b, %edx
	movl	%edx, (%rcx)
	sarl	$8, %r14d
	decl	%eax
	addq	$-4, %rcx
	cmpl	$1, %eax
	jg	LBB0_9
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_krb5_nfold
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function krb5_nfold
_krb5_nfold:                            ; @krb5_nfold
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	asr	w24, w0, #3
	asr	w20, w2, #3
	mov	x8, x20
	cmp	w0, #8
	b.lo	LBB0_3
; %bb.1:
	mov	x9, x20
	mov	x10, x24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x10
	sdiv	w10, w9, w10
	msub	w10, w10, w8, w9
	mov	x9, x8
	cbnz	w10, LBB0_2
LBB0_3:
	mul	w9, w20, w24
	sdiv	w25, w9, w8
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	cmp	w25, #1
	b.lt	LBB0_9
; %bb.4:
	mov	w8, #0
	and	w9, w23, #0xfffffff8
	add	w10, w9, #13
	add	w11, w25, #1
	lsl	w12, w24, #3
	sub	w13, w9, w25, lsl #3
	orr	w13, w13, #0x7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w14, w11, #2
	sdiv	w15, w14, w24
	madd	w16, w12, w15, w12
	madd	w15, w15, w10, w16
	add	w15, w13, w15
	sdiv	w16, w15, w9
	msub	w15, w16, w9, w15
	asr	w16, w15, #3
	mvn	w17, w16
	add	w17, w24, w17
	sdiv	w0, w17, w24
	sub	w16, w24, w16
	msub	w17, w0, w24, w17
	sdiv	w0, w16, w24
	msub	w16, w0, w24, w16
	ldr	w16, [x22, w16, sxtw #2]
	ldr	w17, [x22, w17, sxtw #2]
	orr	w16, w16, w17, lsl #8
	and	w15, w15, #0x7
	add	w15, w15, #1
	sdiv	w17, w14, w20
	msub	w14, w17, w20, w14
	asr	w15, w16, w15
	lsl	x16, x14, #2
	ldr	w14, [x19, x16]
	add	w8, w14, w8
	add	w14, w8, w15, uxtb
	and	w8, w14, #0xff
	str	w8, [x19, x16]
	asr	w8, w14, #8
	sub	w11, w11, #1
	add	w13, w13, #8
	cmp	w11, #1
	b.hi	LBB0_5
; %bb.6:
	cmp	w14, #256
	ccmp	w21, #8, #8, hs
	b.lt	LBB0_9
; %bb.7:
	add	w9, w20, #1
	sub	w10, w20, #1
	add	x10, x19, w10, uxtw #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	add	w8, w11, w8
	and	w11, w8, #0xff
	str	w11, [x10], #-4
	asr	w8, w8, #8
	sub	w9, w9, #1
	cmp	w9, #1
	b.gt	LBB0_8
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_krb5_nfold
.subsections_via_symbols
