	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kadm5_log_flush
_kadm5_log_flush:                       ## @kadm5_log_flush
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r15
	leaq	-40(%rbp), %rsi
	movq	%rax, %rdi
	callq	_krb5_storage_to_data
	movq	-40(%rbp), %rbx
	movl	20(%r15), %edi
	movl	-32(%rbp), %esi
	movq	%rbx, %rdx
	callq	_write
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	cmpq	%rbx, %rax
	jne	LBB0_2
## %bb.3:
	movl	20(%r15), %edi
	callq	_fsync
	testq	%rax, %rax
	js	LBB0_2
## %bb.4:
	movl	12(%r15), %edi
	leaq	8(%r15), %rsi
	addq	$16, %r15
	xorl	%r14d, %r14d
	movl	$4, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	movl	$4, %r9d
	callq	_sendto
	leaq	-40(%rbp), %rdi
	callq	_krb5_data_free
	jmp	LBB0_5
LBB0_2:
	leaq	-40(%rbp), %rdi
	callq	_krb5_data_free
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_kadm5_log_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kadm5_log_flush
_kadm5_log_flush:                       ; @kadm5_log_flush
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	mov	x19, x0
	mov	x1, sp
	mov	x0, x8
	bl	_krb5_storage_to_data
	ldr	x20, [sp]
	ldr	w0, [x19, #20]
	ldr	w1, [sp, #8]
	mov	x2, x20
	bl	_write
	tbnz	x0, #63, LBB0_4
; %bb.1:
	cmp	x0, x20
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x19, #20]
	bl	_fsync
	tbnz	x0, #63, LBB0_4
; %bb.3:
	ldr	w0, [x19, #12]
	add	x1, x19, #8
	add	x4, x19, #16
	mov	w2, #4
	mov	w3, #0
	mov	w5, #4
	bl	_sendto
	mov	x0, sp
	bl	_krb5_data_free
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	x0, sp
	bl	_krb5_data_free
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_kadm5_log_flush
.subsections_via_symbols
