	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_store_inferior_registers       ## -- Begin function store_inferior_registers
	.p2align	4, 0x90
_store_inferior_registers:              ## @store_inferior_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %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)
	testl	%edi, %edi
	jle	LBB0_1
## %bb.4:
	movl	%edi, %ebx
	movq	_ZERO_REGNUM@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	je	LBB0_14
## %bb.5:
	movq	_PS_REGNUM@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_14
## %bb.6:
	movq	_current_gdbarch@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_mips_regnum
	cmpl	%ebx, (%rax)
	je	LBB0_14
## %bb.7:
	movl	(%r14), %edi
	callq	_mips_regnum
	cmpl	%ebx, 4(%rax)
	je	LBB0_14
## %bb.8:
	movl	(%r14), %edi
	callq	_mips_regnum
	cmpl	%ebx, 8(%rax)
	je	LBB0_14
## %bb.9:
	movq	_DEPRECATED_FP_REGNUM@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_14
## %bb.10:
	movq	_FIRST_EMBED_REGNUM@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_12
## %bb.11:
	movq	_LAST_EMBED_REGNUM@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jge	LBB0_14
LBB0_12:
	movl	%ebx, %edi
	callq	_register_ptrace_addr
	movl	%eax, %r14d
	movq	_errno@GOTPCREL(%rip), %r13
	movq	$0, (%r13)
	movq	_PT_WRITE_U@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIDGET
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_read_register
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_ptrace
	cmpq	$0, (%r13)
	je	LBB0_14
## %bb.13:
	leaq	L_.str(%rip), %rsi
	leaq	-128(%rbp), %r14
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_sprintf
	movq	%r14, %rdi
	callq	_perror_with_name
	jmp	LBB0_14
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	_store_inferior_registers
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_3
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$88, %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	_ZERO_REGNUM,4,2                ## @ZERO_REGNUM
	.comm	_PS_REGNUM,4,2                  ## @PS_REGNUM
	.comm	_current_gdbarch,4,2            ## @current_gdbarch
	.comm	_DEPRECATED_FP_REGNUM,4,2       ## @DEPRECATED_FP_REGNUM
	.comm	_FIRST_EMBED_REGNUM,4,2         ## @FIRST_EMBED_REGNUM
	.comm	_LAST_EMBED_REGNUM,4,2          ## @LAST_EMBED_REGNUM
	.comm	_errno,8,3                      ## @errno
	.comm	_PT_WRITE_U,4,2                 ## @PT_WRITE_U
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"writing register number %d"

	.comm	_NUM_REGS,4,2                   ## @NUM_REGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_store_inferior_registers       ; -- Begin function store_inferior_registers
	.p2align	2
_store_inferior_registers:              ; @store_inferior_registers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cmp	w0, #0
	b.le	LBB0_8
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _ZERO_REGNUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZERO_REGNUM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PS_REGNUM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PS_REGNUM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	b.eq	LBB0_11
; %bb.2:
Lloh9:
	adrp	x20, _current_gdbarch@GOTPAGE
Lloh10:
	ldr	x20, [x20, _current_gdbarch@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_mips_regnum
	ldr	w8, [x0]
	cmp	w8, w19
	b.eq	LBB0_11
; %bb.3:
	ldr	w0, [x20]
	bl	_mips_regnum
	ldr	w8, [x0, #4]
	cmp	w8, w19
	b.eq	LBB0_11
; %bb.4:
	ldr	w0, [x20]
	bl	_mips_regnum
	ldr	w8, [x0, #8]
Lloh11:
	adrp	x9, _DEPRECATED_FP_REGNUM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DEPRECATED_FP_REGNUM@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #4, ne
	b.eq	LBB0_11
; %bb.5:
Lloh14:
	adrp	x8, _FIRST_EMBED_REGNUM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FIRST_EMBED_REGNUM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _LAST_EMBED_REGNUM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _LAST_EMBED_REGNUM@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #8, le
	b.ge	LBB0_11
; %bb.6:
	mov	x0, x19
	bl	_register_ptrace_addr
	mov	x20, x0
Lloh20:
	adrp	x23, _errno@GOTPAGE
Lloh21:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	str	xzr, [x23]
Lloh22:
	adrp	x8, _PT_WRITE_U@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PT_WRITE_U@GOTPAGEOFF]
Lloh24:
	ldr	w21, [x8]
Lloh25:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh26:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_PIDGET
	mov	x22, x0
	mov	x0, x19
	bl	_read_register
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_ptrace
	ldr	x8, [x23]
	cbz	x8, LBB0_11
; %bb.7:
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x2, x19
	bl	_sprintf
	add	x0, sp, #8
	bl	_perror_with_name
	b	LBB0_11
LBB0_8:
Lloh30:
	adrp	x20, _NUM_REGS@GOTPAGE
Lloh31:
	ldr	x20, [x20, _NUM_REGS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	w19, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_store_inferior_registers
	add	w19, w19, #1
	ldr	w8, [x20]
	cmp	w19, w8
	b.lt	LBB0_10
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_ZERO_REGNUM,4,2                ; @ZERO_REGNUM
	.comm	_PS_REGNUM,4,2                  ; @PS_REGNUM
	.comm	_current_gdbarch,4,2            ; @current_gdbarch
	.comm	_DEPRECATED_FP_REGNUM,4,2       ; @DEPRECATED_FP_REGNUM
	.comm	_FIRST_EMBED_REGNUM,4,2         ; @FIRST_EMBED_REGNUM
	.comm	_LAST_EMBED_REGNUM,4,2          ; @LAST_EMBED_REGNUM
	.comm	_errno,8,3                      ; @errno
	.comm	_PT_WRITE_U,4,2                 ; @PT_WRITE_U
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"writing register number %d"

	.comm	_NUM_REGS,4,2                   ; @NUM_REGS
.subsections_via_symbols
