	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdb_entry_get_password         ## -- Begin function hdb_entry_get_password
	.p2align	4, 0x90
_hdb_entry_get_password:                ## @hdb_entry_get_password
	.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	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r12
	movl	%edi, %r15d
	movq	_choice_HDB_extension_data_password@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, %rdi
	callq	_hdb_find_extension
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %rbx
	cmpq	$0, 8(%r12)
	je	LBB0_6
## %bb.2:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:
	movl	(%r12), %esi
	callq	__hdb_find_master_key
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_HDB_KU_MKEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	8(%rbx), %r8d
	movl	12(%rbx), %ecx
	leaq	-56(%rbp), %r9
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	__hdb_mkey_decrypt
	jmp	LBB0_7
LBB0_6:
	addq	$8, %rbx
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_der_copy_octet_string
LBB0_7:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%r15d, %edi
	callq	_krb5_clear_error_message
	jmp	LBB0_18
LBB0_14:
	movl	(%r13), %esi
	leaq	-56(%rbp), %rdx
	movl	%r15d, %edi
	callq	_krb5_unparse_name
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	%r15d, %edi
	callq	_krb5_clear_error_message
	jmp	LBB0_17
LBB0_9:
	movq	-56(%rbp), %rdi
	movslq	-48(%rbp), %rax
	cmpb	$0, -1(%rax,%rdi)
	je	LBB0_11
## %bb.10:
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_13:
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_krb5_set_error_message
	movl	(%rbx), %ebx
	jmp	LBB0_18
LBB0_15:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rcx
	leaq	L_.str.3(%rip), %rdx
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_krb5_set_error_message
	movq	-56(%rbp), %rdi
	callq	_free
LBB0_17:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_HDB_ERR_NO_MKEY@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_krb5_set_error_message
	movl	(%r14), %ebx
	jmp	LBB0_18
LBB0_11:
	callq	_strdup
	movq	%rax, (%r14)
	leaq	-56(%rbp), %rdi
	callq	_der_free_octet_string
	xorl	%ebx, %ebx
	cmpq	$0, (%r14)
	jne	LBB0_18
## %bb.12:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_choice_HDB_extension_data_password,4,2 ## @choice_HDB_extension_data_password
	.comm	_HDB_ERR_NO_MKEY,4,2            ## @HDB_ERR_NO_MKEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"master key %d missing"

	.comm	_HDB_KU_MKEY,4,2                ## @HDB_KU_MKEY
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"malformed password"

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

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.3:                               ## @.str.3
	.asciz	"no password attribute for %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdb_entry_get_password         ; -- Begin function hdb_entry_get_password
	.p2align	2
_hdb_entry_get_password:                ; @hdb_entry_get_password
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _choice_HDB_extension_data_password@GOTPAGE
Lloh1:
	ldr	x8, [x8, _choice_HDB_extension_data_password@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x2
	bl	_hdb_find_extension
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	x0, [x21]
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w1, [x22]
	bl	__hdb_find_master_key
	cbz	x0, LBB0_12
; %bb.4:
	mov	x1, x0
Lloh3:
	adrp	x8, _HDB_KU_MKEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDB_KU_MKEY@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldp	w4, w3, [x21, #8]
	add	x5, sp, #16
	mov	x0, x19
	bl	__hdb_mkey_decrypt
	mov	x21, x0
	cbnz	w0, LBB0_8
LBB0_5:
	ldr	x0, [sp, #16]
	ldrsw	x8, [sp, #24]
	add	x8, x8, x0
	ldurb	w8, [x8, #-1]
	cbz	w8, LBB0_13
; %bb.6:
Lloh6:
	adrp	x20, _EINVAL@GOTPAGE
Lloh7:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_7:
	add	x0, x21, #8
	add	x1, sp, #16
	bl	_der_copy_octet_string
	mov	x21, x0
	cbz	w0, LBB0_5
LBB0_8:
	mov	x0, x19
	bl	_krb5_clear_error_message
	b	LBB0_18
LBB0_9:
	ldr	w1, [x23]
	add	x2, sp, #16
	mov	x0, x19
	bl	_krb5_unparse_name
Lloh10:
	adrp	x20, _ENOENT@GOTPAGE
Lloh11:
	ldr	x20, [x20, _ENOENT@GOTPAGEOFF]
	cbz	w0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_krb5_clear_error_message
	b	LBB0_17
LBB0_11:
	ldr	w1, [x20]
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_krb5_set_error_message
	ldr	x0, [sp, #16]
	bl	_free
	b	LBB0_17
LBB0_12:
Lloh14:
	adrp	x20, _HDB_ERR_NO_MKEY@GOTPAGE
Lloh15:
	ldr	x20, [x20, _HDB_ERR_NO_MKEY@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	x8, [x21]
	ldr	x8, [x8]
	str	x8, [sp]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_16
LBB0_13:
	bl	_strdup
	str	x0, [x20]
	add	x0, sp, #16
	bl	_der_free_octet_string
	ldr	x8, [x20]
	cbz	x8, LBB0_15
; %bb.14:
	mov	w21, #0
	b	LBB0_18
LBB0_15:
Lloh18:
	adrp	x20, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x20, [x20, _ENOMEM@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_krb5_set_error_message
LBB0_17:
	ldr	w21, [x20]
LBB0_18:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_choice_HDB_extension_data_password,4,2 ; @choice_HDB_extension_data_password
	.comm	_HDB_ERR_NO_MKEY,4,2            ; @HDB_ERR_NO_MKEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"master key %d missing"

	.comm	_HDB_KU_MKEY,4,2                ; @HDB_KU_MKEY
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"malformed password"

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

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.3:                               ; @.str.3
	.asciz	"no password attribute for %s"

.subsections_via_symbols
