	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kadm5_log_get_version_fd       ## -- Begin function kadm5_log_get_version_fd
	.p2align	4, 0x90
_kadm5_log_get_version_fd:              ## @kadm5_log_get_version_fd
	.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	%rsi, %r14
	movl	%edi, %r15d
	movq	_SEEK_END@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_lseek
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	je	LBB0_3
## %bb.4:
	movl	%r15d, %edi
	callq	_krb5_storage_from_fd
	movq	%rax, %rbx
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$-4, %esi
	callq	_krb5_storage_seek
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_int32
	movl	-36(%rbp), %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_krb5_storage_free
	movl	(%r12), %edx
	xorl	%ebx, %ebx
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_lseek
	jmp	LBB0_5
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	movl	$0, (%r14)
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_errno,4,2                      ## @errno
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kadm5_log_get_version_fd       ; -- Begin function kadm5_log_get_version_fd
	.p2align	2
_kadm5_log_get_version_fd:              ; @kadm5_log_get_version_fd
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _SEEK_END@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SEEK_END@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_lseek
	tbnz	w0, #31, LBB0_3
; %bb.1:
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_krb5_storage_from_fd
	mov	x21, x0
Lloh2:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #-4
	bl	_krb5_storage_seek
	add	x1, sp, #12
	mov	x0, x21
	bl	_krb5_ret_int32
	ldr	w8, [sp, #12]
	str	w8, [x20]
	mov	x0, x21
	bl	_krb5_storage_free
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #0
	bl	_lseek
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	str	wzr, [x20]
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_errno,4,2                      ; @errno
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
.subsections_via_symbols
