	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fifolog_int_findend            ## -- Begin function fifolog_int_findend
	.p2align	4, 0x90
_fifolog_int_findend:                   ## @fifolog_int_findend
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_fifolog_int_file_assert
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_fifolog_int_read
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %edi
	callq	_be32dec
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movl	%eax, %r13d
	movl	(%r15), %eax
	movl	%eax, %r12d
	shrl	$31, %r12d
	addl	%eax, %r12d
	sarl	%r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%r14), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_fifolog_int_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r15), %edi
	callq	_be32dec
	leal	(%r12,%r13), %ecx
	cmpl	%ecx, %eax
	cmovel	%ebx, %r14d
	cmovel	%eax, %r13d
	movl	%r12d, %ebx
	shrl	%ebx
	xorl	%edi, %edi
	cmpl	(%r15), %r14d
	setb	%dil
	callq	_assert
	cmpl	$1, %r12d
	movl	%ebx, %r12d
	ja	LBB0_4
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.1(%rip), %rax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read error, first record"

L_.str.1:                               ## @.str.1
	.asciz	"Read error while searching"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fifolog_int_findend            ; -- Begin function fifolog_int_findend
	.p2align	2
_fifolog_int_findend:                   ; @fifolog_int_findend
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	bl	_fifolog_int_file_assert
	mov	x0, x20
	mov	w1, #0
	bl	_fifolog_int_read
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_8
LBB0_2:
	ldr	w0, [x20, #4]
	bl	_be32dec
	cbz	w0, LBB0_6
; %bb.3:
	mov	x22, x0
	mov	w24, #0
	ldr	w8, [x20]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w25, w8, #1
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w25, w24
	mov	x0, x20
	mov	x1, x23
	bl	_fifolog_int_read
	cbnz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #4]
	bl	_be32dec
	add	w8, w22, w25
	cmp	w0, w8
	csel	w24, w23, w24, eq
	csel	w22, w0, w22, eq
	lsr	w23, w25, #1
	ldr	w8, [x20]
	cmp	w24, w8
	cset	w0, lo
	bl	_assert
	cmp	w25, #1
	mov	x25, x23
	b.hi	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	w24, #0
LBB0_7:
	mov	x21, #0
	str	w24, [x19]
LBB0_8:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read error, first record"

l_.str.1:                               ; @.str.1
	.asciz	"Read error while searching"

.subsections_via_symbols
