	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__krb5_pk_octetstring2key       ## -- Begin function _krb5_pk_octetstring2key
	.p2align	4, 0x90
__krb5_pk_octetstring2key:              ## @_krb5_pk_octetstring2key
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -144(%rbp)                 ## 8-byte Spill
	movq	%r8, -136(%rbp)                 ## 8-byte Spill
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movl	%esi, %r15d
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%esi, %edi
	callq	__krb5_find_enctype
	movq	%rax, %r12
	movq	%rsp, %r13
	movq	_SHA_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movq	(%r12), %rax
	movl	(%rax), %eax
	leal	7(%rax), %ecx
	addl	$14, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	movslq	%eax, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_malloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_create
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movl	%r15d, -76(%rbp)                ## 4-byte Spill
	movl	%r14d, -80(%rbp)                ## 4-byte Spill
	movb	$0, -49(%rbp)
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	xorl	%r14d, %r14d
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_EVP_DigestFinal_ex
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %rbx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_min
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movl	%eax, %edx
	callq	_memcpy
	incb	-49(%rbp)
	addq	%r13, %r14
	subq	%r13, %r12
	cmpq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	jae	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_EVP_sha1
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_EVP_DigestInit_ex
	movl	$1, %edx
	movq	%rbx, %rdi
	leaq	-49(%rbp), %rsi
	callq	_EVP_DigestUpdate
	movq	%rbx, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	callq	_EVP_DigestUpdate
	movq	-136(%rbp), %rax                ## 8-byte Reload
	testq	%rax, %rax
	movq	-144(%rbp), %r15                ## 8-byte Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rax), %rsi
	movq	8(%rax), %rdx
	movq	%rbx, %rdi
	callq	_EVP_DigestUpdate
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rsi
	movq	8(%r15), %rdx
	movq	%rbx, %rdi
	callq	_EVP_DigestUpdate
	jmp	LBB0_11
LBB0_1:
	movl	%r15d, %r12d
	movq	_KRB5_PROG_ETYPE_NOSUPP@GOTPCREL(%rip), %rax
	movl	%r14d, %ebx
	movl	(%rax), %r15d
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_N_
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_krb5_set_error_message
	movl	(%r14), %ebx
	jmp	LBB0_14
LBB0_12:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	xorl	%esi, %esi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movq	%rbx, %rdi
	callq	_EVP_MD_CTX_destroy
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rbp), %r8
	callq	_krb5_random_to_key
	movl	%eax, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_13
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_N_
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_krb5_set_error_message
	movl	(%r12), %ebx
	jmp	LBB0_14
LBB0_5:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	_ENOMEM@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_N_
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_krb5_set_error_message
	movl	(%r12), %ebx
LBB0_13:
	movq	-88(%rbp), %r13                 ## 8-byte Reload
LBB0_14:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA_DIGEST_LENGTH,4,2          ## @SHA_DIGEST_LENGTH
	.comm	_KRB5_PROG_ETYPE_NOSUPP,4,2     ## @KRB5_PROG_ETYPE_NOSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"encryption type %d not supported"

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__krb5_pk_octetstring2key       ; -- Begin function _krb5_pk_octetstring2key
	.p2align	2
__krb5_pk_octetstring2key:              ; @_krb5_pk_octetstring2key
	.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, #64
	mov	x19, x6
	mov	x22, x5
	mov	x23, x4
	stp	x2, x3, [x29, #-112]            ; 16-byte Folded Spill
	mov	x25, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	x0, x1
	bl	__krb5_find_enctype
	mov	x21, sp
Lloh3:
	adrp	x8, _SHA_DIGEST_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SHA_DIGEST_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
	mov	x9, x26
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x26, #15
	and	x9, x9, #0x1fffffff0
	sub	x28, x8, x9
	mov	sp, x28
	cbz	x0, LBB0_9
; %bb.1:
	ldr	x8, [x0]
	ldr	w8, [x8]
	add	w9, w8, #7
	add	w8, w8, #14
	cmp	w9, #0
	csel	w8, w8, w9, lt
	sbfx	x20, x8, #3, #29
	mov	x0, x20
	bl	_malloc
	cbz	x0, LBB0_12
; %bb.2:
	mov	x27, x0
	stur	x19, [x29, #-120]               ; 8-byte Folded Spill
	bl	_EVP_MD_CTX_create
	cbz	x0, LBB0_11
; %bb.3:
	mov	x19, x0
	stur	x25, [x29, #-144]               ; 8-byte Folded Spill
	stur	w24, [x29, #-132]               ; 4-byte Folded Spill
	stur	x21, [x29, #-128]               ; 8-byte Folded Spill
	mov	x25, #0
	sturb	wzr, [x29, #-89]
	mov	x21, x20
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x28
	mov	x2, #0
	bl	_EVP_DigestFinal_ex
	add	x24, x27, x25
	mov	x0, x21
	mov	x1, x26
	bl	_min
	mov	x2, x0
	mov	x0, x24
	mov	x1, x28
	bl	_memcpy
	ldurb	w8, [x29, #-89]
	add	w8, w8, #1
	sturb	w8, [x29, #-89]
	sub	x21, x21, x26
	add	x25, x25, x26
	cmp	x25, x20
	b.hs	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_EVP_sha1
	mov	x1, x0
	mov	x0, x19
	mov	x2, #0
	bl	_EVP_DigestInit_ex
	sub	x1, x29, #89
	mov	x0, x19
	mov	w2, #1
	bl	_EVP_DigestUpdate
	mov	x0, x19
	ldp	x1, x2, [x29, #-112]            ; 16-byte Folded Reload
	bl	_EVP_DigestUpdate
	cbz	x23, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x1, x2, [x23]
	mov	x0, x19
	bl	_EVP_DigestUpdate
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	x22, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x1, x2, [x22]
	mov	x0, x19
	bl	_EVP_DigestUpdate
	b	LBB0_4
LBB0_9:
Lloh8:
	adrp	x20, _KRB5_PROG_ETYPE_NOSUPP@GOTPAGE
Lloh9:
	ldr	x20, [x20, _KRB5_PROG_ETYPE_NOSUPP@GOTPAGEOFF]
	ldr	w19, [x20]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_N_
	mov	x2, x0
	str	x25, [sp, #-16]!
	mov	x0, x24
	mov	x1, x19
	bl	_krb5_set_error_message
	add	sp, sp, #16
	b	LBB0_13
LBB0_10:
	mov	x0, x28
	mov	w1, #0
	mov	x2, x26
	bl	_memset
	mov	x0, x19
	bl	_EVP_MD_CTX_destroy
	ldur	w0, [x29, #-132]                ; 4-byte Folded Reload
	ldur	x1, [x29, #-144]                ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x27
	mov	x3, x20
	ldur	x4, [x29, #-120]                ; 8-byte Folded Reload
	bl	_krb5_random_to_key
	mov	x19, x0
	mov	x0, x27
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, x27
	bl	_free
	ldur	x21, [x29, #-128]               ; 8-byte Folded Reload
	b	LBB0_14
LBB0_11:
	mov	x0, x27
	bl	_free
LBB0_12:
Lloh14:
	adrp	x20, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x20, [x20, _ENOMEM@GOTPAGEOFF]
	ldr	w19, [x20]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_N_
	mov	x2, x0
	mov	x0, x24
	mov	x1, x19
	bl	_krb5_set_error_message
LBB0_13:
	ldr	w19, [x20]
LBB0_14:
	mov	sp, x21
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x19
	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_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA_DIGEST_LENGTH,4,2          ; @SHA_DIGEST_LENGTH
	.comm	_KRB5_PROG_ETYPE_NOSUPP,4,2     ; @KRB5_PROG_ETYPE_NOSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"encryption type %d not supported"

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

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

.subsections_via_symbols
