	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kadm5_log_replay_create
_kadm5_log_replay_create:               ## @kadm5_log_replay_create
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %r15d
	movq	%rdi, %r14
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	-48(%rbp), %rdi
	movl	%r15d, %esi
	callq	_krb5_data_alloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_4
LBB0_2:
	movl	-48(%rbp), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_krb5_storage_read
	movl	(%r14), %edi
	leaq	-48(%rbp), %r15
	leaq	-40(%rbp), %rdx
	movq	%r15, %rsi
	callq	_hdb_value2entry
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_krb5_data_free
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.3:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rdx
LBB0_4:
	movq	%rbx, %rsi
	callq	_krb5_set_error_message
LBB0_6:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%r14), %rsi
	movl	(%r14), %edi
	leaq	-40(%rbp), %r15
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	*(%rsi)
	movq	%rax, %rbx
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_hdb_free_entry
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

L_.str.1:                               ## @.str.1
	.asciz	"Unmarshaling hdb entry failed"

	.no_dead_strip	_kadm5_log_replay_create
.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_create
_kadm5_log_replay_create:               ; @kadm5_log_replay_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, sp, #8
	mov	x1, x21
	bl	_krb5_data_alloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	w1, [sp, #8]
	mov	x0, x22
	mov	x2, x21
	bl	_krb5_storage_read
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	x2, sp
	bl	_hdb_value2entry
	mov	x20, x0
	add	x0, sp, #8
	bl	_krb5_data_free
	cbz	x20, LBB0_6
; %bb.3:
	ldr	w0, [x19]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_4:
	mov	x1, x20
	bl	_krb5_set_error_message
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	ldr	x1, [x19, #8]
	ldr	x8, [x1]
	ldr	w0, [x19]
	mov	x3, sp
	mov	w2, #0
	blr	x8
	mov	x20, x0
	ldr	w0, [x19]
	mov	x1, sp
	bl	_hdb_free_entry
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

l_.str.1:                               ; @.str.1
	.asciz	"Unmarshaling hdb entry failed"

	.no_dead_strip	_kadm5_log_replay_create
.subsections_via_symbols
