	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decrypt_internal
_decrypt_internal:                      ## @decrypt_internal
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	8(%rsi), %r15
	movq	(%r15), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	testq	%rdx, %rdx
	je	LBB0_5
LBB0_4:
	callq	_krb5_clear_error_message
	movq	_KRB5_BAD_MSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_22
LBB0_1:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_4
LBB0_5:
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	16(%r15), %edi
	callq	_CHECKSUMSIZE
	movq	8(%r15), %rcx
	addq	%rax, %rcx
	cmpq	%rbx, %rcx
	jbe	LBB0_8
## %bb.6:
	movq	_KRB5_BAD_MSIZE@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_8:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_malloc
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.9:
	testq	%rax, %rax
	jne	LBB0_11
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	leaq	L_.str.2(%rip), %rdi
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	callq	_N_
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_krb5_set_error_message
	movq	(%r14), %r13
LBB0_22:
	movq	%r13, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rax, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	callq	__key_schedule
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rax, %r13
LBB0_17:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	jmp	LBB0_22
LBB0_13:
	movq	%r12, (%rsp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	*24(%r15)
	testq	%rax, %rax
	jne	LBB0_14
## %bb.15:
	leaq	-60(%rbp), %rdi
	movq	8(%r15), %rsi
	addq	%r14, %rsi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_krb5_data_copy
	testq	%rax, %rax
	je	LBB0_16
LBB0_14:
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_22
LBB0_16:
	movq	8(%r15), %rdi
	addq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_memset
	movl	16(%r15), %edi
	callq	_CHECKSUMTYPE
	movl	%eax, -64(%rbp)
	movq	%r14, %rcx
	leaq	-64(%rbp), %r14
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rbx, %r8
	movq	%r14, %r9
	callq	_verify_checksum
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_free_Checksum
	testq	%r13, %r13
	jne	LBB0_17
## %bb.18:
	movq	8(%r15), %rax
	leaq	(%rax,%r12), %r15
	movq	%rbx, %r14
	subq	%r15, %r14
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	addq	%rax, %rsi
	addq	%r12, %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_memmove
	movq	%r13, %r12
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_realloc
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	jne	LBB0_21
## %bb.19:
	cmpq	%rbx, %r15
	je	LBB0_21
## %bb.20:
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_10
LBB0_21:
	movq	%r14, (%rcx)
	xorl	%r13d, %r13d
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_KRB5_BAD_MSIZE,8,3             ## @KRB5_BAD_MSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Encrypted data shorter then checksum + confunder"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_ENOMEM,8,3                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"malloc: out of memory"

	.no_dead_strip	_decrypt_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decrypt_internal
_decrypt_internal:                      ; @decrypt_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	ldr	x27, [x1, #8]
	ldr	x8, [x27]
	udiv	x9, x3, x8
	msub	x8, x9, x8, x3
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_krb5_clear_error_message
Lloh0:
	adrp	x8, _KRB5_BAD_MSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KRB5_BAD_MSIZE@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	b	LBB0_13
LBB0_2:
	mov	x25, x5
	mov	x20, x4
	mov	x21, x3
	mov	x24, x2
	mov	x26, x1
	ldr	w0, [x27, #16]
	bl	_CHECKSUMSIZE
	ldr	x8, [x27, #8]
	add	x8, x8, x0
	cmp	x8, x21
	b.ls	LBB0_4
; %bb.3:
Lloh3:
	adrp	x21, _KRB5_BAD_MSIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _KRB5_BAD_MSIZE@GOTPAGEOFF]
	ldr	x20, [x21]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
	mov	x23, x0
	mov	x0, x21
	bl	_malloc
	mov	x22, x0
	cbz	x21, LBB0_8
; %bb.5:
	cbnz	x22, LBB0_8
LBB0_6:
Lloh7:
	adrp	x21, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x21, [x21, _ENOMEM@GOTPAGEOFF]
	ldr	x20, [x21]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_N_
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_krb5_set_error_message
	ldr	x24, [x21]
	b	LBB0_13
LBB0_8:
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	bl	_memcpy
	mov	x0, x19
	mov	x1, x26
	bl	__key_schedule
	cbnz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x27, #24]
	mov	x0, x19
	mov	x1, x26
	mov	x2, x22
	mov	x3, x21
	mov	w4, #0
	mov	w5, #0
	mov	x6, x25
	blr	x8
	cbnz	x0, LBB0_11
; %bb.10:
	add	x8, sp, #8
	orr	x0, x8, #0x4
	ldr	x8, [x27, #8]
	add	x1, x22, x8
	mov	x2, x23
	bl	_krb5_data_copy
	cbz	x0, LBB0_14
LBB0_11:
	mov	x24, x0
LBB0_12:
	mov	x0, x22
	bl	_free
LBB0_13:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	ldr	x8, [x27, #8]
	add	x0, x22, x8
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	ldr	w0, [x27, #16]
	bl	_CHECKSUMTYPE
	str	w0, [sp, #8]
	add	x5, sp, #8
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	mov	x3, x22
	mov	x4, x21
	bl	_verify_checksum
	mov	x24, x0
	add	x0, sp, #8
	bl	_free_Checksum
	cbnz	x24, LBB0_12
; %bb.15:
	ldr	x8, [x27, #8]
	add	x24, x8, x23
	sub	x25, x21, x24
	add	x8, x22, x8
	add	x1, x8, x23
	mov	x0, x22
	mov	x2, x25
	bl	_memmove
	mov	x0, x22
	mov	x1, x25
	bl	_realloc
	str	x0, [x20, #8]
	cbnz	x0, LBB0_18
; %bb.16:
	cmp	x24, x21
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x22
	bl	_free
	b	LBB0_6
LBB0_18:
	mov	x24, #0
	str	x25, [x20]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_KRB5_BAD_MSIZE,8,3             ; @KRB5_BAD_MSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Encrypted data shorter then checksum + confunder"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_ENOMEM,8,3                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"malloc: out of memory"

	.no_dead_strip	_decrypt_internal
.subsections_via_symbols
