	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SH2DynarecGetRegisters         ## -- Begin function SH2DynarecGetRegisters
	.p2align	4, 0x90
_SH2DynarecGetRegisters:                ## @SH2DynarecGetRegisters
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_MSH2@GOTPCREL(%rip), %rax
	leaq	28(%rsi), %rdi
	cmpq	%rbx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_master_reg@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_slave_reg@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movl	$64, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_SH2DynarecGetSR
	movl	%eax, 24(%r14)
	movq	%rbx, %rdi
	callq	_SH2DynarecGetGBR
	movl	%eax, 20(%r14)
	movq	%rbx, %rdi
	callq	_SH2DynarecGetVBR
	movl	%eax, 16(%r14)
	movq	%rbx, %rdi
	callq	_SH2DynarecGetMACH
	movl	%eax, 12(%r14)
	movq	%rbx, %rdi
	callq	_SH2DynarecGetMACL
	movl	%eax, 8(%r14)
	movq	%rbx, %rdi
	callq	_SH2DynarecGetPR
	movl	%eax, 4(%r14)
	movq	%rbx, %rdi
	callq	_SH2DynarecGetPC
	movl	%eax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSH2,8,3                       ## @MSH2
	.comm	_master_reg,4,2                 ## @master_reg
	.comm	_slave_reg,4,2                  ## @slave_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SH2DynarecGetRegisters         ; -- Begin function SH2DynarecGetRegisters
	.p2align	2
_SH2DynarecGetRegisters:                ; @SH2DynarecGetRegisters
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MSH2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSH2@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _master_reg@GOTPAGE
Lloh4:
	ldr	x9, [x9, _master_reg@GOTPAGEOFF]
	add	x0, x1, #28
Lloh5:
	adrp	x10, _slave_reg@GOTPAGE
Lloh6:
	ldr	x10, [x10, _slave_reg@GOTPAGEOFF]
	cmp	x8, x20
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
	mov	w2, #64
	bl	_memcpy
	mov	x0, x20
	bl	_SH2DynarecGetSR
	str	w0, [x19, #24]
	mov	x0, x20
	bl	_SH2DynarecGetGBR
	str	w0, [x19, #20]
	mov	x0, x20
	bl	_SH2DynarecGetVBR
	str	w0, [x19, #16]
	mov	x0, x20
	bl	_SH2DynarecGetMACH
	str	w0, [x19, #12]
	mov	x0, x20
	bl	_SH2DynarecGetMACL
	str	w0, [x19, #8]
	mov	x0, x20
	bl	_SH2DynarecGetPR
	str	w0, [x19, #4]
	mov	x0, x20
	bl	_SH2DynarecGetPC
	str	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSH2,8,3                       ; @MSH2
	.comm	_master_reg,4,2                 ; @master_reg
	.comm	_slave_reg,4,2                  ; @slave_reg
.subsections_via_symbols
