	.file	"extr_m68kopdm.c_m68k_op_divs_16_al.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	m68k_op_divs_16_al
	.type	m68k_op_divs_16_al, @function
m68k_op_divs_16_al:
.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_AL_16@PLT
	mov	edi, eax
	call	MAKE_INT_16@PLT
	test	eax, eax
	je	.L2
	mov	rdi, QWORD PTR DX[rip]
	mov	ebx, eax
	cmp	edi, -2147483648
	jne	.L3
	cmp	eax, -1
	je	.L14
.L3:
	call	MAKE_INT_32@PLT
	mov	rdi, QWORD PTR DX[rip]
	cdq
	idiv	ebx
	mov	r12d, eax
	call	MAKE_INT_32@PLT
	mov	edi, r12d
	mov	r13d, eax
	call	MAKE_INT_16@PLT
	mov	ebp, eax
	cmp	eax, r12d
	je	.L15
	mov	eax, DWORD PTR VFLAG_SET[rip]
	mov	DWORD PTR FLAG_V[rip], eax
.L1:
	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	edi, DWORD PTR EXCEPTION_ZERO_DIVIDE[rip]
	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
	jmp	m68ki_exception_trap@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, eax
	mov	DWORD PTR FLAG_Z[rip], eax
	call	NFLAG_16@PLT
	mov	edi, ebp
	mov	DWORD PTR FLAG_N[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	MASK_OUT_ABOVE_16@PLT
	mov	edi, eax
	mov	eax, r13d
	cdq
	idiv	ebx
	sal	edx, 16
	or	edi, edx
	call	MASK_OUT_ABOVE_32@PLT
	mov	QWORD PTR DX[rip], rax
	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
.L14:
	.cfi_restore_state
	mov	DWORD PTR FLAG_Z[rip], 0
	mov	eax, DWORD PTR NFLAG_CLEAR[rip]
	mov	QWORD PTR DX[rip], 0
	mov	DWORD PTR FLAG_N[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
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	m68k_op_divs_16_al, .-m68k_op_divs_16_al
	.comm	VFLAG_SET,4,4
	.comm	VFLAG_CLEAR,4,4
	.comm	NFLAG_CLEAR,4,4
	.comm	FLAG_Z,4,4
	.comm	FLAG_V,4,4
	.comm	FLAG_N,4,4
	.comm	FLAG_C,4,4
	.comm	EXCEPTION_ZERO_DIVIDE,4,4
	.comm	DX,8,8
	.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_m68kopdm.c_m68k_op_divs_16_al.c"
	.text
	.global	__aeabi_idiv
	.global	__aeabi_idivmod
	.align	2
	.global	m68k_op_divs_16_al
	.syntax unified
	.arm
	.fpu softvfp
	.type	m68k_op_divs_16_al, %function
m68k_op_divs_16_al:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	bl	OPER_AL_16
	bl	MAKE_INT_16
	subs	r4, r0, #0
	beq	.L2
	ldr	r7, .L10
	ldr	r0, [r7]
	cmp	r0, #-2147483648
	cmneq	r4, #1
	beq	.L8
	bl	MAKE_INT_32
	mov	r1, r4
	bl	__aeabi_idiv
	mov	r5, r0
	ldr	r0, [r7]
	bl	MAKE_INT_32
	mov	r8, r0
	mov	r0, r5
	bl	MAKE_INT_16
	cmp	r0, r5
	mov	r6, r0
	beq	.L9
	ldr	r2, .L10+4
	ldr	r3, .L10+8
	ldr	r2, [r2]
	str	r2, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L10+12
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r3]
	b	m68ki_exception_trap
.L9:
	ldr	r3, .L10+16
	str	r0, [r3]
	bl	NFLAG_16
	mov	r1, r0
	ldr	r3, .L10+20
	ldr	r0, .L10+24
	ldr	r2, .L10+28
	ldr	ip, [r0]
	ldr	r2, [r2]
	str	r1, [r3]
	ldr	r1, .L10+8
	ldr	r3, .L10+32
	mov	r0, r6
	str	ip, [r1]
	str	r2, [r3]
	bl	MASK_OUT_ABOVE_16
	mov	r3, r0
	mov	r1, r4
	mov	r0, r8
	mov	r4, r3
	bl	__aeabi_idivmod
	orr	r0, r4, r1, lsl #16
	bl	MASK_OUT_ABOVE_32
	str	r0, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r3, #0
	ldr	r2, .L10+36
	ldr	ip, .L10+24
	ldr	r1, [r2]
	ldr	r2, .L10+20
	ldr	r0, .L10+28
	str	r1, [r2]
	ldr	ip, [ip]
	ldr	r2, .L10+8
	ldr	r0, [r0]
	str	ip, [r2]
	ldr	r1, .L10+32
	ldr	r2, .L10+16
	str	r0, [r1]
	str	r3, [r7]
	str	r3, [r2]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	DX
	.word	VFLAG_SET
	.word	FLAG_V
	.word	EXCEPTION_ZERO_DIVIDE
	.word	FLAG_Z
	.word	FLAG_N
	.word	VFLAG_CLEAR
	.word	CFLAG_CLEAR
	.word	FLAG_C
	.word	NFLAG_CLEAR
	.size	m68k_op_divs_16_al, .-m68k_op_divs_16_al
	.comm	VFLAG_SET,4,4
	.comm	VFLAG_CLEAR,4,4
	.comm	NFLAG_CLEAR,4,4
	.comm	FLAG_Z,4,4
	.comm	FLAG_V,4,4
	.comm	FLAG_N,4,4
	.comm	FLAG_C,4,4
	.comm	EXCEPTION_ZERO_DIVIDE,4,4
	.comm	DX,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
