	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function f_read
_f_read:                                ## @f_read
	.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
	movl	%edx, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	imull	%esi, %r14d
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.2:
	movq	%rcx, %r15
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r12d, %rsi
	addq	-56(%rbp), %rsi                 ## 8-byte Folded Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%ebx, %edx
	callq	_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%ebx, %r12d
	subl	%ebx, %r14d
	jle	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %ebx
	cmpl	$4096, %r14d                    ## imm = 0x1000
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$4096, %ebx                     ## imm = 0x1000
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edi
	leal	-1638(%rdi), %ecx
	cmpl	$3, %ecx
	ja	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, %ecx
	leaq	(%rcx,%rcx,2), %rsi
	movq	(%rax,%rsi,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax,%rsi,8), %rsi
	movl	%ebx, %edi
	addq	%rsi, %rdi
	cmpq	%rdx, %rdi
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	subl	%esi, %edx
	movl	%edx, %ebx
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	jle	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %r13
	addl	16(%rax,%r13), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	callq	_memcpy
	movl	%ebx, %eax
	movq	_file@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, 8(%rcx,%r13)
	jmp	LBB0_13
LBB0_14:
	movl	%r12d, %eax
	cltd
	idivl	-44(%rbp)                       ## 4-byte Folded Reload
	jmp	LBB0_15
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_7:
	movl	$-1, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_file,8,3                       ## @file
	.no_dead_strip	_f_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function f_read
_f_read:                                ; @f_read
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mul	w24, w2, w1
	cmp	w24, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x20, x3
	mov	x19, x1
	mov	x21, x0
	mov	w23, #0
	mov	w25, #4096
Lloh0:
	adrp	x26, _file@GOTPAGE
Lloh1:
	ldr	x26, [x26, _file@GOTPAGEOFF]
	mov	w27, #24
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x21, w23, sxtw
	bl	_read
	mov	x22, x0
	cmp	w0, #1
	b.lt	LBB0_8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w22, w23
	sub	w24, w24, w22
	cmp	w24, #0
	b.le	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w24, #1, lsl #12                ; =4096
	csel	w2, w24, w25, lt
	ldr	w0, [x20]
	sub	w8, w0, #1638
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x26]
	umull	x10, w8, w27
	ldr	x11, [x9, x10]
	cbz	x11, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	madd	x10, x8, x27, x9
	ldr	x10, [x10, #8]
	add	x12, x10, w2, uxtw
	sub	w13, w11, w10
	cmp	x12, x11
	csel	w22, w13, w2, gt
	cmp	w22, #1
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, x8, lsl #1
	lsl	x28, x8, #3
	add	x8, x9, x28
	ldr	w8, [x8, #16]
	add	w1, w8, w10
	mov	x0, x21
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x26]
	add	x8, x8, x28
	ldr	x9, [x8, #8]
	add	x9, x9, w22, uxtw
	str	x9, [x8, #8]
	b	LBB0_3
LBB0_8:
	sdiv	w0, w23, w19
	b	LBB0_11
LBB0_9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_file,8,3                       ; @file
	.no_dead_strip	_f_read
.subsections_via_symbols
