	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_master_encryptionkey
_read_master_encryptionkey:             ## @read_master_encryptionkey
	.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	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r12, %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movl	%eax, %ebx
	leaq	-304(%rbp), %rsi
	movl	%eax, %edi
	movl	$256, %edx                      ## imm = 0x100
	callq	_read
	movq	%rax, %r13
	movl	%ebx, %edi
	callq	_close
	testq	%r13, %r13
	js	LBB0_4
## %bb.5:
	leaq	-304(%rbp), %r12
	leaq	-312(%rbp), %rdx
	leaq	-320(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_decode_EncryptionKey
	movl	%eax, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	testl	%ebx, %ebx
	jne	LBB0_10
## %bb.6:
	movq	-312(%rbp), %rax
	movq	_ETYPE_DES_CBC_CRC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_ETYPE_DES_CBC_MD5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_8:
	movq	_ETYPE_DES_CFB64_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -312(%rbp)
LBB0_9:
	leaq	-312(%rbp), %r12
	movl	%r15d, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_hdb_process_master_key
	movl	%eax, %ebx
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_krb5_free_keyblock_contents
	jmp	LBB0_10
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdx
LBB0_2:
	movl	%r15d, %edi
	movl	%ebx, %esi
	movq	%r12, %rcx
	movl	%eax, %r8d
	callq	_krb5_set_error_message
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to open %s: %s"

L_.str.1:                               ## @.str.1
	.asciz	"error reading %s: %s"

	.comm	_ETYPE_DES_CBC_CRC,8,3          ## @ETYPE_DES_CBC_CRC
	.comm	_ETYPE_DES_CBC_MD5,8,3          ## @ETYPE_DES_CBC_MD5
	.comm	_ETYPE_DES_CFB64_NONE,8,3       ## @ETYPE_DES_CFB64_NONE
	.no_dead_strip	_read_master_encryptionkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_master_encryptionkey
_read_master_encryptionkey:             ; @read_master_encryptionkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x24, x23, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _O_RDONLY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_RDONLY@GOTPAGEOFF]
	stur	x8, [x29, #-56]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _O_BINARY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _O_BINARY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x22
	bl	_open
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x23, x0
	add	x1, sp, #24
	mov	w2, #256
	bl	_read
	mov	x21, x0
	mov	x0, x23
	bl	_close
	tbnz	x21, #63, LBB0_7
; %bb.2:
	add	x0, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x1, x21
	bl	_decode_EncryptionKey
	mov	x21, x0
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	cbnz	w21, LBB0_9
; %bb.3:
	ldr	x8, [sp, #16]
Lloh9:
	adrp	x9, _ETYPE_DES_CBC_CRC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ETYPE_DES_CBC_CRC@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _ETYPE_DES_CBC_MD5@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ETYPE_DES_CBC_MD5@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _ETYPE_DES_CFB64_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETYPE_DES_CFB64_NONE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [sp, #16]
LBB0_5:
	add	x2, sp, #16
	mov	x0, x19
	mov	w1, #0
	mov	w3, #0
	mov	x4, x20
	bl	_hdb_process_master_key
	mov	x21, x0
	add	x1, sp, #16
	mov	x0, x19
	bl	_krb5_free_keyblock_contents
	b	LBB0_9
LBB0_6:
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_strerror
	mov	x4, x0
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh23:
	adrp	x8, _errno@GOTPAGE
Lloh24:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh25:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_strerror
	mov	x4, x0
Lloh26:
	adrp	x2, l_.str.1@PAGE
Lloh27:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	bl	_krb5_set_error_message
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x21
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to open %s: %s"

l_.str.1:                               ; @.str.1
	.asciz	"error reading %s: %s"

	.comm	_ETYPE_DES_CBC_CRC,8,3          ; @ETYPE_DES_CBC_CRC
	.comm	_ETYPE_DES_CBC_MD5,8,3          ; @ETYPE_DES_CBC_MD5
	.comm	_ETYPE_DES_CFB64_NONE,8,3       ; @ETYPE_DES_CFB64_NONE
	.no_dead_strip	_read_master_encryptionkey
.subsections_via_symbols
