	.file	"extr_m68kopac.c_m68k_op_asr_8_r.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	m68k_op_asr_8_r
	.type	m68k_op_asr_8_r, @function
m68k_op_asr_8_r:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	ebx, DWORD PTR DX[rip]
	mov	edi, DWORD PTR DY[rip]
	call	MASK_OUT_ABOVE_8@PLT
	mov	r12d, ebx
	and	r12d, 63
	mov	r13d, eax
	mov	ecx, r12d
	sar	r13d, cl
	test	r12d, r12d
	je	.L2
	mov	ecx, DWORD PTR CYC_SHIFT[rip]
	mov	edi, r12d
	mov	ebp, eax
	sal	edi, cl
	call	USE_CYCLES@PLT
	and	ebx, 56
	mov	edi, ebp
	je	.L13
	call	GET_MSB_8@PLT
	test	rax, rax
	je	.L6
	or	DWORD PTR DY[rip], 255
	mov	eax, DWORD PTR CFLAG_SET[rip]
	mov	DWORD PTR FLAG_C[rip], eax
	mov	eax, DWORD PTR XFLAG_SET[rip]
	mov	DWORD PTR FLAG_X[rip], eax
	mov	eax, DWORD PTR NFLAG_SET[rip]
	mov	DWORD PTR FLAG_N[rip], eax
	mov	eax, DWORD PTR ZFLAG_CLEAR[rip]
	mov	DWORD PTR FLAG_Z[rip], eax
	mov	eax, DWORD PTR VFLAG_CLEAR[rip]
	mov	DWORD PTR FLAG_V[rip], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR CFLAG_CLEAR[rip]
	mov	DWORD PTR FLAG_C[rip], eax
.L11:
	mov	edi, r13d
	call	NFLAG_8@PLT
	mov	DWORD PTR FLAG_Z[rip], r13d
	mov	DWORD PTR FLAG_N[rip], eax
	mov	eax, DWORD PTR VFLAG_CLEAR[rip]
	mov	DWORD PTR FLAG_V[rip], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	call	GET_MSB_8@PLT
	test	rax, rax
	je	.L4
	mov	rdx, QWORD PTR m68ki_shift_8_table[rip]
	movsx	rax, r12d
	or	r13d, DWORD PTR [rdx+rax*4]
.L4:
	mov	edi, DWORD PTR DY[rip]
	call	MASK_OUT_BELOW_8@PLT
	mov	ecx, 9
	sub	ecx, r12d
	or	eax, r13d
	sal	ebp, cl
	mov	DWORD PTR DY[rip], eax
	mov	DWORD PTR FLAG_C[rip], ebp
	mov	DWORD PTR FLAG_X[rip], ebp
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	and	DWORD PTR DY[rip], -256
	mov	eax, DWORD PTR CFLAG_CLEAR[rip]
	mov	DWORD PTR FLAG_C[rip], eax
	mov	eax, DWORD PTR XFLAG_CLEAR[rip]
	mov	DWORD PTR FLAG_X[rip], eax
	mov	eax, DWORD PTR NFLAG_CLEAR[rip]
	mov	DWORD PTR FLAG_N[rip], eax
	mov	eax, DWORD PTR ZFLAG_SET[rip]
	mov	DWORD PTR FLAG_Z[rip], eax
	mov	eax, DWORD PTR VFLAG_CLEAR[rip]
	mov	DWORD PTR FLAG_V[rip], eax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	m68k_op_asr_8_r, .-m68k_op_asr_8_r
	.comm	m68ki_shift_8_table,8,8
	.comm	ZFLAG_SET,4,4
	.comm	ZFLAG_CLEAR,4,4
	.comm	XFLAG_SET,4,4
	.comm	XFLAG_CLEAR,4,4
	.comm	VFLAG_CLEAR,4,4
	.comm	NFLAG_SET,4,4
	.comm	NFLAG_CLEAR,4,4
	.comm	FLAG_Z,4,4
	.comm	FLAG_X,4,4
	.comm	FLAG_V,4,4
	.comm	FLAG_N,4,4
	.comm	FLAG_C,4,4
	.comm	DY,4,4
	.comm	DX,4,4
	.comm	CYC_SHIFT,4,4
	.comm	CFLAG_SET,4,4
	.comm	CFLAG_CLEAR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_m68kopac.c_m68k_op_asr_8_r.c"
	.text
	.align	2
	.global	m68k_op_asr_8_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	m68k_op_asr_8_r, %function
m68k_op_asr_8_r:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L16
	ldr	r3, .L16+4
	ldr	r0, [r7]
	ldr	r6, [r3]
	bl	MASK_OUT_ABOVE_8
	and	r5, r6, #63
	cmp	r5, #0
	asr	r8, r0, r5
	beq	.L2
	mov	r4, r0
	ldr	r3, .L16+8
	ldr	r0, [r3]
	lsl	r0, r5, r0
	bl	USE_CYCLES
	tst	r6, #56
	mov	r0, r4
	beq	.L14
	bl	GET_MSB_8
	cmp	r0, #0
	bne	.L15
	ldr	r3, .L16+12
	ldr	lr, .L16+16
	ldr	r2, [r3]
	ldr	r3, .L16+20
	ldr	r0, .L16+24
	str	r2, [r3]
	ldr	ip, .L16+28
	ldr	r2, .L16+32
	ldr	r1, .L16+36
	ldr	lr, [lr]
	ldr	r3, [r7]
	str	lr, [r2]
	ldr	r0, [r0]
	ldr	ip, [ip]
	ldr	r1, [r1]
	ldr	r2, .L16+40
	bic	r3, r3, #255
.L12:
	str	r0, [r2]
	ldr	r0, .L16+44
	ldr	r2, .L16+48
	str	ip, [r0]
	str	r1, [r2]
	str	r3, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r8
	ldr	r2, .L16+12
	ldr	r3, .L16+20
	ldr	r2, [r2]
	str	r2, [r3]
.L11:
	bl	NFLAG_8
	ldr	r3, .L16+36
	ldr	ip, .L16+40
	ldr	r1, [r3]
	ldr	r2, .L16+48
	ldr	r3, .L16+44
	str	r0, [ip]
	str	r1, [r2]
	str	r8, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	bl	GET_MSB_8
	cmp	r0, #0
	ldrne	r3, .L16+52
	ldr	r0, [r7]
	ldrne	r3, [r3]
	ldrne	r3, [r3, r5, lsl #2]
	rsb	r5, r5, #9
	orrne	r8, r8, r3
	bl	MASK_OUT_BELOW_8
	ldr	r2, .L16+20
	ldr	r3, .L16+32
	orr	r0, r0, r8
	lsl	r4, r4, r5
	str	r0, [r7]
	str	r4, [r2]
	mov	r0, r8
	str	r4, [r3]
	b	.L11
.L15:
	ldr	r3, .L16+56
	ldr	lr, .L16+60
	ldr	r2, [r3]
	ldr	r3, .L16+20
	ldr	r0, .L16+64
	str	r2, [r3]
	ldr	ip, .L16+68
	ldr	r2, .L16+32
	ldr	r1, .L16+36
	ldr	lr, [lr]
	ldr	r3, [r7]
	str	lr, [r2]
	ldr	r0, [r0]
	ldr	ip, [ip]
	ldr	r1, [r1]
	ldr	r2, .L16+40
	orr	r3, r3, #255
	b	.L12
.L17:
	.align	2
.L16:
	.word	DY
	.word	DX
	.word	CYC_SHIFT
	.word	CFLAG_CLEAR
	.word	XFLAG_CLEAR
	.word	FLAG_C
	.word	NFLAG_CLEAR
	.word	ZFLAG_SET
	.word	FLAG_X
	.word	VFLAG_CLEAR
	.word	FLAG_N
	.word	FLAG_Z
	.word	FLAG_V
	.word	m68ki_shift_8_table
	.word	CFLAG_SET
	.word	XFLAG_SET
	.word	NFLAG_SET
	.word	ZFLAG_CLEAR
	.size	m68k_op_asr_8_r, .-m68k_op_asr_8_r
	.comm	m68ki_shift_8_table,4,4
	.comm	ZFLAG_SET,4,4
	.comm	ZFLAG_CLEAR,4,4
	.comm	XFLAG_SET,4,4
	.comm	XFLAG_CLEAR,4,4
	.comm	VFLAG_CLEAR,4,4
	.comm	NFLAG_SET,4,4
	.comm	NFLAG_CLEAR,4,4
	.comm	FLAG_Z,4,4
	.comm	FLAG_X,4,4
	.comm	FLAG_V,4,4
	.comm	FLAG_N,4,4
	.comm	FLAG_C,4,4
	.comm	DY,4,4
	.comm	DX,4,4
	.comm	CYC_SHIFT,4,4
	.comm	CFLAG_SET,4,4
	.comm	CFLAG_CLEAR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
