	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdb_unseal_key_mkey            ## -- Begin function hdb_unseal_key_mkey
	.p2align	4, 0x90
_hdb_unseal_key_mkey:                   ## @hdb_unseal_key_mkey
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r15
	movq	%rdx, %rsi
	callq	__hdb_find_master_key
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r12
	movq	_HDB_KU_MKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%r15), %r8
	movq	16(%r15), %rcx
	leaq	-56(%rbp), %r9
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	__hdb_mkey_decrypt
	movq	%rax, %rbx
	movq	_KRB5KRB_AP_ERR_BAD_INTEGRITY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_4
## %bb.3:
	movq	8(%r15), %r8
	movq	16(%r15), %rcx
	leaq	-56(%rbp), %r9
	movl	%r14d, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	__hdb_mkey_decrypt
	movq	%rax, %rbx
LBB0_4:
	testq	%rbx, %rbx
	jne	LBB0_10
## %bb.5:
	movl	24(%r15), %esi
	leaq	-40(%rbp), %rdx
	movl	%r14d, %edi
	callq	_krb5_enctype_keysize
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	%rax, %rbx
	leaq	-56(%rbp), %rdi
	callq	_krb5_data_free
	jmp	LBB0_10
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_8:
	movq	_HDB_ERR_NO_MKEY@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rbx
LBB0_10:
	movq	%rbx, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-40(%rbp), %rax
	cmpq	-56(%rbp), %rax
	jbe	LBB0_13
## %bb.12:
	leaq	-56(%rbp), %rdi
	callq	_krb5_data_free
	movq	_KRB5_BAD_KEYSIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_13:
	leaq	8(%r15), %r14
	movq	8(%r15), %rdx
	movq	16(%r15), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_memset
	movq	16(%r15), %rdi
	callq	_free
	movups	-56(%rbp), %xmm0
	movups	%xmm0, (%r14)
	movq	-40(%rbp), %rax
	movq	%rax, 8(%r15)
	movq	(%r15), %rdi
	callq	_free
	movq	$0, (%r15)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_HDB_ERR_NO_MKEY,8,3            ## @HDB_ERR_NO_MKEY
	.comm	_HDB_KU_MKEY,4,2                ## @HDB_KU_MKEY
	.comm	_KRB5KRB_AP_ERR_BAD_INTEGRITY,8,3 ## @KRB5KRB_AP_ERR_BAD_INTEGRITY
	.comm	_KRB5_BAD_KEYSIZE,8,3           ## @KRB5_BAD_KEYSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdb_unseal_key_mkey            ; -- Begin function hdb_unseal_key_mkey
	.p2align	2
_hdb_unseal_key_mkey:                   ; @hdb_unseal_key_mkey
	.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, x0
	ldr	x0, [x1]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x1, x2
	bl	__hdb_find_master_key
	cbz	x0, LBB0_8
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x8, _HDB_KU_MKEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDB_KU_MKEY@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x23, x19
	ldp	x4, x3, [x23, #8]!
	add	x5, sp, #16
	mov	x0, x20
	mov	x1, x22
	bl	__hdb_mkey_decrypt
	mov	x21, x0
Lloh3:
	adrp	x8, _KRB5KRB_AP_ERR_BAD_INTEGRITY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KRB5KRB_AP_ERR_BAD_INTEGRITY@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x4, x3, [x19, #8]
	add	x5, sp, #16
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	__hdb_mkey_decrypt
	mov	x21, x0
LBB0_4:
	cbnz	x21, LBB0_10
; %bb.5:
	ldr	w1, [x19, #24]
	add	x2, sp, #8
	mov	x0, x20
	bl	_krb5_enctype_keysize
	cbz	x0, LBB0_11
; %bb.6:
	mov	x21, x0
	add	x0, sp, #16
	bl	_krb5_data_free
	b	LBB0_10
LBB0_7:
	mov	x21, #0
	b	LBB0_10
LBB0_8:
Lloh6:
	adrp	x8, _HDB_ERR_NO_MKEY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDB_ERR_NO_MKEY@GOTPAGEOFF]
LBB0_9:
	ldr	x21, [x8]
LBB0_10:
	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
LBB0_11:
	ldp	x8, x9, [sp, #8]
	cmp	x8, x9
	b.ls	LBB0_13
; %bb.12:
	add	x0, sp, #16
	bl	_krb5_data_free
Lloh8:
	adrp	x8, _KRB5_BAD_KEYSIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KRB5_BAD_KEYSIZE@GOTPAGEOFF]
	b	LBB0_9
LBB0_13:
	ldp	x2, x0, [x19, #8]
	mov	w1, #0
	bl	_memset
	ldr	x0, [x19, #16]
	bl	_free
	ldr	q0, [sp, #16]
	str	q0, [x23]
	ldr	x8, [sp, #8]
	str	x8, [x19, #8]
	ldr	x0, [x19]
	bl	_free
	mov	x21, #0
	str	xzr, [x19]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HDB_ERR_NO_MKEY,8,3            ; @HDB_ERR_NO_MKEY
	.comm	_HDB_KU_MKEY,4,2                ; @HDB_KU_MKEY
	.comm	_KRB5KRB_AP_ERR_BAD_INTEGRITY,8,3 ; @KRB5KRB_AP_ERR_BAD_INTEGRITY
	.comm	_KRB5_BAD_KEYSIZE,8,3           ; @KRB5_BAD_KEYSIZE
.subsections_via_symbols
