	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decrypt_internal_derived
_decrypt_internal_derived:              ## @decrypt_internal_derived
	.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
	movq	%r9, %r12
	movq	%r8, %r13
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%edi, %ebx
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r15
	movl	16(%r15), %edi
	callq	_CHECKSUMSIZE
	movq	%rax, %r14
	movq	(%r15), %rax
	addq	%r14, %rax
	cmpq	%r13, %rax
	jbe	LBB0_3
## %bb.1:
	movq	_KRB5_BAD_MSIZE@GOTPCREL(%rip), %r14
	movq	(%r14), %r15
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_N_
	movl	%ebx, %edi
	movq	%r15, %rsi
LBB0_2:
	movl	%eax, %edx
	callq	_krb5_set_error_message
	movq	(%r14), %rbx
	jmp	LBB0_21
LBB0_3:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %r12
	subq	%r14, %r12
	movq	8(%r15), %rcx
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_4
## %bb.5:
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rcx
	testq	%rdx, %rdx
	je	LBB0_8
LBB0_7:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_krb5_clear_error_message
	movq	_KRB5_BAD_MSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_21:
	movq	%rbx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_7
LBB0_8:
	movq	%r13, %rdi
	callq	_malloc
	movq	%rax, %rbx
	testq	%r13, %r13
	je	LBB0_11
## %bb.9:
	testq	%rbx, %rbx
	jne	LBB0_11
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_N_
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	jmp	LBB0_2
LBB0_11:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_memcpy
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_ENCRYPTION_USAGE
	leaq	-80(%rbp), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	__get_derived_key
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rax, %rbx
	callq	_free
	jmp	LBB0_21
LBB0_13:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	__key_schedule
	testq	%rax, %rax
	jne	LBB0_14
## %bb.15:
	movq	16(%rbp), %rax
	movq	-80(%rbp), %rsi
	movq	%rax, (%rsp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	callq	*24(%r15)
	testq	%rax, %rax
	jne	LBB0_14
## %bb.16:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%r12), %rax
	movq	%rax, -104(%rbp)
	movq	%r14, -96(%rbp)
	movl	16(%r15), %edi
	callq	_CHECKSUMTYPE
	movl	%eax, -112(%rbp)
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_INTEGRITY_USAGE
	leaq	-112(%rbp), %r9
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movl	%eax, %edx
	movq	%rbx, %rcx
	movq	%r12, %r8
	callq	_verify_checksum
	testq	%rax, %rax
	je	LBB0_17
LBB0_14:
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	jmp	LBB0_21
LBB0_17:
	movq	(%r15), %r14
	movq	%r12, %r15
	subq	%r14, %r15
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	addq	%r14, %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_memmove
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_realloc
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	jne	LBB0_20
## %bb.18:
	cmpq	%r14, %r12
	je	LBB0_20
## %bb.19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	jmp	LBB0_10
LBB0_20:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.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_derived
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decrypt_internal_derived
_decrypt_internal_derived:              ; @decrypt_internal_derived
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	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
	.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	x25, x6
	mov	x20, x5
	mov	x27, x4
	mov	x28, x3
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x21, [x1]
	ldr	w0, [x21, #16]
	bl	_CHECKSUMSIZE
	ldr	x8, [x21]
	add	x8, x8, x0
	cmp	x8, x27
	b.ls	LBB0_3
; %bb.1:
Lloh0:
	adrp	x21, _KRB5_BAD_MSIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _KRB5_BAD_MSIZE@GOTPAGEOFF]
	ldr	x20, [x21]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_N_
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_krb5_set_error_message
	ldr	x27, [x21]
	b	LBB0_12
LBB0_3:
	mov	x26, x0
	sub	x22, x27, x0
	ldr	x8, [x21, #8]
	udiv	x9, x22, x8
	msub	x8, x9, x8, x22
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_krb5_clear_error_message
Lloh6:
	adrp	x8, _KRB5_BAD_MSIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KRB5_BAD_MSIZE@GOTPAGEOFF]
Lloh8:
	ldr	x27, [x8]
	b	LBB0_12
LBB0_5:
	mov	x0, x27
	bl	_malloc
	cbz	x27, LBB0_8
; %bb.6:
	cbnz	x0, LBB0_8
LBB0_7:
Lloh9:
	adrp	x21, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x21, [x21, _ENOMEM@GOTPAGEOFF]
	ldr	x20, [x21]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_8:
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x1, x28
	mov	x2, x27
	bl	_memcpy
	mov	x0, x24
	bl	_ENCRYPTION_USAGE
	mov	x2, x0
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x23
	bl	__get_derived_key
	cbnz	x0, LBB0_10
; %bb.9:
	ldr	x1, [sp, #16]
	mov	x0, x19
	bl	__key_schedule
	cbz	x0, LBB0_13
LBB0_10:
	mov	x27, x0
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
LBB0_11:
	bl	_free
LBB0_12:
	mov	x0, x27
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_13:
	ldr	x8, [x21, #24]
	ldp	x2, x1, [sp, #8]                ; 8-byte Folded Reload
	mov	x0, x19
	mov	x28, x2
	mov	x3, x22
	mov	w4, #0
	mov	x5, x24
	mov	x6, x25
	blr	x8
	cbnz	x0, LBB0_15
; %bb.14:
	add	x8, x28, x22
	stp	x8, x26, [sp, #32]
	ldr	w0, [x21, #16]
	bl	_CHECKSUMTYPE
	str	w0, [sp, #24]
	mov	x0, x24
	bl	_INTEGRITY_USAGE
	mov	x2, x0
	add	x5, sp, #24
	mov	x0, x19
	mov	x1, x23
	mov	x3, x28
	mov	x4, x22
	bl	_verify_checksum
	cbz	x0, LBB0_16
LBB0_15:
	mov	x27, x0
	mov	x0, x28
	b	LBB0_11
LBB0_16:
	ldr	x21, [x21]
	sub	x23, x22, x21
	add	x1, x28, x21
	mov	x0, x28
	mov	x2, x23
	bl	_memmove
	mov	x0, x28
	mov	x1, x23
	bl	_realloc
	str	x0, [x20, #8]
	cbnz	x0, LBB0_19
; %bb.17:
	cmp	x22, x21
	b.eq	LBB0_19
; %bb.18:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_free
	b	LBB0_7
LBB0_19:
	mov	x27, #0
	str	x23, [x20]
	b	LBB0_12
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.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_derived
.subsections_via_symbols
