	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nios2_coprocessor_regs
_nios2_coprocessor_regs:                ## @nios2_coprocessor_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_nios2_coprocessor_regs.cached(%rip), %rax
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	_NUMREGNAMES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_nios2_num_regs@GOTPCREL(%rip), %r12
	cmpl	(%r12), %ebx
	jge	LBB0_2
## %bb.3:
	leaq	(,%rbx,4), %r15
	movq	_nios2_regs@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%r15), %edi
	movq	%r14, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_5
## %bb.7:
	movq	_nios2_coprocessor_regs.cached(%rip), %r15
	jmp	LBB0_8
LBB0_2:
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_6:
	addq	(%r13), %r15
	movq	%r15, _nios2_coprocessor_regs.cached(%rip)
LBB0_8:
	movq	%r15, %rdi
	callq	_assert
	movq	_nios2_coprocessor_regs.cached(%rip), %rax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_nios2_coprocessor_regs.cached,8,3 ## @nios2_coprocessor_regs.cached
	.comm	_NUMREGNAMES,4,2                ## @NUMREGNAMES
	.comm	_nios2_num_regs,4,2             ## @nios2_num_regs
	.comm	_nios2_regs,8,3                 ## @nios2_regs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"c0"

	.no_dead_strip	_nios2_coprocessor_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nios2_coprocessor_regs
_nios2_coprocessor_regs:                ; @nios2_coprocessor_regs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	adrp	x20, _nios2_coprocessor_regs.cached@PAGE
	ldr	x0, [x20, _nios2_coprocessor_regs.cached@PAGEOFF]
	cbnz	x0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _NUMREGNAMES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUMREGNAMES@GOTPAGEOFF]
Lloh2:
	ldrsw	x21, [x8]
Lloh3:
	adrp	x22, _nios2_num_regs@GOTPAGE
Lloh4:
	ldr	x22, [x22, _nios2_num_regs@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w21, w8
	b.ge	LBB0_6
; %bb.2:
	lsl	x23, x21, #2
Lloh5:
	adrp	x24, _nios2_regs@GOTPAGE
Lloh6:
	ldr	x24, [x24, _nios2_regs@GOTPAGEOFF]
Lloh7:
	adrp	x19, l_.str@PAGE
Lloh8:
	add	x19, x19, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w0, [x8, x23]
	mov	x1, x19
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22]
	add	x23, x23, #4
	cmp	x21, x8
	b.lt	LBB0_3
; %bb.5:
	ldr	x0, [x20, _nios2_coprocessor_regs.cached@PAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x0, #0
	b	LBB0_8
LBB0_7:
	ldr	x8, [x24]
	add	x0, x8, x23
	str	x0, [x20, _nios2_coprocessor_regs.cached@PAGEOFF]
LBB0_8:
	bl	_assert
	ldr	x0, [x20, _nios2_coprocessor_regs.cached@PAGEOFF]
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_nios2_coprocessor_regs.cached,8,3 ; @nios2_coprocessor_regs.cached
	.comm	_NUMREGNAMES,4,2                ; @NUMREGNAMES
	.comm	_nios2_num_regs,4,2             ; @nios2_num_regs
	.comm	_nios2_regs,8,3                 ; @nios2_regs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"c0"

	.no_dead_strip	_nios2_coprocessor_regs
.subsections_via_symbols
