	.file	"extr_m68kopac.c_m68k_op_bfset_32_al.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	m68k_op_bfset_32_al
	.type	m68k_op_bfset_32_al, @function
m68k_op_bfset_32_al:
.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, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR CPU_TYPE[rip]
	call	CPU_TYPE_IS_EC020_PLUS@PLT
	test	rax, rax
	mov	eax, 0
	jne	.L13
	add	rsp, 8
	.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
.L13:
	.cfi_restore_state
	call	OPER_I_16@PLT
	mov	ebx, eax
	mov	r13d, eax
	xor	eax, eax
	call	EA_AL_8@PLT
	mov	edi, ebx
	sar	r13d, 6
	mov	r12d, eax
	mov	ebp, r13d
	call	BIT_B@PLT
	test	rax, rax
	jne	.L14
	mov	edi, ebx
	and	ebp, 31
	call	BIT_5@PLT
	mov	edi, ebp
	sar	edi, 3
	add	r12d, edi
	test	rax, rax
	je	.L15
.L8:
	mov	rdx, QWORD PTR REG_D[rip]
	and	ebx, 7
	mov	ebx, DWORD PTR [rdx+rbx*4]
.L5:
	mov	edx, ebp
	sar	edx, 31
	shr	edx, 29
	add	ebp, edx
	and	ebp, 7
	sub	ebp, edx
	jns	.L6
	add	ebp, 8
	sub	r12d, 1
.L6:
	sub	ebx, 1
	mov	ecx, 32
	mov	edi, -1
	and	ebx, 31
	add	ebx, 1
	sub	ecx, ebx
	add	ebx, ebp
	sal	edi, cl
	call	MASK_OUT_ABOVE_32@PLT
	mov	ecx, ebp
	mov	edi, r12d
	mov	r14d, eax
	mov	r15d, eax
	sar	r14d, cl
	call	m68ki_read_32@PLT
	mov	ecx, ebp
	mov	edi, eax
	mov	r13d, eax
	sal	edi, cl
	call	NFLAG_32@PLT
	mov	esi, r14d
	mov	edi, r12d
	mov	DWORD PTR FLAG_N[rip], eax
	mov	eax, r14d
	or	esi, r13d
	and	eax, r13d
	mov	DWORD PTR FLAG_Z[rip], eax
	mov	eax, DWORD PTR VFLAG_CLEAR[rip]
	mov	DWORD PTR FLAG_V[rip], eax
	mov	eax, DWORD PTR CFLAG_CLEAR[rip]
	mov	DWORD PTR FLAG_C[rip], eax
	call	m68ki_write_32@PLT
	cmp	ebx, 32
	jg	.L16
	add	rsp, 8
	.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
.L15:
	.cfi_restore_state
	mov	ebp, r13d
	and	ebp, 7
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR REG_D[rip]
	and	ebp, 7
	mov	edi, DWORD PTR [rax+rbp*4]
	call	MAKE_INT_32@PLT
	mov	edi, ebx
	mov	ebp, eax
	call	BIT_5@PLT
	test	ebp, ebp
	lea	edi, 7[rbp]
	cmovns	edi, ebp
	sar	edi, 3
	add	r12d, edi
	test	rax, rax
	jne	.L8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, r15d
	add	r12d, 4
	call	MASK_OUT_ABOVE_8@PLT
	mov	edi, r12d
	mov	ebx, eax
	call	m68ki_read_8@PLT
	mov	edi, r12d
	mov	esi, eax
	mov	eax, ebx
	and	eax, esi
	or	DWORD PTR FLAG_Z[rip], eax
	add	rsp, 8
	.cfi_def_cfa_offset 56
	or	esi, ebx
	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_write_8@PLT
	.cfi_endproc
.LFE0:
	.size	m68k_op_bfset_32_al, .-m68k_op_bfset_32_al
	.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_bfset_32_al.c"
	.text
	.align	2
	.global	m68k_op_bfset_32_al
	.syntax unified
	.arm
	.fpu softvfp
	.type	m68k_op_bfset_32_al, %function
m68k_op_bfset_32_al:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r3]
	bl	CPU_TYPE_IS_EC020_PLUS
	cmp	r0, #0
	bne	.L14
	pop	{r4, r5, r6, r7, r8, lr}
	b	m68ki_exception_illegal
.L14:
	bl	OPER_I_16
	mov	r4, r0
	bl	EA_AL_8
	mov	r7, r0
	mov	r0, r4
	bl	BIT_B
	asr	r5, r4, #6
	cmp	r0, #0
	and	r6, r5, #31
	bne	.L15
	mov	r0, r4
	bl	BIT_5
	cmp	r0, #0
	add	r7, r7, r6, asr #3
	andeq	r6, r5, #7
	beq	.L6
	ldr	r8, .L16+4
.L8:
	ldr	r3, [r8]
	and	r4, r4, #7
	ldr	r4, [r3, r4, lsl #2]
.L5:
	rsbs	r3, r6, #0
	and	r3, r3, #7
	and	r6, r6, #7
	rsbpl	r6, r3, #0
	cmp	r6, #0
	addlt	r6, r6, #8
	sublt	r7, r7, #1
.L6:
	mvn	r0, #0
	add	r4, r4, r0
	and	r4, r4, #31
	rsb	r3, r4, #31
	lsl	r0, r0, r3
	bl	MASK_OUT_ABOVE_32
	mov	r5, r0
	mov	r0, r7
	bl	m68ki_read_32
	mov	r8, r0
	lsl	r0, r0, r6
	bl	NFLAG_32
	ldr	r1, .L16+8
	ldr	r3, .L16+12
	ldr	ip, [r1]
	str	r0, [r3]
	asr	r1, r5, r6
	ldr	r3, .L16+16
	ldr	r2, .L16+20
	and	r0, r1, r8
	orr	r1, r1, r8
	ldr	r8, .L16+24
	str	ip, [r3]
	ldr	r2, [r2]
	ldr	r3, .L16+28
	add	r4, r4, #1
	str	r0, [r8]
	add	r4, r6, r4
	mov	r0, r7
	str	r2, [r3]
	bl	m68ki_write_32
	cmp	r4, #32
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r0, r5
	bl	MASK_OUT_ABOVE_8
	add	r7, r7, #4
	mov	r4, r0
	mov	r0, r7
	bl	m68ki_read_8
	mov	r1, r0
	ldr	ip, [r8]
	and	r2, r4, r0
	orr	r2, r2, ip
	mov	r0, r7
	orr	r1, r4, r1
	str	r2, [r8]
	pop	{r4, r5, r6, r7, r8, lr}
	b	m68ki_write_8
.L15:
	ldr	r8, .L16+4
	and	r5, r5, #7
	ldr	r3, [r8]
	ldr	r0, [r3, r5, lsl #2]
	bl	MAKE_INT_32
	mov	r6, r0
	mov	r0, r4
	bl	BIT_5
	cmp	r6, #0
	add	r3, r6, #7
	movge	r3, r6
	cmp	r0, #0
	add	r7, r7, r3, asr #3
	bne	.L8
	b	.L5
.L17:
	.align	2
.L16:
	.word	CPU_TYPE
	.word	REG_D
	.word	VFLAG_CLEAR
	.word	FLAG_N
	.word	FLAG_V
	.word	CFLAG_CLEAR
	.word	FLAG_Z
	.word	FLAG_C
	.size	m68k_op_bfset_32_al, .-m68k_op_bfset_32_al
	.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
