	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e7000_fetch_registers
_e7000_fetch_registers:                 ## @e7000_fetch_registers
	.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
	leaq	L_.str(%rip), %rdi
	callq	_puts_e7000debug
	movq	_TARGET_ARCHITECTURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	_bfd_arch_sh@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.2:
	movl	8(%rax), %edx
	addl	$-128, %edx
	cmpl	$3, %edx
	jae	LBB0_3
## %bb.4:
	movq	_want_sh3@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_1:
	xorl	%esi, %esi
	jmp	LBB0_6
LBB0_3:
	movq	_want_sh@GOTPCREL(%rip), %rdx
LBB0_5:
	movq	(%rdx), %rsi
LBB0_6:
	movq	_bfd_arch_h8300@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.7:
	movl	$-131, %ecx
	addl	8(%rax), %ecx
	cmpl	$4, %ecx
	jae	LBB0_8
## %bb.9:
	movq	_want_h8300s@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_want_h8300h@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rsi
LBB0_11:
	movq	_gch@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fetch_regs_from_dump
	movq	_NUM_REALREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_NUM_REGS@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ebx
	jge	LBB0_14
## %bb.12:
	leaq	-28(%rbp), %r14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, -28(%rbp)
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_supply_register
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_13
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"R\r"

	.comm	_TARGET_ARCHITECTURE,8,3        ## @TARGET_ARCHITECTURE
	.comm	_bfd_arch_sh,8,3                ## @bfd_arch_sh
	.comm	_want_sh,8,3                    ## @want_sh
	.comm	_want_sh3,8,3                   ## @want_sh3
	.comm	_bfd_arch_h8300,8,3             ## @bfd_arch_h8300
	.comm	_want_h8300h,8,3                ## @want_h8300h
	.comm	_want_h8300s,8,3                ## @want_h8300s
	.comm	_gch,4,2                        ## @gch
	.comm	_NUM_REALREGS,4,2               ## @NUM_REALREGS
	.comm	_NUM_REGS,4,2                   ## @NUM_REGS
	.no_dead_strip	_e7000_fetch_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e7000_fetch_registers
_e7000_fetch_registers:                 ; @e7000_fetch_registers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_puts_e7000debug
Lloh2:
	adrp	x8, _TARGET_ARCHITECTURE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TARGET_ARCHITECTURE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x8]
Lloh5:
	adrp	x10, _bfd_arch_sh@GOTPAGE
Lloh6:
	ldr	x10, [x10, _bfd_arch_sh@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x10, _want_sh@GOTPAGE
Lloh9:
	ldr	x10, [x10, _want_sh@GOTPAGEOFF]
	ldr	w11, [x8, #8]
	sub	w11, w11, #128
Lloh10:
	adrp	x12, _want_sh3@GOTPAGE
Lloh11:
	ldr	x12, [x12, _want_sh3@GOTPAGEOFF]
	cmp	w11, #3
	csel	x10, x12, x10, lo
	ldr	x1, [x10]
	b	LBB0_3
LBB0_2:
	mov	x1, #0
LBB0_3:
Lloh12:
	adrp	x10, _bfd_arch_h8300@GOTPAGE
Lloh13:
	ldr	x10, [x10, _bfd_arch_h8300@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.4:
Lloh15:
	adrp	x9, _want_h8300h@GOTPAGE
Lloh16:
	ldr	x9, [x9, _want_h8300h@GOTPAGEOFF]
	ldr	w8, [x8, #8]
	sub	w8, w8, #131
Lloh17:
	adrp	x10, _want_h8300s@GOTPAGE
Lloh18:
	ldr	x10, [x10, _want_h8300s@GOTPAGEOFF]
	cmp	w8, #4
	csel	x8, x10, x9, lo
	ldr	x1, [x8]
LBB0_5:
Lloh19:
	adrp	x8, _gch@GOTPAGE
Lloh20:
	ldr	x8, [x8, _gch@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_fetch_regs_from_dump
Lloh22:
	adrp	x8, _NUM_REALREGS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NUM_REALREGS@GOTPAGEOFF]
Lloh24:
	ldr	w19, [x8]
Lloh25:
	adrp	x20, _NUM_REGS@GOTPAGE
Lloh26:
	ldr	x20, [x20, _NUM_REGS@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cmp	w19, w8
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	wzr, [sp, #12]
	add	x1, sp, #12
	mov	x0, x19
	bl	_supply_register
	add	w19, w19, #1
	b	LBB0_6
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"R\r"

	.comm	_TARGET_ARCHITECTURE,8,3        ; @TARGET_ARCHITECTURE
	.comm	_bfd_arch_sh,8,3                ; @bfd_arch_sh
	.comm	_want_sh,8,3                    ; @want_sh
	.comm	_want_sh3,8,3                   ; @want_sh3
	.comm	_bfd_arch_h8300,8,3             ; @bfd_arch_h8300
	.comm	_want_h8300h,8,3                ; @want_h8300h
	.comm	_want_h8300s,8,3                ; @want_h8300s
	.comm	_gch,4,2                        ; @gch
	.comm	_NUM_REALREGS,4,2               ; @NUM_REALREGS
	.comm	_NUM_REGS,4,2                   ; @NUM_REGS
	.no_dead_strip	_e7000_fetch_registers
.subsections_via_symbols
