	.file	"extr_m68kopac.c_m68k_op_chk2cmp2_8_aw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	m68k_op_chk2cmp2_8_aw
	.type	m68k_op_chk2cmp2_8_aw, @function
m68k_op_chk2cmp2_8_aw:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edi, DWORD PTR CPU_TYPE[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	CPU_TYPE_IS_EC020_PLUS@PLT
	test	rax, rax
	mov	eax, 0
	je	.L2
	call	OPER_I_16@PLT
	mov	rdx, QWORD PTR REG_DA[rip]
	mov	ebp, eax
	sar	eax, 12
	and	eax, 15
	movzx	r12d, BYTE PTR [rdx+rax*4]
	xor	eax, eax
	call	EA_AW_8@PLT
	mov	ebx, eax
	mov	edi, eax
	call	m68ki_read_8@PLT
	lea	edi, 1[rbx]
	mov	r13d, eax
	call	m68ki_read_8@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	BIT_F@PLT
	test	eax, eax
	je	.L20
	mov	eax, r12d
	sub	eax, r13d
	mov	DWORD PTR FLAG_C[rip], eax
.L4:
	cmp	r12d, ebx
	setne	dl
	xor	eax, eax
	cmp	r12d, r13d
	setne	al
	and	eax, edx
	mov	DWORD PTR FLAG_Z[rip], eax
	xor	eax, eax
	call	COND_CS@PLT
	test	rax, rax
	jne	.L18
	sub	ebx, r12d
	xor	eax, eax
	mov	DWORD PTR FLAG_C[rip], ebx
	call	COND_CS@PLT
	test	rax, rax
	jne	.L18
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	m68ki_exception_illegal@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edi, ebp
	call	BIT_B@PLT
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR EXCEPTION_CHK[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	m68ki_exception_trap@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	edi, r12d
	call	MAKE_INT_8@PLT
	mov	edi, r13d
	mov	r14d, eax
	call	MAKE_INT_8@PLT
	sub	r14d, eax
	mov	DWORD PTR FLAG_C[rip], r14d
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	m68k_op_chk2cmp2_8_aw, .-m68k_op_chk2cmp2_8_aw
	.comm	REG_DA,8,8
	.comm	FLAG_Z,4,4
	.comm	FLAG_C,4,4
	.comm	EXCEPTION_CHK,4,4
	.comm	CPU_TYPE,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_chk2cmp2_8_aw.c"
	.text
	.align	2
	.global	m68k_op_chk2cmp2_8_aw
	.syntax unified
	.arm
	.fpu softvfp
	.type	m68k_op_chk2cmp2_8_aw, %function
m68k_op_chk2cmp2_8_aw:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L21
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, [r3]
	bl	CPU_TYPE_IS_EC020_PLUS
	cmp	r0, #0
	beq	.L2
	bl	OPER_I_16
	ldr	r2, .L21+4
	asr	r3, r0, #12
	ldr	r2, [r2]
	and	r3, r3, #15
	ldrb	r7, [r2, r3, lsl #2]	@ zero_extendqisi2
	mov	r5, r0
	bl	EA_AW_8
	mov	r6, r0
	bl	m68ki_read_8
	mov	r4, r0
	add	r0, r6, #1
	bl	m68ki_read_8
	mov	r6, r0
	mov	r0, r5
	bl	BIT_F
	cmp	r0, #0
	beq	.L20
	ldr	r8, .L21+8
	sub	r3, r7, r4
	str	r3, [r8]
.L4:
	cmp	r7, r6
	cmpne	r7, r4
	movne	r4, #1
	moveq	r4, #0
	ldr	r3, .L21+12
	str	r4, [r3]
	bl	COND_CS
	cmp	r0, #0
	bne	.L18
	sub	r6, r6, r7
	str	r6, [r8]
	bl	COND_CS
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	mov	r0, r5
	bl	BIT_B
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, .L21+16
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, [r3]
	b	m68ki_exception_trap
.L2:
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	m68ki_exception_illegal
.L20:
	mov	r0, r7
	bl	MAKE_INT_8
	mov	r9, r0
	mov	r0, r4
	bl	MAKE_INT_8
	ldr	r8, .L21+8
	sub	r9, r9, r0
	str	r9, [r8]
	b	.L4
.L22:
	.align	2
.L21:
	.word	CPU_TYPE
	.word	REG_DA
	.word	FLAG_C
	.word	FLAG_Z
	.word	EXCEPTION_CHK
	.size	m68k_op_chk2cmp2_8_aw, .-m68k_op_chk2cmp2_8_aw
	.comm	REG_DA,4,4
	.comm	FLAG_Z,4,4
	.comm	FLAG_C,4,4
	.comm	EXCEPTION_CHK,4,4
	.comm	CPU_TYPE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
