	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kadm5_log_replay_modify
_kadm5_log_replay_modify:               ## @kadm5_log_replay_modify
	.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	$192, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r15d
	movq	%rdi, %r14
	leaq	-216(%rbp), %rdi
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_memset
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_int32
	addl	$-4, %r15d
	leaq	-40(%rbp), %rdi
	movl	%r15d, %esi
	callq	_krb5_data_alloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r12
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rsi
	callq	_krb5_set_error_message
	jmp	LBB0_74
LBB0_2:
	movl	-40(%rbp), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_krb5_storage_read
	movl	(%r14), %edi
	leaq	-40(%rbp), %rbx
	leaq	-216(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_hdb_value2entry
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_krb5_data_free
	testq	%r12, %r12
	jne	LBB0_74
## %bb.3:
	leaq	-128(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_memset
	movq	8(%r14), %rsi
	movl	(%r14), %edi
	movq	_HDB_F_DECRYPT@GOTPCREL(%rip), %rax
	movq	_HDB_F_GET_ANY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	-136(%rbp), %edx
	movq	_HDB_F_ADMIN_DATA@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	xorl	%r8d, %r8d
	movq	%rbx, %r9
	callq	*8(%rsi)
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_73
## %bb.4:
	movl	-36(%rbp), %eax
	movq	_KADM5_PRINC_EXPIRE_TIME@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.5:
	movq	-144(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.7:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movl	$4, %edi
	callq	_malloc
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_32
## %bb.9:
	movq	-144(%rbp), %rcx
LBB0_10:
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	-36(%rbp), %eax
	jmp	LBB0_11
LBB0_6:
	movq	$0, -56(%rbp)
LBB0_11:
	movq	_KADM5_PW_EXPIRATION@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.12:
	movq	-152(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.14:
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:
	movl	$4, %edi
	callq	_malloc
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_32
## %bb.16:
	movq	-152(%rbp), %rcx
LBB0_17:
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	-36(%rbp), %eax
	jmp	LBB0_18
LBB0_13:
	movq	$0, -64(%rbp)
LBB0_18:
	movq	_KADM5_LAST_PWD_CHANGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_75
## %bb.19:
	movq	_KADM5_ATTRIBUTES@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.20:
	movl	-160(%rbp), %ecx
	movl	%ecx, -72(%rbp)
LBB0_21:
	movq	_KADM5_MAX_LIFE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_28
## %bb.22:
	movq	-168(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_23
## %bb.24:
	movq	-80(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_27
## %bb.25:
	movl	$4, %edi
	callq	_malloc
	movq	%rax, -80(%rbp)
	testq	%rax, %rax
	je	LBB0_32
## %bb.26:
	movq	-168(%rbp), %rcx
LBB0_27:
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	-36(%rbp), %eax
	jmp	LBB0_28
LBB0_23:
	movq	$0, -80(%rbp)
LBB0_28:
	movq	_KADM5_MOD_TIME@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_36
## %bb.29:
	movq	_KADM5_MOD_NAME@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_36
## %bb.30:
	movq	-88(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.33:
	callq	_free_Event
	movq	-88(%rbp), %rsi
	jmp	LBB0_34
LBB0_31:
	movl	$4, %edi
	callq	_malloc
	movq	%rax, %rsi
	movq	%rax, -88(%rbp)
	testq	%rax, %rax
	je	LBB0_32
LBB0_34:
	movq	-176(%rbp), %rdi
	callq	_copy_Event
	testq	%rax, %rax
	je	LBB0_35
LBB0_62:
	movq	%rax, %r12
	jmp	LBB0_63
LBB0_35:
	movl	-36(%rbp), %eax
LBB0_36:
	movq	_KADM5_KVNO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_38
## %bb.37:
	movl	-184(%rbp), %ecx
	movl	%ecx, -96(%rbp)
LBB0_38:
	movq	_KADM5_MKVNO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_75
## %bb.39:
	movq	_KADM5_AUX_ATTRIBUTES@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_75
## %bb.40:
	movq	_KADM5_POLICY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_75
## %bb.41:
	movq	_KADM5_POLICY_CLR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_75
## %bb.42:
	movq	_KADM5_MAX_RLIFE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_49
## %bb.43:
	movq	-192(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_44
## %bb.45:
	movq	-104(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_48
## %bb.46:
	movl	$4, %edi
	callq	_malloc
	movq	%rax, -104(%rbp)
	testq	%rax, %rax
	je	LBB0_32
## %bb.47:
	movq	-192(%rbp), %rcx
LBB0_48:
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	-36(%rbp), %eax
	jmp	LBB0_49
LBB0_32:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_63
LBB0_44:
	movq	$0, -104(%rbp)
LBB0_49:
	movq	_KADM5_LAST_SUCCESS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_75
## %bb.50:
	movq	_KADM5_LAST_FAILED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_75
## %bb.51:
	movq	_KADM5_FAIL_AUTH_COUNT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_75
## %bb.52:
	movq	_KADM5_KEY_DATA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_64
## %bb.53:
	cmpq	$0, -120(%rbp)
	je	LBB0_56
## %bb.54:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_55:                                ## =>This Inner Loop Header: Depth=1
	movq	-112(%rbp), %rdi
	addq	%r12, %rdi
	callq	_free_Key
	incq	%rbx
	addq	$4, %r12
	cmpq	-120(%rbp), %rbx
	jb	LBB0_55
LBB0_56:
	movq	-112(%rbp), %rdi
	callq	_free
	movq	-208(%rbp), %rax
	movq	%rax, -120(%rbp)
	shll	$2, %r15d
	movl	%r15d, %edi
	callq	_malloc
	movq	%rax, -112(%rbp)
	testq	%rax, %rax
	je	LBB0_76
## %bb.57:
	cmpq	$0, -120(%rbp)
	je	LBB0_64
## %bb.58:
	movq	-200(%rbp), %rdi
	movq	%rax, %rsi
	callq	_copy_Key
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_59
LBB0_63:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rsi
	callq	_krb5_set_error_message
	jmp	LBB0_73
LBB0_76:
	movl	(%r14), %edi
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdx
	callq	_krb5_set_error_message
	movq	(%rbx), %r12
	jmp	LBB0_74
LBB0_59:
	movl	$4, %esi
	xorl	%ebx, %ebx
LBB0_60:                                ## =>This Inner Loop Header: Depth=1
	incq	%rbx
	cmpq	-120(%rbp), %rbx
	jae	LBB0_64
## %bb.61:                              ##   in Loop: Header=BB0_60 Depth=1
	leaq	4(%rsi), %r15
	movq	-200(%rbp), %rdi
	addq	%rsi, %rdi
	addq	-112(%rbp), %rsi
	callq	_copy_Key
	movq	%r15, %rsi
	testq	%rax, %rax
	je	LBB0_60
	jmp	LBB0_62
LBB0_64:
	movq	_KADM5_TL_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -36(%rbp)
	je	LBB0_72
## %bb.65:
	movq	-216(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_72
## %bb.66:
	movq	-128(%rbp), %r15
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, -128(%rbp)
	testq	%rax, %rax
	je	LBB0_67
## %bb.68:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_copy_HDB_extensions
	testq	%rax, %rax
	je	LBB0_70
## %bb.69:
	movq	%rax, %r12
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rsi
	callq	_krb5_set_error_message
	movq	-128(%rbp), %rdi
	callq	_free
	movq	%r15, -128(%rbp)
	jmp	LBB0_73
LBB0_67:
	xorl	%r12d, %r12d
	jmp	LBB0_73
LBB0_70:
	testq	%r15, %r15
	je	LBB0_72
## %bb.71:
	movq	%r15, %rdi
	callq	_free_HDB_extensions
	movq	%r15, %rdi
	callq	_free
LBB0_72:
	movq	8(%r14), %rsi
	movl	(%r14), %edi
	movq	_HDB_F_REPLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-128(%rbp), %rcx
	callq	*(%rsi)
	movq	%rax, %r12
LBB0_73:
	movl	(%r14), %edi
	leaq	-128(%rbp), %rsi
	callq	_hdb_free_entry
	movl	(%r14), %edi
	leaq	-216(%rbp), %rsi
	callq	_hdb_free_entry
LBB0_74:
	movq	%r12, %rax
	addq	$192, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_75:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.comm	_HDB_F_DECRYPT,4,2              ## @HDB_F_DECRYPT
	.comm	_HDB_F_GET_ANY,4,2              ## @HDB_F_GET_ANY
	.comm	_HDB_F_ADMIN_DATA,4,2           ## @HDB_F_ADMIN_DATA
	.comm	_KADM5_PRINC_EXPIRE_TIME,4,2    ## @KADM5_PRINC_EXPIRE_TIME
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_KADM5_PW_EXPIRATION,4,2        ## @KADM5_PW_EXPIRATION
	.comm	_KADM5_LAST_PWD_CHANGE,4,2      ## @KADM5_LAST_PWD_CHANGE
	.comm	_KADM5_ATTRIBUTES,4,2           ## @KADM5_ATTRIBUTES
	.comm	_KADM5_MAX_LIFE,4,2             ## @KADM5_MAX_LIFE
	.comm	_KADM5_MOD_TIME,4,2             ## @KADM5_MOD_TIME
	.comm	_KADM5_MOD_NAME,4,2             ## @KADM5_MOD_NAME
	.comm	_KADM5_KVNO,4,2                 ## @KADM5_KVNO
	.comm	_KADM5_MKVNO,4,2                ## @KADM5_MKVNO
	.comm	_KADM5_AUX_ATTRIBUTES,4,2       ## @KADM5_AUX_ATTRIBUTES
	.comm	_KADM5_POLICY,4,2               ## @KADM5_POLICY
	.comm	_KADM5_POLICY_CLR,4,2           ## @KADM5_POLICY_CLR
	.comm	_KADM5_MAX_RLIFE,4,2            ## @KADM5_MAX_RLIFE
	.comm	_KADM5_LAST_SUCCESS,4,2         ## @KADM5_LAST_SUCCESS
	.comm	_KADM5_LAST_FAILED,4,2          ## @KADM5_LAST_FAILED
	.comm	_KADM5_FAIL_AUTH_COUNT,4,2      ## @KADM5_FAIL_AUTH_COUNT
	.comm	_KADM5_KEY_DATA,4,2             ## @KADM5_KEY_DATA
	.comm	_KADM5_TL_DATA,4,2              ## @KADM5_TL_DATA
	.comm	_HDB_F_REPLACE,4,2              ## @HDB_F_REPLACE
	.no_dead_strip	_kadm5_log_replay_modify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kadm5_log_replay_modify
_kadm5_log_replay_modify:               ; @kadm5_log_replay_modify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #88
	bl	_memset
	sub	x1, x29, #36
	mov	x0, x22
	bl	_krb5_ret_int32
	sub	w20, w20, #4
	sub	x0, x29, #40
	mov	x1, x20
	bl	_krb5_data_alloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w0, [x19]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x21
	bl	_krb5_set_error_message
	b	LBB0_72
LBB0_2:
	ldur	w1, [x29, #-40]
	mov	x0, x22
	mov	x2, x20
	bl	_krb5_storage_read
	ldr	w0, [x19]
	sub	x1, x29, #40
	add	x2, sp, #8
	bl	_hdb_value2entry
	mov	x21, x0
	sub	x0, x29, #40
	bl	_krb5_data_free
	cbnz	x21, LBB0_72
; %bb.3:
	add	x0, sp, #96
	mov	w1, #0
	mov	w2, #88
	bl	_memset
	ldr	x1, [x19, #8]
	ldr	x8, [x1, #8]
	ldr	w0, [x19]
	ldr	w2, [sp, #88]
Lloh2:
	adrp	x9, _HDB_F_DECRYPT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HDB_F_DECRYPT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _HDB_F_GET_ANY@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HDB_F_GET_ANY@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh8:
	adrp	x10, _HDB_F_ADMIN_DATA@GOTPAGE
Lloh9:
	ldr	x10, [x10, _HDB_F_ADMIN_DATA@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w3, w9, w10
	add	x5, sp, #96
	mov	w4, #0
	blr	x8
	mov	x21, x0
	cbnz	x0, LBB0_71
; %bb.4:
	ldur	w8, [x29, #-36]
Lloh11:
	adrp	x9, _KADM5_PRINC_EXPIRE_TIME@GOTPAGE
Lloh12:
	ldr	x9, [x9, _KADM5_PRINC_EXPIRE_TIME@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.5:
	ldr	x9, [sp, #80]
	cbz	x9, LBB0_10
; %bb.6:
	ldr	x0, [sp, #168]
	cbnz	x0, LBB0_9
; %bb.7:
	mov	w0, #4
	bl	_malloc
	str	x0, [sp, #168]
	cbz	x0, LBB0_48
; %bb.8:
	ldr	x9, [sp, #80]
LBB0_9:
	ldr	w8, [x9]
	str	w8, [x0]
	ldur	w8, [x29, #-36]
	b	LBB0_11
LBB0_10:
	str	xzr, [sp, #168]
LBB0_11:
Lloh14:
	adrp	x9, _KADM5_PW_EXPIRATION@GOTPAGE
Lloh15:
	ldr	x9, [x9, _KADM5_PW_EXPIRATION@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.12:
	ldr	x9, [sp, #72]
	cbz	x9, LBB0_17
; %bb.13:
	ldr	x0, [sp, #160]
	cbnz	x0, LBB0_16
; %bb.14:
	mov	w0, #4
	bl	_malloc
	str	x0, [sp, #160]
	cbz	x0, LBB0_48
; %bb.15:
	ldr	x9, [sp, #72]
LBB0_16:
	ldr	w8, [x9]
	str	w8, [x0]
	ldur	w8, [x29, #-36]
	b	LBB0_18
LBB0_17:
	str	xzr, [sp, #160]
LBB0_18:
Lloh17:
	adrp	x9, _KADM5_LAST_PWD_CHANGE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _KADM5_LAST_PWD_CHANGE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_75
; %bb.19:
Lloh20:
	adrp	x9, _KADM5_ATTRIBUTES@GOTPAGE
Lloh21:
	ldr	x9, [x9, _KADM5_ATTRIBUTES@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.20:
	ldr	w9, [sp, #64]
	str	w9, [sp, #152]
LBB0_21:
Lloh23:
	adrp	x9, _KADM5_MAX_LIFE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _KADM5_MAX_LIFE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.22:
	ldr	x9, [sp, #56]
	cbz	x9, LBB0_27
; %bb.23:
	ldr	x0, [sp, #144]
	cbnz	x0, LBB0_26
; %bb.24:
	mov	w0, #4
	bl	_malloc
	str	x0, [sp, #144]
	cbz	x0, LBB0_48
; %bb.25:
	ldr	x9, [sp, #56]
LBB0_26:
	ldr	w8, [x9]
	str	w8, [x0]
	ldur	w8, [x29, #-36]
	b	LBB0_28
LBB0_27:
	str	xzr, [sp, #144]
LBB0_28:
Lloh26:
	adrp	x9, _KADM5_MOD_TIME@GOTPAGE
Lloh27:
	ldr	x9, [x9, _KADM5_MOD_TIME@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_36
; %bb.29:
Lloh29:
	adrp	x9, _KADM5_MOD_NAME@GOTPAGE
Lloh30:
	ldr	x9, [x9, _KADM5_MOD_NAME@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_36
; %bb.30:
	ldr	x0, [sp, #136]
	cbz	x0, LBB0_32
; %bb.31:
	bl	_free_Event
	ldr	x1, [sp, #136]
	b	LBB0_33
LBB0_32:
	mov	w0, #4
	bl	_malloc
	mov	x1, x0
	str	x0, [sp, #136]
	cbz	x0, LBB0_48
LBB0_33:
	ldr	x0, [sp, #48]
	bl	_copy_Event
	cbz	x0, LBB0_35
LBB0_34:
	mov	x21, x0
	b	LBB0_60
LBB0_35:
	ldur	w8, [x29, #-36]
LBB0_36:
Lloh32:
	adrp	x9, _KADM5_KVNO@GOTPAGE
Lloh33:
	ldr	x9, [x9, _KADM5_KVNO@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_38
; %bb.37:
	ldr	w9, [sp, #40]
	str	w9, [sp, #128]
LBB0_38:
Lloh35:
	adrp	x9, _KADM5_MKVNO@GOTPAGE
Lloh36:
	ldr	x9, [x9, _KADM5_MKVNO@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_75
; %bb.39:
Lloh38:
	adrp	x9, _KADM5_AUX_ATTRIBUTES@GOTPAGE
Lloh39:
	ldr	x9, [x9, _KADM5_AUX_ATTRIBUTES@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_75
; %bb.40:
Lloh41:
	adrp	x9, _KADM5_POLICY@GOTPAGE
Lloh42:
	ldr	x9, [x9, _KADM5_POLICY@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_75
; %bb.41:
Lloh44:
	adrp	x9, _KADM5_POLICY_CLR@GOTPAGE
Lloh45:
	ldr	x9, [x9, _KADM5_POLICY_CLR@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_75
; %bb.42:
Lloh47:
	adrp	x9, _KADM5_MAX_RLIFE@GOTPAGE
Lloh48:
	ldr	x9, [x9, _KADM5_MAX_RLIFE@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_50
; %bb.43:
	ldr	x9, [sp, #32]
	cbz	x9, LBB0_49
; %bb.44:
	ldr	x0, [sp, #120]
	cbnz	x0, LBB0_47
; %bb.45:
	mov	w0, #4
	bl	_malloc
	str	x0, [sp, #120]
	cbz	x0, LBB0_48
; %bb.46:
	ldr	x9, [sp, #32]
LBB0_47:
	ldr	w8, [x9]
	str	w8, [x0]
	ldur	w8, [x29, #-36]
	b	LBB0_50
LBB0_48:
Lloh50:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh52:
	ldr	x21, [x8]
	b	LBB0_60
LBB0_49:
	str	xzr, [sp, #120]
LBB0_50:
Lloh53:
	adrp	x9, _KADM5_LAST_SUCCESS@GOTPAGE
Lloh54:
	ldr	x9, [x9, _KADM5_LAST_SUCCESS@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_75
; %bb.51:
Lloh56:
	adrp	x9, _KADM5_LAST_FAILED@GOTPAGE
Lloh57:
	ldr	x9, [x9, _KADM5_LAST_FAILED@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_75
; %bb.52:
Lloh59:
	adrp	x9, _KADM5_FAIL_AUTH_COUNT@GOTPAGE
Lloh60:
	ldr	x9, [x9, _KADM5_FAIL_AUTH_COUNT@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_75
; %bb.53:
Lloh62:
	adrp	x9, _KADM5_KEY_DATA@GOTPAGE
Lloh63:
	ldr	x9, [x9, _KADM5_KEY_DATA@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_65
; %bb.54:
	ldr	x8, [sp, #104]
	cbz	x8, LBB0_57
; %bb.55:
	mov	x21, #0
	mov	x22, #0
LBB0_56:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #112]
	add	x0, x8, x21
	bl	_free_Key
	add	x22, x22, #1
	ldr	x8, [sp, #104]
	add	x21, x21, #4
	cmp	x22, x8
	b.lo	LBB0_56
LBB0_57:
	ldr	x0, [sp, #112]
	bl	_free
	ldr	x8, [sp, #16]
	str	x8, [sp, #104]
	lsl	w0, w20, #2
	bl	_malloc
	str	x0, [sp, #112]
	cbz	x0, LBB0_61
; %bb.58:
	ldr	x8, [sp, #104]
	cbz	x8, LBB0_65
; %bb.59:
	mov	x1, x0
	ldr	x0, [sp, #24]
	bl	_copy_Key
	mov	x21, x0
	cbz	x0, LBB0_62
LBB0_60:
	ldr	w0, [x19]
Lloh65:
	adrp	x2, l_.str@PAGE
Lloh66:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x21
	bl	_krb5_set_error_message
	b	LBB0_71
LBB0_61:
	ldr	w0, [x19]
Lloh67:
	adrp	x19, _ENOMEM@GOTPAGE
Lloh68:
	ldr	x19, [x19, _ENOMEM@GOTPAGEOFF]
	ldr	x1, [x19]
Lloh69:
	adrp	x2, l_.str@PAGE
Lloh70:
	add	x2, x2, l_.str@PAGEOFF
	bl	_krb5_set_error_message
	ldr	x21, [x19]
	b	LBB0_72
LBB0_62:
	mov	x20, #0
	mov	w8, #4
LBB0_63:                                ; =>This Inner Loop Header: Depth=1
	add	x20, x20, #1
	ldr	x9, [sp, #104]
	cmp	x20, x9
	b.hs	LBB0_65
; %bb.64:                               ;   in Loop: Header=BB0_63 Depth=1
	add	x22, x8, #4
	ldr	x9, [sp, #112]
	ldr	x10, [sp, #24]
	add	x0, x10, x8
	add	x1, x9, x8
	bl	_copy_Key
	mov	x8, x22
	cbz	x0, LBB0_63
	b	LBB0_34
LBB0_65:
Lloh71:
	adrp	x8, _KADM5_TL_DATA@GOTPAGE
Lloh72:
	ldr	x8, [x8, _KADM5_TL_DATA@GOTPAGEOFF]
	ldur	w9, [x29, #-36]
Lloh73:
	ldr	w8, [x8]
	and	w8, w8, w9
	ldr	x21, [sp, #8]
	cmp	w8, #0
	ccmp	x21, #0, #4, ne
	b.ne	LBB0_67
LBB0_66:
	ldr	x1, [x19, #8]
	ldr	x8, [x1]
	ldr	w0, [x19]
Lloh74:
	adrp	x9, _HDB_F_REPLACE@GOTPAGE
Lloh75:
	ldr	x9, [x9, _HDB_F_REPLACE@GOTPAGEOFF]
Lloh76:
	ldr	w2, [x9]
	add	x3, sp, #96
	blr	x8
	mov	x21, x0
	b	LBB0_71
LBB0_67:
	ldr	x20, [sp, #96]
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	str	x0, [sp, #96]
	cbz	x0, LBB0_70
; %bb.68:
	mov	x1, x0
	mov	x0, x21
	bl	_copy_HDB_extensions
	cbz	x0, LBB0_73
; %bb.69:
	mov	x21, x0
	ldr	w0, [x19]
Lloh77:
	adrp	x2, l_.str@PAGE
Lloh78:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x21
	bl	_krb5_set_error_message
	ldr	x0, [sp, #96]
	bl	_free
	str	x20, [sp, #96]
	b	LBB0_71
LBB0_70:
	mov	x21, #0
LBB0_71:
	ldr	w0, [x19]
	add	x1, sp, #96
	bl	_hdb_free_entry
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_hdb_free_entry
LBB0_72:
	mov	x0, x21
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_73:
	cbz	x20, LBB0_66
; %bb.74:
	mov	x0, x20
	bl	_free_HDB_extensions
	mov	x0, x20
	bl	_free
	b	LBB0_66
LBB0_75:
	bl	_abort
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh77, Lloh78
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

	.comm	_HDB_F_DECRYPT,4,2              ; @HDB_F_DECRYPT
	.comm	_HDB_F_GET_ANY,4,2              ; @HDB_F_GET_ANY
	.comm	_HDB_F_ADMIN_DATA,4,2           ; @HDB_F_ADMIN_DATA
	.comm	_KADM5_PRINC_EXPIRE_TIME,4,2    ; @KADM5_PRINC_EXPIRE_TIME
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_KADM5_PW_EXPIRATION,4,2        ; @KADM5_PW_EXPIRATION
	.comm	_KADM5_LAST_PWD_CHANGE,4,2      ; @KADM5_LAST_PWD_CHANGE
	.comm	_KADM5_ATTRIBUTES,4,2           ; @KADM5_ATTRIBUTES
	.comm	_KADM5_MAX_LIFE,4,2             ; @KADM5_MAX_LIFE
	.comm	_KADM5_MOD_TIME,4,2             ; @KADM5_MOD_TIME
	.comm	_KADM5_MOD_NAME,4,2             ; @KADM5_MOD_NAME
	.comm	_KADM5_KVNO,4,2                 ; @KADM5_KVNO
	.comm	_KADM5_MKVNO,4,2                ; @KADM5_MKVNO
	.comm	_KADM5_AUX_ATTRIBUTES,4,2       ; @KADM5_AUX_ATTRIBUTES
	.comm	_KADM5_POLICY,4,2               ; @KADM5_POLICY
	.comm	_KADM5_POLICY_CLR,4,2           ; @KADM5_POLICY_CLR
	.comm	_KADM5_MAX_RLIFE,4,2            ; @KADM5_MAX_RLIFE
	.comm	_KADM5_LAST_SUCCESS,4,2         ; @KADM5_LAST_SUCCESS
	.comm	_KADM5_LAST_FAILED,4,2          ; @KADM5_LAST_FAILED
	.comm	_KADM5_FAIL_AUTH_COUNT,4,2      ; @KADM5_FAIL_AUTH_COUNT
	.comm	_KADM5_KEY_DATA,4,2             ; @KADM5_KEY_DATA
	.comm	_KADM5_TL_DATA,4,2              ; @KADM5_TL_DATA
	.comm	_HDB_F_REPLACE,4,2              ; @HDB_F_REPLACE
	.no_dead_strip	_kadm5_log_replay_modify
.subsections_via_symbols
