	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReadNextRecord
_ReadNextRecord:                        ## @ReadNextRecord
	.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, %r14
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	movl	$0, (%rbx)
	movq	8(%rbx), %rax
	incq	%rax
	movq	%rax, 8(%rbx)
	cmpq	16(%rbx), %rax
	jae	LBB0_2
LBB0_3:
	cmpq	$0, 48(%rbx)
	je	LBB0_7
## %bb.4:
	movl	40(%rbx), %edi
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	movl	(%rcx,%rax,4), %esi
	addl	$4, %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_fseek
	testq	%rax, %rax
	jne	LBB0_2
## %bb.5:
	movl	40(%rbx), %ecx
	leaq	-40(%rbp), %rdi
	movl	$1, %esi
	movl	$4, %edx
	callq	_fread
	cmpl	$3, %eax
	jle	LBB0_2
## %bb.6:
	movl	-36(%rbp), %r15d
	movl	-28(%rbp), %eax
	shll	$8, %r15d
	addl	-40(%rbp), %r15d
	shll	$8, %eax
	addl	-32(%rbp), %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_EnlargeBuffer
	movq	32(%rbx), %rdi
	movl	40(%rbx), %ecx
	movl	$1, %esi
	movl	%r15d, %edx
	callq	_fread
	cmpl	%r15d, %eax
	jl	LBB0_2
	jmp	LBB0_15
LBB0_7:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	movl	$19200, %eax                    ## imm = 0x4B00
	movl	$260, %ecx                      ## imm = 0x104
	cmovel	%eax, %ecx
	movl	%ecx, (%r14)
	movq	32(%rbx), %rdi
	movabsq	$365072220245, %rax             ## imm = 0x5500000055
	movq	%rax, (%rdi)
	leaq	1(%rsi), %rax
	cmpq	16(%rbx), %rax
	jae	LBB0_8
## %bb.9:
	movl	40(%rbx), %edi
	shll	$7, %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_fseek
	testq	%rax, %rax
	je	LBB0_10
LBB0_2:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	$254, 8(%rdi)
	addq	$12, %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_memset
	movq	32(%rbx), %rdi
LBB0_14:
	movl	$131, %esi
	callq	_SIO_ChkSum
	movq	32(%rbx), %rcx
	movl	%eax, 524(%rcx)
	movl	$132, %r15d
LBB0_15:
	movl	%r15d, (%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_10:
	movq	32(%rbx), %rdi
	addq	$12, %rdi
	movl	40(%rbx), %ecx
	movl	$1, %esi
	movl	$128, %edx
	callq	_fread
	testl	%eax, %eax
	je	LBB0_2
## %bb.11:
	movl	%eax, %r14d
	movq	32(%rbx), %rdi
	cmpl	$127, %eax
	jg	LBB0_13
## %bb.12:
	movl	$250, 8(%rdi)
	movslq	%r14d, %rax
	leaq	(%rdi,%rax,4), %rdi
	addq	$12, %rdi
	movl	$127, %edx
	subl	%r14d, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	32(%rbx), %rdi
	movl	%r14d, 520(%rdi)
	jmp	LBB0_14
LBB0_13:
	movl	$252, 8(%rdi)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_ReadNextRecord
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReadNextRecord
_ReadNextRecord:                        ; @ReadNextRecord
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	str	wzr, [x19]
	ldp	x8, x9, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	cmp	x8, x9
	b.hs	LBB0_8
LBB0_2:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	w0, [x19, #40]
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #8]
	ldr	w8, [x8, x9, lsl #2]
	add	w1, w8, #4
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_fseek
	cbnz	x0, LBB0_8
; %bb.4:
	ldr	w3, [x19, #40]
	mov	x0, sp
	mov	w1, #1
	mov	w2, #4
	bl	_fread
	cmp	w0, #3
	b.le	LBB0_8
; %bb.5:
	ldp	w8, w9, [sp]
	add	w21, w8, w9, lsl #8
	ldp	w8, w9, [sp, #8]
	add	w8, w8, w9, lsl #8
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x21
	bl	_EnlargeBuffer
	ldr	x0, [x19, #32]
	ldr	w3, [x19, #40]
	mov	w1, #1
	mov	x2, x21
	bl	_fread
	cmp	w0, w21
	b.lt	LBB0_8
	b	LBB0_12
LBB0_6:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	mov	w9, #260
	mov	w10, #19200
	csel	w9, w10, w9, eq
	str	w9, [x20]
	ldr	x9, [x19, #32]
	movi.2s	v0, #85
	str	d0, [x9]
	add	x10, x8, #1
	ldr	x11, [x19, #16]
	cmp	x10, x11
	b.hs	LBB0_10
; %bb.7:
	ldr	w0, [x19, #40]
	lsl	w1, w8, #7
Lloh3:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_fseek
	cbz	x0, LBB0_13
LBB0_8:
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	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
LBB0_10:
	mov	w8, #254
	str	w8, [x9, #8]
	add	x0, x9, #12
	mov	w1, #0
	mov	w2, #128
	bl	_memset
	ldr	x0, [x19, #32]
LBB0_11:
	mov	w1, #131
	bl	_SIO_ChkSum
	ldr	x8, [x19, #32]
	str	w0, [x8, #524]
	mov	w21, #132
LBB0_12:
	str	w21, [x19]
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_13:
	ldr	x8, [x19, #32]
	add	x0, x8, #12
	ldr	w3, [x19, #40]
	mov	w1, #1
	mov	w2, #128
	bl	_fread
	cbz	w0, LBB0_8
; %bb.14:
	mov	x20, x0
	ldr	x0, [x19, #32]
	cmp	w20, #127
	b.gt	LBB0_16
; %bb.15:
	mov	w8, #250
	str	w8, [x0, #8]
	add	x8, x0, w20, sxtw #2
	add	x0, x8, #12
	mov	w8, #127
	sub	w2, w8, w20
	mov	w1, #0
	bl	_memset
	ldr	x0, [x19, #32]
	str	w20, [x0, #520]
	b	LBB0_11
LBB0_16:
	mov	w8, #252
	str	w8, [x0, #8]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_ReadNextRecord
.subsections_via_symbols
