	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ebt_mac_wormhash_check_integrity
_ebt_mac_wormhash_check_integrity:      ## @ebt_mac_wormhash_check_integrity
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	$-1, %rcx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$255, %rcx
	je	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rax,%rcx,8), %rdx
	cmpq	16(%rax,%rcx,8), %rdx
	jg	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%rdx, %rdx
	js	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	8(%rdi), %rdx
	jg	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rax,%rcx,8), %rdx
	cmpq	24(%rax,%rcx,8), %rdx
	jg	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$2, %rcx
	testq	%rdx, %rdx
	js	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	8(%rdi), %rdx
	jle	LBB0_1
	jmp	LBB0_13
LBB0_8:
	movq	2048(%rax), %rax
	xorl	%ecx, %ecx
	cmpq	8(%rdi), %rax
	movl	$-3072, %eax                    ## imm = 0xF400
	cmovlel	%ecx, %eax
	popq	%rbp
	retq
LBB0_9:
	incq	%rcx
	jmp	LBB0_15
LBB0_10:
	incq	%rcx
LBB0_11:
	movl	$-512, %eax                     ## imm = 0xFE00
	jmp	LBB0_16
LBB0_12:
	incq	%rcx
LBB0_13:
	movl	$-768, %eax                     ## imm = 0xFD00
	jmp	LBB0_16
LBB0_14:
	addq	$2, %rcx
LBB0_15:
	movl	$-256, %eax
LBB0_16:
	subl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ebt_mac_wormhash_check_integrity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ebt_mac_wormhash_check_integrity
_ebt_mac_wormhash_check_integrity:      ; @ebt_mac_wormhash_check_integrity
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	mov	x10, #0
	ldr	x9, [x0]
	add	x11, x9, #8
	mov	w0, #-767
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x10, #2048
	b.eq	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x13, x11, x10
	ldp	x12, x13, [x13, #-8]
	cmp	x12, x13
	b.gt	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	tbnz	x12, #63, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x13, [x8, #8]
	sub	w0, w0, #1
	add	x10, x10, #8
	cmp	x12, x13
	b.le	LBB0_1
; %bb.5:
	ret
LBB0_6:
	ldr	x9, [x9, #2048]
	ldr	x8, [x8, #8]
	cmp	x9, x8
	mov	w8, #-3072
	csel	w0, w8, wzr, gt
	ret
LBB0_7:
	add	w0, w0, #511
	ret
LBB0_8:
	add	w0, w0, #255
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ebt_mac_wormhash_check_integrity
.subsections_via_symbols
