	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdb_check_db_format            ## -- Begin function hdb_check_db_format
	.p2align	4, 0x90
_hdb_check_db_format:                   ## @hdb_check_db_format
	.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, %rbx
	movl	%edi, %r14d
	movq	_HDB_RLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	*16(%rsi)
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	_HDB_DB_FORMAT_ENTRY@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_strlen
	leaq	-48(%rbp), %r8
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	*8(%rbx)
	movq	%rax, %r15
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	*(%rbx)
	testq	%r15, %r15
	jne	LBB0_7
## %bb.2:
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	-48(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_sscanf
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_krb5_data_free
	cmpl	$1, %ebx
	jne	LBB0_6
## %bb.4:
	movl	-28(%rbp), %eax
	movq	_HDB_DB_FORMAT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
LBB0_6:
	movq	_HDB_ERR_BADVERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_7
LBB0_5:
	xorl	%r15d, %r15d
LBB0_7:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDB_RLOCK,4,2                  ## @HDB_RLOCK
	.comm	_HDB_DB_FORMAT_ENTRY,8,3        ## @HDB_DB_FORMAT_ENTRY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u"

	.comm	_HDB_ERR_BADVERSION,8,3         ## @HDB_ERR_BADVERSION
	.comm	_HDB_DB_FORMAT,4,2              ## @HDB_DB_FORMAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdb_check_db_format            ; -- Begin function hdb_check_db_format
	.p2align	2
_hdb_check_db_format:                   ; @hdb_check_db_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #16]
Lloh0:
	adrp	x9, _HDB_RLOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HDB_RLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	blr	x8
	mov	x21, x0
	cbnz	x0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _HDB_DB_FORMAT_ENTRY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDB_DB_FORMAT_ENTRY@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_strlen
	mov	w3, w0
	ldr	x8, [x19, #8]
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	blr	x8
	mov	x21, x0
	ldr	x8, [x19]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	cbnz	x21, LBB0_6
; %bb.2:
	mov	x21, x0
	cbnz	x0, LBB0_6
; %bb.3:
	ldr	x0, [sp, #16]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_sscanf
	mov	x19, x0
	add	x0, sp, #16
	bl	_krb5_data_free
	cmp	w19, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [sp, #12]
Lloh8:
	adrp	x9, _HDB_DB_FORMAT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HDB_DB_FORMAT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _HDB_ERR_BADVERSION@GOTPAGE
Lloh12:
	ldr	x10, [x10, _HDB_ERR_BADVERSION@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	w8, w9
	csel	x21, xzr, x10, eq
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _HDB_ERR_BADVERSION@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HDB_ERR_BADVERSION@GOTPAGEOFF]
Lloh16:
	ldr	x21, [x8]
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HDB_RLOCK,4,2                  ; @HDB_RLOCK
	.comm	_HDB_DB_FORMAT_ENTRY,8,3        ; @HDB_DB_FORMAT_ENTRY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u"

	.comm	_HDB_ERR_BADVERSION,8,3         ; @HDB_ERR_BADVERSION
	.comm	_HDB_DB_FORMAT,4,2              ; @HDB_DB_FORMAT
.subsections_via_symbols
