	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_regs
_read_regs:                             ## @read_regs
	.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
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	_CSR_REGISTER_BASE@GOTPCREL(%rip), %rax
	subl	(%rax), %ecx
	orl	%ecx, %r8d
	movq	_RCODE_TYPE_ERROR@GOTPCREL(%rip), %rbx
	testb	$3, %r8b
	jne	LBB0_33
## %bb.1:
	addl	$-128, %ecx
	cmpl	$13, %ecx
	ja	LBB0_32
## %bb.2:
	movq	%rdx, %r14
	movq	%rdi, %r15
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	movl	(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, (%r14)
	addq	$4, %r14
LBB0_4:
	movl	(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, (%r14)
	addq	$4, %r14
LBB0_5:
	movl	4(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, (%r14)
	jmp	LBB0_33
LBB0_6:
	movl	8(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, (%r14)
	addq	$4, %r14
LBB0_7:
	movl	12(%r15), %edi
	jmp	LBB0_31
LBB0_8:
	movl	16(%r15), %ebx
	movq	48(%r15), %rax
	movq	_GET_CYCLE_COUNTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	*(%rax)
	movl	%eax, 16(%r15)
	cmpl	%eax, %ebx
	jle	LBB0_10
## %bb.9:
	subl	$-128, 20(%r15)
LBB0_10:
	movl	%eax, %edi
	callq	_cpu_to_be32
	movl	%eax, (%r14)
	addq	$4, %r14
LBB0_11:
	movl	16(%r15), %ebx
	movq	48(%r15), %rax
	movq	_GET_CYCLE_COUNTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	*(%rax)
	movl	%eax, 16(%r15)
	movl	20(%r15), %ecx
	cmpl	%eax, %ebx
	jle	LBB0_13
## %bb.12:
	subl	$-128, %ecx
	movl	%ecx, 20(%r15)
LBB0_13:
	sarl	$25, %eax
	orl	%ecx, %eax
	movl	%eax, %edi
	jmp	LBB0_31
LBB0_14:
	movq	48(%r15), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*%rax
	movl	%eax, %edi
	jmp	LBB0_17
LBB0_16:
	movl	24(%r15), %edi
LBB0_17:
	callq	_cpu_to_be32
	movl	%eax, (%r14)
	addq	$4, %r14
LBB0_18:
	movq	48(%r15), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*%rax
	movl	%eax, %edi
	jmp	LBB0_21
LBB0_20:
	movl	28(%r15), %edi
LBB0_21:
	callq	_cpu_to_be32
	movl	%eax, (%r14)
	addq	$4, %r14
LBB0_22:
	movq	48(%r15), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%r15, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*%rax
	movl	%eax, %edi
	jmp	LBB0_25
LBB0_24:
	movl	32(%r15), %edi
LBB0_25:
	callq	_cpu_to_be32
	movl	%eax, (%r14)
	addq	$4, %r14
LBB0_26:
	movq	48(%r15), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	%r15, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*%rax
	movl	%eax, %edi
	jmp	LBB0_29
LBB0_28:
	movl	36(%r15), %edi
LBB0_29:
	callq	_cpu_to_be32
	movl	%eax, (%r14)
	addq	$4, %r14
LBB0_30:
	movl	40(%r15), %edi
LBB0_31:
	callq	_cpu_to_be32
	movl	%eax, (%r14)
LBB0_32:
	movq	_RCODE_ADDRESS_ERROR@GOTPCREL(%rip), %rbx
LBB0_33:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_33
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_26
	.long	L0_0_set_22
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_32
	.long	L0_0_set_30
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.comm	_CSR_REGISTER_BASE,4,2          ## @CSR_REGISTER_BASE
	.comm	_RCODE_TYPE_ERROR,4,2           ## @RCODE_TYPE_ERROR
	.comm	_out,4,2                        ## @out
	.comm	_RCODE_ADDRESS_ERROR,4,2        ## @RCODE_ADDRESS_ERROR
	.comm	_GET_CYCLE_COUNTER,4,2          ## @GET_CYCLE_COUNTER
	.comm	_RCODE_COMPLETE,4,2             ## @RCODE_COMPLETE
	.no_dead_strip	_read_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_regs
_read_regs:                             ; @read_regs
	.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
Lloh0:
	adrp	x8, _CSR_REGISTER_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSR_REGISTER_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w3, w8
	orr	w9, w8, w4
	tst	x9, #0x3
	b.eq	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _RCODE_TYPE_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RCODE_TYPE_ERROR@GOTPAGEOFF]
	b	LBB0_34
LBB0_2:
	sub	w9, w8, #128
	cmp	w9, #13
	b.hi	LBB0_33
; %bb.3:
	mov	x19, x2
	mov	x20, x0
Lloh5:
	adrp	x8, _RCODE_TYPE_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RCODE_TYPE_ERROR@GOTPAGEOFF]
Lloh7:
	adrp	x10, lJTI0_0@PAGE
Lloh8:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
	ldr	w0, [x20]
	bl	_cpu_to_be32
	str	w0, [x19], #4
LBB0_5:
	ldr	w0, [x20]
	bl	_cpu_to_be32
	str	w0, [x19], #4
LBB0_6:
	ldr	w0, [x20, #4]
	bl	_cpu_to_be32
	str	w0, [x19]
	b	LBB0_1
LBB0_7:
	ldr	w0, [x20, #8]
	bl	_cpu_to_be32
	str	w0, [x19], #4
LBB0_8:
	ldr	w0, [x20, #12]
	b	LBB0_32
LBB0_9:
	ldr	w21, [x20, #16]
	ldr	x8, [x20, #48]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _GET_CYCLE_COUNTER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GET_CYCLE_COUNTER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mov	x0, x20
	mov	w2, #0
	blr	x8
	str	w0, [x20, #16]
	cmp	w21, w0
	b.le	LBB0_11
; %bb.10:
	ldr	w8, [x20, #20]
	add	w8, w8, #128
	str	w8, [x20, #20]
LBB0_11:
	bl	_cpu_to_be32
	str	w0, [x19], #4
LBB0_12:
	ldr	w21, [x20, #16]
	ldr	x8, [x20, #48]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _GET_CYCLE_COUNTER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GET_CYCLE_COUNTER@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	mov	x0, x20
	mov	w2, #0
	blr	x8
	str	w0, [x20, #16]
	ldr	w8, [x20, #20]
	cmp	w21, w0
	b.le	LBB0_14
; %bb.13:
	add	w8, w8, #128
	str	w8, [x20, #20]
LBB0_14:
	orr	w0, w8, w0, asr #25
	b	LBB0_32
LBB0_15:
	ldr	x8, [x20, #48]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	blr	x8
	b	LBB0_18
LBB0_17:
	ldr	w0, [x20, #24]
LBB0_18:
	bl	_cpu_to_be32
	str	w0, [x19], #4
LBB0_19:
	ldr	x8, [x20, #48]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_21
; %bb.20:
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	mov	w3, #0
	blr	x8
	b	LBB0_22
LBB0_21:
	ldr	w0, [x20, #28]
LBB0_22:
	bl	_cpu_to_be32
	str	w0, [x19], #4
LBB0_23:
	ldr	x8, [x20, #48]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_25
; %bb.24:
	mov	x0, x20
	mov	w1, #2
	mov	w2, #0
	mov	w3, #0
	blr	x8
	b	LBB0_26
LBB0_25:
	ldr	w0, [x20, #32]
LBB0_26:
	bl	_cpu_to_be32
	str	w0, [x19], #4
LBB0_27:
	ldr	x8, [x20, #48]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_29
; %bb.28:
	mov	x0, x20
	mov	w1, #3
	mov	w2, #0
	mov	w3, #0
	blr	x8
	b	LBB0_30
LBB0_29:
	ldr	w0, [x20, #36]
LBB0_30:
	bl	_cpu_to_be32
	str	w0, [x19], #4
LBB0_31:
	ldr	w0, [x20, #40]
LBB0_32:
	bl	_cpu_to_be32
	str	w0, [x19]
LBB0_33:
Lloh15:
	adrp	x8, _RCODE_ADDRESS_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RCODE_ADDRESS_ERROR@GOTPAGEOFF]
LBB0_34:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_34-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_27-LBB0_4)>>2
	.byte	(LBB0_23-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_33-LBB0_4)>>2
	.byte	(LBB0_31-LBB0_4)>>2
	.byte	(LBB0_19-LBB0_4)>>2
                                        ; -- End function
	.comm	_CSR_REGISTER_BASE,4,2          ; @CSR_REGISTER_BASE
	.comm	_RCODE_TYPE_ERROR,4,2           ; @RCODE_TYPE_ERROR
	.comm	_out,4,2                        ; @out
	.comm	_RCODE_ADDRESS_ERROR,4,2        ; @RCODE_ADDRESS_ERROR
	.comm	_GET_CYCLE_COUNTER,4,2          ; @GET_CYCLE_COUNTER
	.comm	_RCODE_COMPLETE,4,2             ; @RCODE_COMPLETE
	.no_dead_strip	_read_regs
.subsections_via_symbols
