	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfi_amdstd_secsi_read
_cfi_amdstd_secsi_read:                 ## @cfi_amdstd_secsi_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, -64(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.1:
	movq	%r8, %r15
	movq	%rdx, %r13
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rdx
	movl	%esi, %eax
	andl	$7, %eax
	sarl	$3, %esi
	movslq	%esi, %r12
	leaq	-1(%r12), %r14
	shlq	$2, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rdx), %rcx
	incq	%r14
	cmpq	%rcx, %r14
	jge	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rax,%r13), %rcx
	decq	%rcx
	movl	$8, %ebx
	subq	%rax, %rbx
	cmpq	$8, %rcx
	cmovbq	%r13, %rbx
	movq	8(%rdx), %rsi
	addq	%r12, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rdx
	movq	%rbx, %rcx
	movq	%r15, %r8
	xorl	%r9d, %r9d
	callq	_do_read_secsi_onechip
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%rbx, (%rax)
	addq	$4, %r12
	xorl	%eax, %eax
	leaq	(%r15,%rbx,4), %r15
	subq	%rbx, %r13
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_2
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
                                        ## 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_amdstd_secsi_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfi_amdstd_secsi_read
_cfi_amdstd_secsi_read:                 ; @cfi_amdstd_secsi_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
                                        ; kill: def $w1 killed $w1 def $x1
	cbz	x2, LBB0_5
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	ldr	x22, [x0]
	ldr	x24, [x22]
	and	w2, w1, #0x7
	asr	w8, w1, #3
	sbfx	x9, x1, #3, #29
	sub	x25, x9, #1
	sbfiz	x26, x8, #2, #32
	mov	w27, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x24]
	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
	sub	x9, x27, x2
	cmp	x8, #8
	csel	x23, x21, x9, lo
	ldr	x8, [x24, #8]
	add	x1, x8, x26
	mov	x0, x22
	mov	x3, x23
	mov	x4, x19
	mov	w5, #0
	bl	_do_read_secsi_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_amdstd_secsi_read
.subsections_via_symbols
