	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v5_to_kt
_v5_to_kt:                              ## @v5_to_kt
	.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	$0, (%rdx)
	cmpl	$8, 8(%rdi)
	jne	LBB0_5
## %bb.1:
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.2:
	movq	_KAFS_RXKAD_2B_KVNO@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	24(%rbx), %edi
	movq	16(%rbx), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	callq	_decode_Ticket
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movl	$-1, %eax
	cmpl	$5, -48(%rbp)
	jne	LBB0_11
## %bb.4:
	movq	_EncryptedData@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rcx
	leaq	-56(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_ASN1_MALLOC_ENCODE
	leaq	-48(%rbp), %rdi
	callq	_free_Ticket
	jmp	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_6:
	movq	_KAFS_RXKAD_K5_KVNO@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	16(%rbx), %r12
	movq	%r12, %rdi
	callq	_malloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%r12, 8(%r15)
	movl	24(%rbx), %esi
	movq	%rax, %rdi
	movl	%r12d, %edx
	callq	_memcpy
LBB0_8:
	leaq	16(%r15), %r12
	movl	%r13d, 16(%r15)
	movq	24(%r15), %rdi
	movl	12(%rbx), %esi
	movl	$8, %edx
	callq	_memcpy
	movl	%r14d, 40(%r15)
	movl	4(%rbx), %eax
	movl	%eax, 36(%r15)
	movl	(%rbx), %eax
	movl	%eax, 32(%r15)
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	__kafs_fixup_viceid
	xorl	%eax, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_KAFS_RXKAD_2B_KVNO,4,2         ## @KAFS_RXKAD_2B_KVNO
	.comm	_EncryptedData,4,2              ## @EncryptedData
	.comm	_KRB5KRB_ERR_GENERIC,4,2        ## @KRB5KRB_ERR_GENERIC
	.comm	_KAFS_RXKAD_K5_KVNO,4,2         ## @KAFS_RXKAD_K5_KVNO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_v5_to_kt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v5_to_kt
_v5_to_kt:                              ; @v5_to_kt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	str	xzr, [x2]
	ldr	w8, [x0, #8]
	cmp	w8, #8
	b.ne	LBB0_5
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	cbz	w3, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _KAFS_RXKAD_2B_KVNO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KAFS_RXKAD_2B_KVNO@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	w0, [x21, #24]
	ldr	x1, [x21, #16]
	add	x2, sp, #8
	mov	x3, sp
	bl	_decode_Ticket
	cbnz	w0, LBB0_11
; %bb.3:
	ldr	w8, [sp, #8]
	cmp	w8, #5
	b.ne	LBB0_10
; %bb.4:
Lloh3:
	adrp	x8, _EncryptedData@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EncryptedData@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x8, sp, #8
	orr	x3, x8, #0x4
	mov	x4, sp
	mov	w5, #0
	bl	_ASN1_MALLOC_ENCODE
	add	x0, sp, #8
	bl	_free_Ticket
	b	LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_6:
Lloh9:
	adrp	x8, _KAFS_RXKAD_K5_KVNO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KAFS_RXKAD_K5_KVNO@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
	ldr	x22, [x21, #16]
	mov	x0, x22
	bl	_malloc
	str	x0, [x20]
	cbz	x0, LBB0_9
; %bb.7:
	str	x22, [x20, #8]
	ldr	w1, [x21, #24]
	mov	x2, x22
	bl	_memcpy
LBB0_8:
	str	w23, [x20, #16]!
	ldr	x0, [x20, #8]
	ldr	w1, [x21, #12]
	mov	w2, #8
	bl	_memcpy
	str	w19, [x20, #24]
	ldr	d0, [x21]
	str	d0, [x20, #16]
	mov	x0, x20
	mov	x1, x19
	bl	__kafs_fixup_viceid
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_10:
	mov	w0, #-1
LBB0_11:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_KAFS_RXKAD_2B_KVNO,4,2         ; @KAFS_RXKAD_2B_KVNO
	.comm	_EncryptedData,4,2              ; @EncryptedData
	.comm	_KRB5KRB_ERR_GENERIC,4,2        ; @KRB5KRB_ERR_GENERIC
	.comm	_KAFS_RXKAD_K5_KVNO,4,2         ; @KAFS_RXKAD_K5_KVNO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_v5_to_kt
.subsections_via_symbols
