	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfi_intelext_read
_cfi_intelext_read:                     ## @cfi_intelext_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
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.1:
	movq	%r8, %r12
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r10
	movb	(%r10), %cl
	movl	%esi, %eax
	sarl	%cl, %eax
	movslq	%eax, %r13
	shll	%cl, %eax
	subl	%eax, %esi
	movslq	%esi, %rax
	leaq	-1(%r13), %r14
	shlq	$2, %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	4(%r10), %rcx
	incq	%r14
	cmpq	%rcx, %r14
	jge	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rdx,%rax), %rsi
	decq	%rsi
	movzbl	(%r10), %ecx
	shrq	%cl, %rsi
	movl	$1, %edi
	shll	%cl, %edi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%edi, %rbx
	subq	%rax, %rbx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r10, %r15
	movq	8(%r10), %rsi
	addq	%r13, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rdx
	movq	%rbx, %rcx
	movq	%r12, %r8
	callq	_do_read_onechip
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	%rbx, (%rax)
	addq	$4, %r13
	xorl	%eax, %eax
	leaq	(%r12,%rbx,4), %r12
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	subq	%rbx, %rdx
	movq	%r15, %r10
	jne	LBB0_2
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cfi_intelext_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfi_intelext_read
_cfi_intelext_read:                     ; @cfi_intelext_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
	cbz	x2, LBB0_5
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	ldr	x22, [x0]
	ldr	x24, [x22]
	ldr	w8, [x24]
	asr	w9, w1, w8
	lsl	w8, w9, w8
	sub	w8, w1, w8
	sxtw	x2, w8
	sxtw	x8, w9
	sub	x25, x8, #1
	sbfiz	x26, x9, #2, #32
	mov	w27, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x24, #4]
	add	x25, x25, #1
	cmp	x25, x8
	b.ge	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x21, x2
	sub	x8, x8, #1
	ldr	w9, [x24]
	lsr	x8, x8, x9
	lsl	w9, w27, w9
	sxtw	x9, w9
	sub	x9, x9, x2
	cmp	x8, #0
	csel	x23, x21, x9, eq
	ldr	x8, [x24, #8]
	add	x1, x8, x26
	mov	x0, x22
	mov	x3, x23
	mov	x4, x19
	bl	_do_read_onechip
	cbnz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x2, #0
	add	x26, x26, #4
	ldr	x8, [x20]
	add	x8, x8, x23
	str	x8, [x20]
	add	x19, x19, x23, lsl #2
	subs	x21, x21, x23
	b.ne	LBB0_2
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cfi_intelext_read
.subsections_via_symbols
