	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exc3000_read_data
_exc3000_read_data:                     ## @exc3000_read_data
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_exc3000_read_frame
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	12(%r14), %ecx
	movl	%ecx, (%r15)
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.2:
	movq	_EXC3000_NUM_SLOTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jg	LBB0_6
## %bb.3:
	movq	_EXC3000_SLOTS_PER_FRAME@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	jle	LBB0_7
## %bb.4:
	movq	_EXC3000_LEN_FRAME@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	leaq	(%r14,%rax,4), %rsi
	movq	%rbx, %rdi
	callq	_exc3000_read_frame
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movslq	(%r15), %rax
	cmpl	$0, 12(%r14,%rax,4)
	movl	$0, %eax
	je	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXC3000_NUM_SLOTS,4,2          ## @EXC3000_NUM_SLOTS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EXC3000_SLOTS_PER_FRAME,4,2    ## @EXC3000_SLOTS_PER_FRAME
	.comm	_EXC3000_LEN_FRAME,4,2          ## @EXC3000_LEN_FRAME
	.no_dead_strip	_exc3000_read_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exc3000_read_data
_exc3000_read_data:                     ; @exc3000_read_data
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_exc3000_read_frame
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w8, [x19, #12]
	str	w8, [x21]
Lloh0:
	adrp	x9, _EXC3000_NUM_SLOTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EXC3000_NUM_SLOTS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w8, w9, #0, ne
	b.le	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x9, _EXC3000_SLOTS_PER_FRAME@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EXC3000_SLOTS_PER_FRAME@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_6
; %bb.4:
Lloh9:
	adrp	x21, _EXC3000_LEN_FRAME@GOTPAGE
Lloh10:
	ldr	x21, [x21, _EXC3000_LEN_FRAME@GOTPAGEOFF]
	ldrsw	x8, [x21]
	add	x1, x19, x8, lsl #2
	mov	x0, x20
	bl	_exc3000_read_frame
	cbnz	w0, LBB0_7
; %bb.5:
	ldrsw	x8, [x21]
	add	x8, x19, x8, lsl #2
	ldr	w8, [x8, #12]
	cbnz	w8, LBB0_2
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EXC3000_NUM_SLOTS,4,2          ; @EXC3000_NUM_SLOTS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EXC3000_SLOTS_PER_FRAME,4,2    ; @EXC3000_SLOTS_PER_FRAME
	.comm	_EXC3000_LEN_FRAME,4,2          ; @EXC3000_LEN_FRAME
	.no_dead_strip	_exc3000_read_data
.subsections_via_symbols
