	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_hdr
_verify_hdr:                            ## @verify_hdr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_GIT_MAX_RAWSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	(%r13), %rbx
	movq	_CACHE_SIGNATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	cmpq	%rax, %rbx
	jne	LBB0_1
## %bb.2:
	movl	8(%r13), %edi
	callq	_ntohl
	movl	%eax, %ebx
	movq	_INDEX_FORMAT_LB@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_4
## %bb.3:
	movq	_INDEX_FORMAT_UB@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jl	LBB0_4
## %bb.5:
	movq	_verify_index_checksum@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.6:
	movq	_the_hash_algo@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	leaq	-52(%rbp), %rdi
	callq	*24(%rax)
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edx
	subl	%ecx, %edx
	leaq	-52(%rbp), %rdi
	movq	%r13, %rsi
	callq	*16(%rax)
	movq	(%rbx), %rax
	movq	%r15, %rdi
	leaq	-52(%rbp), %rsi
	callq	*8(%rax)
	addq	%r14, %r13
	movq	(%rbx), %rax
	movslq	(%rax), %rax
	subq	%rax, %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_hasheq
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	(%r13), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_error
LBB0_8:
	movl	%eax, %r12d
LBB0_9:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GIT_MAX_RAWSZ,4,2              ## @GIT_MAX_RAWSZ
	.comm	_CACHE_SIGNATURE,4,2            ## @CACHE_SIGNATURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad signature 0x%08x"

	.comm	_INDEX_FORMAT_LB,4,2            ## @INDEX_FORMAT_LB
	.comm	_INDEX_FORMAT_UB,4,2            ## @INDEX_FORMAT_UB
L_.str.1:                               ## @.str.1
	.asciz	"bad index version %d"

	.comm	_verify_index_checksum,4,2      ## @verify_index_checksum
	.comm	_the_hash_algo,8,3              ## @the_hash_algo
L_.str.2:                               ## @.str.2
	.asciz	"bad index file sha1 signature"

	.no_dead_strip	_verify_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_hdr
_verify_hdr:                            ; @verify_hdr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
	mov	x23, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _GIT_MAX_RAWSZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GIT_MAX_RAWSZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x22, [x0]
Lloh8:
	adrp	x8, _CACHE_SIGNATURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CACHE_SIGNATURE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_htonl
	cmp	x22, x0
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_ntohl
Lloh11:
	adrp	x8, _INDEX_FORMAT_LB@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INDEX_FORMAT_LB@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _INDEX_FORMAT_UB@GOTPAGE
Lloh15:
	ldr	x9, [x9, _INDEX_FORMAT_UB@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w9, w0, #8, ge
	b.ge	LBB0_5
; %bb.2:
	mov	x22, x0
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	str	x22, [sp, #-16]!
	b	LBB0_4
LBB0_3:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	x8, [x19]
	str	x8, [sp, #-16]!
LBB0_4:
	bl	_error
	add	sp, sp, #16
	b	LBB0_9
LBB0_5:
Lloh21:
	adrp	x8, _verify_index_checksum@GOTPAGE
Lloh22:
	ldr	x8, [x8, _verify_index_checksum@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.6:
Lloh24:
	adrp	x22, _the_hash_algo@GOTPAGE
Lloh25:
	ldr	x22, [x22, _the_hash_algo@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8, #24]
	sub	x0, x29, #60
	blr	x8
	ldr	x8, [x22]
	ldr	x9, [x8, #16]
	ldr	w8, [x8]
	sub	w2, w20, w8
	sub	x0, x29, #60
	mov	x1, x19
	blr	x9
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	sub	x1, x29, #60
	mov	x0, x21
	blr	x8
	ldr	x8, [x22]
	ldrsw	x8, [x8]
	add	x9, x19, x20
	sub	x1, x9, x8
	mov	x0, x21
	bl	_hasheq
	cbz	w0, LBB0_8
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	bl	_error
LBB0_9:
	mov	sp, x23
	ldur	x8, [x29, #-56]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GIT_MAX_RAWSZ,4,2              ; @GIT_MAX_RAWSZ
	.comm	_CACHE_SIGNATURE,4,2            ; @CACHE_SIGNATURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad signature 0x%08x"

	.comm	_INDEX_FORMAT_LB,4,2            ; @INDEX_FORMAT_LB
	.comm	_INDEX_FORMAT_UB,4,2            ; @INDEX_FORMAT_UB
l_.str.1:                               ; @.str.1
	.asciz	"bad index version %d"

	.comm	_verify_index_checksum,4,2      ; @verify_index_checksum
	.comm	_the_hash_algo,8,3              ; @the_hash_algo
l_.str.2:                               ; @.str.2
	.asciz	"bad index file sha1 signature"

	.no_dead_strip	_verify_hdr
.subsections_via_symbols
