	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SH2DynarecSetRegisters         ## -- Begin function SH2DynarecSetRegisters
	.p2align	4, 0x90
_SH2DynarecSetRegisters:                ## @SH2DynarecSetRegisters
	.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
	cmpq	%rdi, (%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), %edi
	leaq	28(%r14), %rsi
	movl	$64, %edx
	callq	_memcpy
	movl	24(%r14), %esi
	movq	%rbx, %rdi
	callq	_SH2DynarecSetSR
	movl	20(%r14), %esi
	movq	%rbx, %rdi
	callq	_SH2DynarecSetGBR
	movl	16(%r14), %esi
	movq	%rbx, %rdi
	callq	_SH2DynarecSetVBR
	movl	12(%r14), %esi
	movq	%rbx, %rdi
	callq	_SH2DynarecSetMACH
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	_SH2DynarecSetMACL
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_SH2DynarecSetPR
	movl	(%r14), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_SH2DynarecSetPC                ## TAILCALL
	.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	_SH2DynarecSetRegisters         ; -- Begin function SH2DynarecSetRegisters
	.p2align	2
_SH2DynarecSetRegisters:                ; @SH2DynarecSetRegisters
	.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]
Lloh5:
	adrp	x10, _slave_reg@GOTPAGE
Lloh6:
	ldr	x10, [x10, _slave_reg@GOTPAGEOFF]
	cmp	x8, x0
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	add	x1, x1, #28
	mov	w2, #64
	bl	_memcpy
	ldr	w1, [x19, #24]
	mov	x0, x20
	bl	_SH2DynarecSetSR
	ldr	w1, [x19, #20]
	mov	x0, x20
	bl	_SH2DynarecSetGBR
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_SH2DynarecSetVBR
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_SH2DynarecSetMACH
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_SH2DynarecSetMACL
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_SH2DynarecSetPR
	ldr	w1, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SH2DynarecSetPC
	.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
