	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gdbsim_fetch_register
_gdbsim_fetch_register:                 ## @gdbsim_fetch_register
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$-1, %edi
	je	LBB0_1
## %bb.4:
	movl	%edi, %ebx
	callq	_REGISTER_SIM_REGNO
	cmpl	$129, %eax
	je	LBB0_14
## %bb.5:
	movq	%rsp, %r13
	movq	_MAX_REGISTER_SIZE@GOTPCREL(%rip), %r15
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.6:
	movl	(%r15), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	(%r15), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_supply_register
	movl	%ebx, %edi
	movl	$-1, %esi
	callq	_set_register_cached
	jmp	LBB0_13
LBB0_1:
	movq	_NUM_REGS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_14
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_gdbsim_fetch_register
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_3
	jmp	LBB0_14
LBB0_7:
	movl	(%r15), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	testl	%ebx, %ebx
	setns	%al
	movq	_NUM_REGS@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	setg	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_gdb_assert
	movl	(%r15), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_gdbsim_desc@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%ebx, %edi
	callq	_REGISTER_SIM_REGNO
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_DEPRECATED_REGISTER_RAW_SIZE
	movl	%r15d, %edi
	movl	%r12d, %esi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_sim_fetch_register
	testl	%eax, %eax
	jle	LBB0_11
## %bb.8:
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_DEPRECATED_REGISTER_RAW_SIZE
	cmpl	%eax, %r15d
	je	LBB0_11
## %bb.9:
	testb	$1, _gdbsim_fetch_register.warn_user(%rip)
	jne	LBB0_11
## %bb.10:
	movq	_gdb_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_REGISTER_NAME
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_REGISTER_SIM_REGNO
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_DEPRECATED_REGISTER_RAW_SIZE
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	pushq	%rax
	callq	_fprintf_unfiltered
	addq	$16, %rsp
	movb	$1, _gdbsim_fetch_register.warn_user(%rip)
LBB0_11:
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_supply_register
	xorl	%eax, %eax
	callq	_sr_get_debug
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_printf_filtered
	movl	%ebx, %edi
	callq	_DEPRECATED_REGISTER_RAW_SIZE
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dump_mem
LBB0_13:
	movq	%r13, %rsp
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_REGS,4,2                   ## @NUM_REGS
	.comm	_MAX_REGISTER_SIZE,4,2          ## @MAX_REGISTER_SIZE
.zerofill __DATA,__bss,_gdbsim_fetch_register.warn_user,1,2 ## @gdbsim_fetch_register.warn_user
	.comm	_gdbsim_desc,4,2                ## @gdbsim_desc
	.comm	_gdb_stderr,4,2                 ## @gdb_stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Size of register %s (%d/%d) incorrect (%d instead of %d))"

L_.str.1:                               ## @.str.1
	.asciz	"gdbsim_fetch_register: %d"

	.no_dead_strip	_gdbsim_fetch_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gdbsim_fetch_register
_gdbsim_fetch_register:                 ; @gdbsim_fetch_register
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_REGISTER_SIM_REGNO
	cmp	w0, #129
	b.eq	LBB0_13
; %bb.2:
	mov	x25, sp
	cmp	w0, #128
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x12, _MAX_REGISTER_SIZE@GOTPAGE
Lloh4:
	ldr	x12, [x12, _MAX_REGISTER_SIZE@GOTPAGEOFF]
	ldr	w8, [x12]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w2, [x12]
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	mov	x0, x19
	mov	x1, x20
	bl	_supply_register
	mov	x0, x19
	mov	w1, #-1
	bl	_set_register_cached
	b	LBB0_12
LBB0_4:
Lloh7:
	adrp	x20, _NUM_REGS@GOTPAGE
Lloh8:
	ldr	x20, [x20, _NUM_REGS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.5:
	mov	w19, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_gdbsim_fetch_register
	add	w19, w19, #1
	ldr	w8, [x20]
	cmp	w19, w8
	b.lt	LBB0_6
	b	LBB0_13
LBB0_7:
Lloh9:
	adrp	x21, _MAX_REGISTER_SIZE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _MAX_REGISTER_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	cmp	w19, #0
Lloh13:
	adrp	x8, _NUM_REGS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NUM_REGS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ccmp	w8, w19, #4, ge
	cset	w0, gt
	bl	_gdb_assert
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #0
	bl	_memset
Lloh16:
	adrp	x8, _gdbsim_desc@GOTPAGE
Lloh17:
	ldr	x8, [x8, _gdbsim_desc@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_REGISTER_SIM_REGNO
	mov	x22, x0
	mov	x0, x19
	bl	_DEPRECATED_REGISTER_RAW_SIZE
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_sim_fetch_register
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x21, x0
	mov	x0, x19
	bl	_DEPRECATED_REGISTER_RAW_SIZE
	adrp	x26, _gdbsim_fetch_register.warn_user@PAGE
	ldrb	w8, [x26, _gdbsim_fetch_register.warn_user@PAGEOFF]
	cmp	w21, w0
	ccmp	w8, #0, #0, ne
	b.ne	LBB0_10
; %bb.9:
Lloh19:
	adrp	x8, _gdb_stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _gdb_stderr@GOTPAGEOFF]
Lloh21:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_REGISTER_NAME
	mov	x23, x0
	mov	x0, x19
	bl	_REGISTER_SIM_REGNO
	mov	x24, x0
	mov	x0, x19
	bl	_DEPRECATED_REGISTER_RAW_SIZE
	mov	x6, x0
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	mov	x3, x19
	mov	x4, x24
	mov	x5, x21
	bl	_fprintf_unfiltered
	mov	w8, #1
	strb	w8, [x26, _gdbsim_fetch_register.warn_user@PAGEOFF]
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_supply_register
	bl	_sr_get_debug
	cbz	w0, LBB0_12
; %bb.11:
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_printf_filtered
	mov	x0, x19
	bl	_DEPRECATED_REGISTER_RAW_SIZE
	mov	x1, x0
	mov	x0, x20
	bl	_dump_mem
LBB0_12:
	mov	sp, x25
LBB0_13:
	ldur	x8, [x29, #-72]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_REGS,4,2                   ; @NUM_REGS
	.comm	_MAX_REGISTER_SIZE,4,2          ; @MAX_REGISTER_SIZE
.zerofill __DATA,__bss,_gdbsim_fetch_register.warn_user,1,2 ; @gdbsim_fetch_register.warn_user
	.comm	_gdbsim_desc,4,2                ; @gdbsim_desc
	.comm	_gdb_stderr,4,2                 ; @gdb_stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Size of register %s (%d/%d) incorrect (%d instead of %d))"

l_.str.1:                               ; @.str.1
	.asciz	"gdbsim_fetch_register: %d"

	.no_dead_strip	_gdbsim_fetch_register
.subsections_via_symbols
