	.file	"extr_m68kopac.c_m68k_op_bfffo_32_di.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	m68k_op_bfffo_32_di
	.type	m68k_op_bfffo_32_di, @function
m68k_op_bfffo_32_di:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR CPU_TYPE[rip]
	call	CPU_TYPE_IS_EC020_PLUS@PLT
	test	rax, rax
	mov	eax, 0
	jne	.L26
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	m68ki_exception_illegal@PLT
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	call	OPER_I_16@PLT
	mov	r12d, eax
	mov	r14d, eax
	xor	eax, eax
	call	EA_AY_DI_8@PLT
	mov	edi, r12d
	sar	r14d, 6
	mov	ebp, eax
	call	BIT_B@PLT
	test	rax, rax
	jne	.L27
	mov	ebx, r14d
	mov	edi, r12d
	call	BIT_5@PLT
	and	ebx, 31
	mov	edx, ebx
	sar	edx, 3
	add	edx, ebp
	test	rax, rax
	je	.L28
.L11:
	mov	rax, QWORD PTR REG_D[rip]
	mov	ecx, r12d
	and	ecx, 7
	mov	r13d, DWORD PTR [rax+rcx*4]
.L5:
	mov	eax, ebx
	sar	eax, 31
	shr	eax, 29
	lea	r14d, [rbx+rax]
	and	r14d, 7
	sub	r14d, eax
	jns	.L6
	add	r14d, 8
	sub	edx, 1
.L6:
	mov	edi, edx
	mov	DWORD PTR 12[rsp], edx
	sub	r13d, 1
	call	m68ki_read_32@PLT
	mov	ecx, r14d
	and	r13d, 31
	sal	eax, cl
	lea	r15d, 1[r13]
	mov	edi, eax
	call	MASK_OUT_ABOVE_32@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	ebp, eax
	lea	eax, [r14+r15]
	cmp	eax, 32
	jg	.L29
.L7:
	mov	edi, ebp
	call	NFLAG_32@PLT
	mov	edx, DWORD PTR VFLAG_CLEAR[rip]
	mov	ecx, 32
	sub	ecx, r15d
	mov	DWORD PTR FLAG_N[rip], eax
	mov	eax, ebp
	mov	DWORD PTR FLAG_V[rip], edx
	mov	edx, DWORD PTR CFLAG_CLEAR[rip]
	sar	eax, cl
	mov	ecx, r13d
	mov	DWORD PTR FLAG_Z[rip], eax
	mov	DWORD PTR FLAG_C[rip], edx
	mov	edx, 1
	sal	edx, cl
	test	edx, edx
	jne	.L24
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L30:
	add	ebx, 1
	sar	edx
	je	.L8
.L24:
	test	eax, edx
	je	.L30
.L8:
	mov	rax, QWORD PTR REG_D[rip]
	sar	r12d, 12
	and	r12d, 7
	mov	DWORD PTR [rax+r12*4], ebx
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	and	r14d, 7
	mov	r13d, r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L29:
	lea	edi, 4[rdx]
	call	m68ki_read_8@PLT
	mov	ecx, r14d
	sal	eax, cl
	sar	eax, 8
	or	ebp, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rax, QWORD PTR REG_D[rip]
	and	r14d, 7
	mov	r13d, r12d
	mov	edi, DWORD PTR [rax+r14*4]
	call	MAKE_INT_32@PLT
	mov	edi, r12d
	mov	ebx, eax
	call	BIT_5@PLT
	test	ebx, ebx
	lea	edx, 7[rbx]
	cmovns	edx, ebx
	sar	edx, 3
	add	edx, ebp
	test	rax, rax
	je	.L5
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	m68k_op_bfffo_32_di, .-m68k_op_bfffo_32_di
	.comm	VFLAG_CLEAR,4,4
	.comm	REG_D,8,8
	.comm	FLAG_Z,4,4
	.comm	FLAG_V,4,4
	.comm	FLAG_N,4,4
	.comm	FLAG_C,4,4
	.comm	CPU_TYPE,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_bfffo_32_di.c"
	.text
	.align	2
	.global	m68k_op_bfffo_32_di
	.syntax unified
	.arm
	.fpu softvfp
	.type	m68k_op_bfffo_32_di, %function
m68k_op_bfffo_32_di:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L31
	ldr	r0, [r3]
	bl	CPU_TYPE_IS_EC020_PLUS
	cmp	r0, #0
	bne	.L27
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	m68ki_exception_illegal
.L27:
	bl	OPER_I_16
	mov	r5, r0
	bl	EA_AY_DI_8
	mov	r10, r0
	mov	r0, r5
	bl	BIT_B
	asr	r6, r5, #6
	cmp	r0, #0
	and	r4, r6, #31
	bne	.L28
	mov	r0, r5
	bl	BIT_5
	cmp	r0, #0
	add	r10, r10, r4, asr #3
	beq	.L23
	ldr	r7, .L31+4
.L11:
	ldr	r3, [r7]
	and	r2, r5, #7
	ldr	r3, [r3, r2, lsl #2]
.L5:
	rsbs	r2, r4, #0
	and	r2, r2, #7
	and	r6, r4, #7
	rsbpl	r6, r2, #0
	cmp	r6, #0
	addlt	r6, r6, #8
	sublt	r10, r10, #1
	b	.L6
.L23:
	mov	r3, r5
	ldr	r7, .L31+4
	and	r6, r6, #7
.L6:
	sub	r3, r3, #1
	mov	r0, r10
	and	r9, r3, #31
	bl	m68ki_read_32
	lsl	r0, r0, r6
	bl	MASK_OUT_ABOVE_32
	add	r8, r9, #1
	add	r3, r6, r8
	cmp	r3, #32
	mov	fp, r0
	bgt	.L29
.L7:
	mov	r0, fp
	bl	NFLAG_32
	mov	r3, #1
	ldr	r2, .L31+8
	ldr	r1, .L31+12
	rsb	r8, r8, #32
	ldr	lr, [r2]
	asr	r2, fp, r8
	str	r2, [r1]
	ldr	ip, .L31+16
	ldr	r1, .L31+20
	ldr	ip, [ip]
	str	r0, [r1]
	ldr	r0, .L31+24
	ldr	r1, .L31+28
	lsls	r3, r3, r9
	str	lr, [r0]
	str	ip, [r1]
	bne	.L25
	b	.L8
.L30:
	asrs	r3, r3, #1
	add	r4, r4, #1
	beq	.L8
.L25:
	tst	r2, r3
	beq	.L30
.L8:
	ldr	r3, [r7]
	asr	r5, r5, #12
	and	r5, r5, #7
	str	r4, [r3, r5, lsl #2]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	add	r0, r10, #4
	bl	m68ki_read_8
	lsl	r6, r0, r6
	orr	fp, fp, r6, asr #8
	b	.L7
.L28:
	ldr	r7, .L31+4
	and	r6, r6, #7
	ldr	r3, [r7]
	ldr	r0, [r3, r6, lsl #2]
	bl	MAKE_INT_32
	mov	r4, r0
	mov	r0, r5
	bl	BIT_5
	cmp	r4, #0
	add	r3, r4, #7
	movge	r3, r4
	cmp	r0, #0
	add	r10, r10, r3, asr #3
	moveq	r3, r5
	beq	.L5
	b	.L11
.L32:
	.align	2
.L31:
	.word	CPU_TYPE
	.word	REG_D
	.word	VFLAG_CLEAR
	.word	FLAG_Z
	.word	CFLAG_CLEAR
	.word	FLAG_N
	.word	FLAG_V
	.word	FLAG_C
	.size	m68k_op_bfffo_32_di, .-m68k_op_bfffo_32_di
	.comm	VFLAG_CLEAR,4,4
	.comm	REG_D,4,4
	.comm	FLAG_Z,4,4
	.comm	FLAG_V,4,4
	.comm	FLAG_N,4,4
	.comm	FLAG_C,4,4
	.comm	CPU_TYPE,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
