	.file	"extr_m68kops.h_m68k_op_sbcd_8_mm_ay7.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	m68k_op_sbcd_8_mm_ay7, @function
m68k_op_sbcd_8_mm_ay7:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	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
	call	OPER_A7_PD_8@PLT
	mov	r13d, eax
	xor	eax, eax
	call	EA_AX_PD_8@PLT
	mov	edi, eax
	mov	r12d, eax
	call	m68ki_read_8@PLT
	mov	edi, eax
	mov	ebp, eax
	call	LOW_NIBBLE@PLT
	mov	edi, r13d
	mov	ebx, eax
	call	LOW_NIBBLE@PLT
	sub	ebx, eax
	xor	eax, eax
	call	XFLAG_AS_1@PLT
	mov	edi, ebp
	sub	ebx, eax
	mov	eax, DWORD PTR VFLAG_CLEAR[rip]
	cmp	ebx, 9
	mov	DWORD PTR FLAG_V[rip], eax
	lea	eax, -6[rbx]
	cmovg	ebx, eax
	call	HIGH_NIBBLE@PLT
	mov	edi, r13d
	mov	rbp, rax
	call	HIGH_NIBBLE@PLT
	sub	rbp, rax
	lea	edi, [rbx+rbp]
	cmp	edi, 153
	jle	.L3
	mov	rax, QWORD PTR CFLAG_SET[rip]
	add	edi, 160
	mov	QWORD PTR FLAG_C[rip], rax
	mov	QWORD PTR FLAG_X[rip], rax
	mov	rax, QWORD PTR NFLAG_SET[rip]
	mov	QWORD PTR FLAG_N[rip], rax
.L4:
	call	MASK_OUT_ABOVE_8@PLT
	or	DWORD PTR FLAG_Z[rip], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edi, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	esi, eax
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	m68ki_write_8@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	QWORD PTR FLAG_C[rip], 0
	mov	QWORD PTR FLAG_X[rip], 0
	mov	QWORD PTR FLAG_N[rip], 0
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	m68k_op_sbcd_8_mm_ay7, .-m68k_op_sbcd_8_mm_ay7
	.comm	VFLAG_CLEAR,4,4
	.comm	NFLAG_SET,8,8
	.comm	FLAG_Z,4,4
	.comm	FLAG_X,8,8
	.comm	FLAG_V,4,4
	.comm	FLAG_N,8,8
	.comm	FLAG_C,8,8
	.comm	CFLAG_SET,8,8
	.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_m68kops.h_m68k_op_sbcd_8_mm_ay7.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	m68k_op_sbcd_8_mm_ay7, %function
m68k_op_sbcd_8_mm_ay7:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	bl	OPER_A7_PD_8
	mov	r7, r0
	bl	EA_AX_PD_8
	mov	r6, r0
	bl	m68ki_read_8
	mov	r4, r0
	bl	LOW_NIBBLE
	mov	r5, r0
	mov	r0, r7
	bl	LOW_NIBBLE
	sub	r5, r5, r0
	bl	XFLAG_AS_1
	ldr	r3, .L7
	sub	r5, r5, r0
	ldr	r2, [r3]
	ldr	r3, .L7+4
	cmp	r5, #9
	mov	r0, r4
	subgt	r5, r5, #6
	str	r2, [r3]
	bl	HIGH_NIBBLE
	mov	r4, r0
	mov	r0, r7
	bl	HIGH_NIBBLE
	sub	r4, r4, r0
	add	r0, r4, r5
	cmp	r0, #153
	ble	.L3
	ldr	r3, .L7+8
	ldr	r2, .L7+12
	ldr	r3, [r3]
	ldr	r1, .L7+16
	str	r3, [r2]
	ldr	r1, [r1]
	ldr	ip, .L7+20
	ldr	r2, .L7+24
	add	r0, r0, #160
	str	r3, [ip]
	str	r1, [r2]
.L4:
	bl	MASK_OUT_ABOVE_8
	mov	r1, r0
	ldr	r2, .L7+28
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r2]
	orr	r3, r3, r1
	str	r3, [r2]
	b	m68ki_write_8
.L3:
	mov	r3, #0
	ldr	ip, .L7+12
	ldr	r1, .L7+20
	ldr	r2, .L7+24
	str	r3, [ip]
	str	r3, [r1]
	str	r3, [r2]
	b	.L4
.L8:
	.align	2
.L7:
	.word	VFLAG_CLEAR
	.word	FLAG_V
	.word	CFLAG_SET
	.word	FLAG_C
	.word	NFLAG_SET
	.word	FLAG_X
	.word	FLAG_N
	.word	FLAG_Z
	.size	m68k_op_sbcd_8_mm_ay7, .-m68k_op_sbcd_8_mm_ay7
	.comm	VFLAG_CLEAR,4,4
	.comm	NFLAG_SET,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	CFLAG_SET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
