	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vx_write_register              ## -- Begin function vx_write_register
	.p2align	4, 0x90
_vx_write_register:                     ## @vx_write_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
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_current_regcache@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_SPARC_GREG_PLEN@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_SPARC_FPREG_PLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	cmpl	$-1, %ebx
	sete	%r13b
	je	LBB0_5
## %bb.1:
	movq	_SPARC_G0_REGNUM@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_3
## %bb.2:
	movq	_SPARC_I7_REGNUM@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jge	LBB0_5
LBB0_3:
	movq	_SPARC32_Y_REGNUM@GOTPCREL(%rip), %rcx
	movb	$1, %al
	cmpl	%ebx, (%rcx)
	jg	LBB0_10
## %bb.4:
	movq	_SPARC32_NPC_REGNUM@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jl	LBB0_10
LBB0_5:
	movq	_vxsparc_gregset@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	movl	$-1, %edx
	movq	%r12, %rcx
	callq	_sparc32_collect_gregset
	movl	(%r14), %esi
	movq	_PTRACE_SETREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_net_write_registers
	movq	_SPARC_SP_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$-1, %ebx
	je	LBB0_9
## %bb.6:
	cmpl	%ebx, %esi
	je	LBB0_9
## %bb.7:
	movq	_SPARC_L0_REGNUM@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_13
## %bb.8:
	movq	_SPARC_I7_REGNUM@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jl	LBB0_13
LBB0_9:
	leaq	-52(%rbp), %rdx
	movq	%r15, %rdi
	callq	_regcache_cooked_read_unsigned
	movl	-52(%rbp), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_sparc_collect_rwindow
	movl	%r13d, %eax
LBB0_10:
	testb	%al, %al
	je	LBB0_13
## %bb.11:
	movq	_target_has_fp@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	movl	$-1, %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_sparc32_collect_fpregset
	movq	_SPARC_FPREG_PLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PTRACE_SETFPREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_net_write_registers
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_current_regcache,8,3           ## @current_regcache
	.comm	_SPARC_GREG_PLEN,4,2            ## @SPARC_GREG_PLEN
	.comm	_SPARC_FPREG_PLEN,4,2           ## @SPARC_FPREG_PLEN
	.comm	_SPARC_G0_REGNUM,4,2            ## @SPARC_G0_REGNUM
	.comm	_SPARC_I7_REGNUM,4,2            ## @SPARC_I7_REGNUM
	.comm	_SPARC32_Y_REGNUM,4,2           ## @SPARC32_Y_REGNUM
	.comm	_SPARC32_NPC_REGNUM,4,2         ## @SPARC32_NPC_REGNUM
	.comm	_vxsparc_gregset,4,2            ## @vxsparc_gregset
	.comm	_PTRACE_SETREGS,4,2             ## @PTRACE_SETREGS
	.comm	_SPARC_SP_REGNUM,4,2            ## @SPARC_SP_REGNUM
	.comm	_SPARC_L0_REGNUM,4,2            ## @SPARC_L0_REGNUM
	.comm	_target_has_fp,8,3              ## @target_has_fp
	.comm	_PTRACE_SETFPREGS,4,2           ## @PTRACE_SETFPREGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vx_write_register              ; -- Begin function vx_write_register
	.p2align	2
_vx_write_register:                     ; @vx_write_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
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _current_regcache@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current_regcache@GOTPAGEOFF]
Lloh5:
	ldr	x19, [x8]
Lloh6:
	adrp	x25, _SPARC_GREG_PLEN@GOTPAGE
Lloh7:
	ldr	x25, [x25, _SPARC_GREG_PLEN@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh10:
	adrp	x23, _SPARC_FPREG_PLEN@GOTPAGE
Lloh11:
	ldr	x23, [x23, _SPARC_FPREG_PLEN@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	x9, x8
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	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
Lloh14:
	adrp	x26, _SPARC_I7_REGNUM@GOTPAGE
Lloh15:
	ldr	x26, [x26, _SPARC_I7_REGNUM@GOTPAGEOFF]
	cmn	w0, #1
	cset	w24, eq
	b.eq	LBB0_4
; %bb.1:
Lloh16:
	adrp	x8, _SPARC_G0_REGNUM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SPARC_G0_REGNUM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x26]
	cmp	w8, w21
	ccmp	w9, w21, #8, le
	b.ge	LBB0_4
; %bb.2:
Lloh19:
	adrp	x8, _SPARC32_Y_REGNUM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SPARC32_Y_REGNUM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _SPARC32_NPC_REGNUM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SPARC32_NPC_REGNUM@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, w21, #8, le
	b.ge	LBB0_4
; %bb.3:
	mov	w24, #1
	cbnz	w24, LBB0_8
	b	LBB0_10
LBB0_4:
Lloh25:
	adrp	x0, _vxsparc_gregset@GOTPAGE
Lloh26:
	ldr	x0, [x0, _vxsparc_gregset@GOTPAGEOFF]
	mov	x1, x19
	mov	w2, #-1
	mov	x3, x22
	bl	_sparc32_collect_gregset
	ldr	w1, [x25]
Lloh27:
	adrp	x8, _PTRACE_SETREGS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PTRACE_SETREGS@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_net_write_registers
Lloh30:
	adrp	x8, _SPARC_SP_REGNUM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SPARC_SP_REGNUM@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	cmn	w21, #1
	b.eq	LBB0_7
; %bb.5:
	cmp	w1, w21
	b.eq	LBB0_7
; %bb.6:
Lloh33:
	adrp	x8, _SPARC_L0_REGNUM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SPARC_L0_REGNUM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x26]
	cmp	w8, w21
	ccmp	w9, w21, #8, le
	b.lt	LBB0_10
LBB0_7:
	sub	x2, x29, #76
	mov	x0, x19
	bl	_regcache_cooked_read_unsigned
	ldur	w1, [x29, #-76]
	mov	x0, x19
	mov	x2, x21
	bl	_sparc_collect_rwindow
	cbz	w24, LBB0_10
LBB0_8:
Lloh36:
	adrp	x8, _target_has_fp@GOTPAGE
Lloh37:
	ldr	x8, [x8, _target_has_fp@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	w1, #-1
	mov	x2, x20
	bl	_sparc32_collect_fpregset
	ldr	w1, [x23]
Lloh39:
	adrp	x8, _PTRACE_SETFPREGS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PTRACE_SETFPREGS@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_net_write_registers
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	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_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_current_regcache,8,3           ; @current_regcache
	.comm	_SPARC_GREG_PLEN,4,2            ; @SPARC_GREG_PLEN
	.comm	_SPARC_FPREG_PLEN,4,2           ; @SPARC_FPREG_PLEN
	.comm	_SPARC_G0_REGNUM,4,2            ; @SPARC_G0_REGNUM
	.comm	_SPARC_I7_REGNUM,4,2            ; @SPARC_I7_REGNUM
	.comm	_SPARC32_Y_REGNUM,4,2           ; @SPARC32_Y_REGNUM
	.comm	_SPARC32_NPC_REGNUM,4,2         ; @SPARC32_NPC_REGNUM
	.comm	_vxsparc_gregset,4,2            ; @vxsparc_gregset
	.comm	_PTRACE_SETREGS,4,2             ; @PTRACE_SETREGS
	.comm	_SPARC_SP_REGNUM,4,2            ; @SPARC_SP_REGNUM
	.comm	_SPARC_L0_REGNUM,4,2            ; @SPARC_L0_REGNUM
	.comm	_target_has_fp,8,3              ; @target_has_fp
	.comm	_PTRACE_SETFPREGS,4,2           ; @PTRACE_SETFPREGS
.subsections_via_symbols
