	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sparc_collect_rwindow          ## -- Begin function sparc_collect_rwindow
	.p2align	4, 0x90
_sparc_collect_rwindow:                 ## @sparc_collect_rwindow
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testb	$1, %r13b
	jne	LBB0_1
## %bb.8:
	movq	_current_gdbarch@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gdbarch_ptr_bit
	movq	_SPARC_L0_REGNUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_SPARC_I7_REGNUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %ebx
	jg	LBB0_17
## %bb.9:
	xorl	%edx, %edx
	cmpl	$64, %eax
	sete	%dl
	leaq	-56(,%rdx,4), %rax
	addq	%rbp, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	(%r13,%rbx,4), %r14d
	movq	_SPARC_SP_REGNUM@GOTPCREL(%rip), %r12
	leaq	-56(%rbp), %r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_SPARC_L0_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	movl	%r14d, %edi
	subl	%eax, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_target_write_memory
	movq	_SPARC_I7_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	leal	1(%rbx), %eax
	addl	$4, %r14d
	cmpl	%ecx, %ebx
	movl	%eax, %ebx
	jge	LBB0_17
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$-1, %r15d
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	%r15d, (%r12)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	%ebx, %r15d
	jne	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r13, %rdx
	callq	_regcache_raw_collect
	movq	_SPARC_I7_REGNUM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	callq	_sparc_fetch_wcookie
	movl	%eax, %r13d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_extract_unsigned_integer
	xorl	%eax, %r13d
	movq	%r12, %rdi
	movl	$4, %esi
	movl	%r13d, %edx
	leaq	-56(%rbp), %r13
	movq	_SPARC_SP_REGNUM@GOTPCREL(%rip), %r12
	callq	_store_unsigned_integer
	jmp	LBB0_15
LBB0_1:
	movq	_SPARC_L0_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_SPARC_I7_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r14d
	jle	LBB0_2
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_BIAS@GOTPCREL(%rip), %rcx
	leal	(%r13,%r14,8), %ebx
	addl	(%rcx), %ebx
	movq	_SPARC_SP_REGNUM@GOTPCREL(%rip), %r13
	leaq	-56(%rbp), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_regcache_raw_collect
	movq	_SPARC_L0_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$3, %eax
	movl	%ebx, %edi
	subl	%eax, %edi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_target_write_memory
	movq	_SPARC_I7_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%r14), %ecx
	addl	$8, %ebx
	cmpl	%eax, %r14d
	movl	%ecx, %r14d
	jge	LBB0_17
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$-1, %r15d
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r15d, (%r13)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r14d, %r15d
	jne	LBB0_7
	jmp	LBB0_6
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BIAS,8,3                       ## @BIAS
	.comm	_SPARC_L0_REGNUM,4,2            ## @SPARC_L0_REGNUM
	.comm	_SPARC_I7_REGNUM,4,2            ## @SPARC_I7_REGNUM
	.comm	_SPARC_SP_REGNUM,4,2            ## @SPARC_SP_REGNUM
	.comm	_current_gdbarch,4,2            ## @current_gdbarch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sparc_collect_rwindow          ; -- Begin function sparc_collect_rwindow
	.p2align	2
_sparc_collect_rwindow:                 ; @sparc_collect_rwindow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	tbnz	w1, #0, LBB0_9
; %bb.1:
Lloh3:
	adrp	x8, _current_gdbarch@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current_gdbarch@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_gdbarch_ptr_bit
Lloh6:
	adrp	x24, _SPARC_L0_REGNUM@GOTPAGE
Lloh7:
	ldr	x24, [x24, _SPARC_L0_REGNUM@GOTPAGEOFF]
	ldr	w21, [x24]
Lloh8:
	adrp	x25, _SPARC_I7_REGNUM@GOTPAGE
Lloh9:
	ldr	x25, [x25, _SPARC_I7_REGNUM@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w21, w8
	b.gt	LBB0_10
; %bb.2:
	cmp	w0, #64
	cset	w9, eq
	mov	x10, sp
	add	x22, x10, w9, uxtw #2
	add	w26, w23, w21, lsl #2
Lloh10:
	adrp	x27, _SPARC_SP_REGNUM@GOTPAGE
Lloh11:
	ldr	x27, [x27, _SPARC_SP_REGNUM@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24]
	sub	w0, w26, w8, lsl #2
	mov	x1, x22
	mov	w2, #4
	bl	_target_write_memory
	ldr	w8, [x25]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w9, w21, #1
	add	w26, w26, #4
	cmp	w21, w8
	mov	x21, x9
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmn	w19, #1
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x27]
	cmp	w9, w19
	ccmp	w19, w21, #4, ne
	b.ne	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, sp
	mov	x0, x20
	mov	x1, x21
	bl	_regcache_raw_collect
	ldr	w8, [x25]
	cmp	w21, w8
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_sparc_fetch_wcookie
	mov	x23, x0
	mov	x0, x22
	mov	w1, #4
	bl	_extract_unsigned_integer
	eor	w2, w0, w23
	mov	x0, x22
	mov	w1, #4
	bl	_store_unsigned_integer
	b	LBB0_3
LBB0_9:
Lloh12:
	adrp	x22, _SPARC_L0_REGNUM@GOTPAGE
Lloh13:
	ldr	x22, [x22, _SPARC_L0_REGNUM@GOTPAGEOFF]
	ldr	w21, [x22]
Lloh14:
	adrp	x24, _SPARC_I7_REGNUM@GOTPAGE
Lloh15:
	ldr	x24, [x24, _SPARC_I7_REGNUM@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w21, w8
	b.le	LBB0_12
LBB0_10:
	ldr	x8, [sp, #8]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
Lloh19:
	adrp	x9, _BIAS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BIAS@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	add	w10, w23, w21, lsl #3
	add	w23, w10, w9
Lloh22:
	adrp	x25, _SPARC_SP_REGNUM@GOTPAGE
Lloh23:
	ldr	x25, [x25, _SPARC_SP_REGNUM@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x2, sp
	mov	x0, x20
	mov	x1, x21
	bl	_regcache_raw_collect
	ldr	w8, [x22]
	sub	w0, w23, w8, lsl #3
	mov	x1, sp
	mov	w2, #8
	bl	_target_write_memory
	ldr	w8, [x24]
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w9, w21, #1
	add	w23, w23, #8
	cmp	w21, w8
	mov	x21, x9
	b.ge	LBB0_10
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cmn	w19, #1
	b.eq	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w9, [x25]
	cmp	w9, w19
	ccmp	w19, w21, #4, ne
	b.ne	LBB0_14
	b	LBB0_13
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_BIAS,8,3                       ; @BIAS
	.comm	_SPARC_L0_REGNUM,4,2            ; @SPARC_L0_REGNUM
	.comm	_SPARC_I7_REGNUM,4,2            ; @SPARC_I7_REGNUM
	.comm	_SPARC_SP_REGNUM,4,2            ; @SPARC_SP_REGNUM
	.comm	_current_gdbarch,4,2            ; @current_gdbarch
.subsections_via_symbols
