	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dspio_read_multiple
_dspio_read_multiple:                   ## @dspio_read_multiple
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	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	%rdi, %r12
	movl	(%rdx), %r15d
	xorl	%eax, %eax
	movl	$0, %r13d
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.3:
	movl	%ecx, %r14d
	movl	$0, %r13d
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.4:
	movq	%rsi, %rbx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	leal	-1(%r15), %eax
	decl	%r14d
	cmpl	%r14d, %eax
	cmovbl	%eax, %r14d
	incl	%r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_dspio_read
	testl	%eax, %eax
	jne	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %rbx
	incl	%r13d
	cmpl	%r13d, %r14d
	jne	LBB0_5
## %bb.12:
	movl	%r14d, %r13d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
LBB0_7:
	cmpl	%r15d, %r13d
	jae	LBB0_15
## %bb.8:
	movq	%rdx, %r14
	leaq	-52(%rbp), %rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_dspio_read
	testl	%eax, %eax
	jne	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	decl	%r15d
	cmpl	%r15d, %r13d
	jne	LBB0_9
## %bb.14:
	movq	%r14, %rdx
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_1:
	movl	$-1, %eax
	retq
LBB0_6:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_10:
	movq	%r14, %rdx
LBB0_15:
	movl	%r13d, (%rdx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dspio_read_multiple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dspio_read_multiple
_dspio_read_multiple:                   ; @dspio_read_multiple
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_7
; %bb.1:
	sub	sp, sp, #80
	.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_remember_state
	mov	x19, x2
	mov	x20, x0
	ldr	w23, [x2]
	cmp	w23, #0
	ccmp	w3, #0, #4, ne
	b.ne	LBB0_8
; %bb.2:
	mov	w22, #0
	cmp	w22, w23
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x20
	bl	_dspio_read
	cbnz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w23, w23, #1
	cmp	w22, w23
	b.ne	LBB0_3
LBB0_5:
	mov	w0, #0
LBB0_6:
	str	w22, [x19]
	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
	add	sp, sp, #80
	ret
LBB0_7:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	mov	w0, #-1
	ret
LBB0_8:
	.cfi_restore_state
	mov	x21, x1
	mov	w22, #0
	sub	w8, w23, #1
	sub	w9, w3, #1
	cmp	w8, w9
	csel	w8, w8, w9, lo
	add	w24, w8, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_dspio_read
	cbnz	w0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, #4
	add	w22, w22, #1
	cmp	w24, w22
	b.ne	LBB0_9
; %bb.11:
	mov	x22, x24
	cmp	w22, w23
	b.lo	LBB0_3
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dspio_read_multiple
.subsections_via_symbols
