	.file	"extr_m68kmake.c_generate_opcode_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"EA_%s_8()"
.LC1:
	.string	"EA_%s_16()"
.LC2:
	.string	"EA_%s_32()"
.LC3:
	.string	"OPER_%s_8()"
.LC4:
	.string	"OPER_%s_16()"
.LC5:
	.string	"OPER_%s_32()"
	.text
	.p2align 4
	.globl	generate_opcode_handler
	.type	generate_opcode_handler, @function
generate_opcode_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rsi
	push	r13
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	.cfi_offset 12, -48
	mov	r12, rdx
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MAX_LINE_LENGTH[rip]
	mov	rcx, rsp
	add	eax, 1
	cdqe
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L12:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L12
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L13
.L4:
	mov	edi, 4
	mov	DWORD PTR -68[rbp], r8d
	call	malloc@PLT
	mov	r8d, DWORD PTR -68[rbp]
	mov	rdi, rbx
	mov	r15, rax
	mov	rsi, rax
	mov	edx, r8d
	call	set_opcode_struct@PLT
	mov	rsi, r15
	mov	rdi, rsp
	call	get_base_name@PLT
	mov	edi, DWORD PTR g_prototype_file[rip]
	mov	rsi, rsp
	call	write_prototype@PLT
	mov	rsi, rsp
	mov	rdi, r15
	call	add_opcode_output_table_entry@PLT
	mov	rsi, rsp
	mov	rdi, r13
	call	write_function_name@PLT
	mov	r8d, DWORD PTR -68[rbp]
	cmp	DWORD PTR EA_MODE_NONE[rip], r8d
	jne	.L14
.L5:
	mov	rdx, r12
	mov	rsi, r14
	mov	rdi, r13
	call	write_body@PLT
	mov	rdi, r15
	add	DWORD PTR g_num_functions[rip], 1
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR g_ea_info_table[rip]
	movsx	rbx, r8d
	mov	rdi, rsp
	lea	rsi, .LC0[rip]
	mov	rdx, QWORD PTR [rax+rbx*8]
	call	sprintf@PLT
	mov	esi, DWORD PTR ID_OPHANDLER_EA_AY_8[rip]
	mov	rdx, rsp
	mov	rdi, r12
	call	add_replace_string@PLT
	mov	rax, QWORD PTR g_ea_info_table[rip]
	mov	rdi, rsp
	lea	rsi, .LC1[rip]
	mov	rdx, QWORD PTR [rax+rbx*8]
	call	sprintf@PLT
	mov	esi, DWORD PTR ID_OPHANDLER_EA_AY_16[rip]
	mov	rdx, rsp
	mov	rdi, r12
	call	add_replace_string@PLT
	mov	rax, QWORD PTR g_ea_info_table[rip]
	mov	rdi, rsp
	lea	rsi, .LC2[rip]
	mov	rdx, QWORD PTR [rax+rbx*8]
	call	sprintf@PLT
	mov	esi, DWORD PTR ID_OPHANDLER_EA_AY_32[rip]
	mov	rdx, rsp
	mov	rdi, r12
	call	add_replace_string@PLT
	mov	rax, QWORD PTR g_ea_info_table[rip]
	mov	rdi, rsp
	lea	rsi, .LC3[rip]
	mov	rdx, QWORD PTR [rax+rbx*8]
	call	sprintf@PLT
	mov	esi, DWORD PTR ID_OPHANDLER_OPER_AY_8[rip]
	mov	rdx, rsp
	mov	rdi, r12
	call	add_replace_string@PLT
	mov	rax, QWORD PTR g_ea_info_table[rip]
	mov	rdi, rsp
	lea	rsi, .LC4[rip]
	mov	rdx, QWORD PTR [rax+rbx*8]
	call	sprintf@PLT
	mov	esi, DWORD PTR ID_OPHANDLER_OPER_AY_16[rip]
	mov	rdx, rsp
	mov	rdi, r12
	call	add_replace_string@PLT
	mov	rax, QWORD PTR g_ea_info_table[rip]
	mov	rdi, rsp
	lea	rsi, .LC5[rip]
	mov	rdx, QWORD PTR [rax+rbx*8]
	call	sprintf@PLT
	mov	esi, DWORD PTR ID_OPHANDLER_OPER_AY_32[rip]
	mov	rdx, rsp
	mov	rdi, r12
	call	add_replace_string@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	generate_opcode_handler, .-generate_opcode_handler
	.comm	g_prototype_file,4,4
	.comm	g_num_functions,4,4
	.comm	g_ea_info_table,8,8
	.comm	MAX_LINE_LENGTH,4,4
	.comm	ID_OPHANDLER_OPER_AY_8,4,4
	.comm	ID_OPHANDLER_OPER_AY_32,4,4
	.comm	ID_OPHANDLER_OPER_AY_16,4,4
	.comm	ID_OPHANDLER_EA_AY_8,4,4
	.comm	ID_OPHANDLER_EA_AY_32,4,4
	.comm	ID_OPHANDLER_EA_AY_16,4,4
	.comm	EA_MODE_NONE,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_m68kmake.c_generate_opcode_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EA_%s_8()\000"
	.align	2
.LC1:
	.ascii	"EA_%s_16()\000"
	.align	2
.LC2:
	.ascii	"EA_%s_32()\000"
	.align	2
.LC3:
	.ascii	"OPER_%s_8()\000"
	.align	2
.LC4:
	.ascii	"OPER_%s_16()\000"
	.align	2
.LC5:
	.ascii	"OPER_%s_32()\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	generate_opcode_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_opcode_handler, %function
generate_opcode_handler:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #8
	ldr	ip, .L7
	mov	r9, r3
	ldr	ip, [ip]
	ldr	r3, .L7+4
	add	ip, ip, #8
	bic	ip, ip, #7
	sub	sp, sp, ip
	mov	r7, r0
	mov	r0, #4
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldr	r6, [fp, #4]
	mov	r8, r1
	mov	r5, r2
	bl	malloc
	mov	r4, r0
	mov	r2, r6
	mov	r1, r4
	mov	r0, r9
	bl	set_opcode_struct
	mov	r1, r4
	mov	r0, sp
	bl	get_base_name
	ldr	r3, .L7+8
	mov	r1, sp
	ldr	r0, [r3]
	bl	write_prototype
	mov	r1, sp
	mov	r0, r4
	bl	add_opcode_output_table_entry
	mov	r1, sp
	mov	r0, r7
	bl	write_function_name
	ldr	r3, .L7+12
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L2
	ldr	r9, .L7+16
	ldr	r1, .L7+20
	ldr	r3, [r9]
	mov	r0, sp
	ldr	r2, [r3, r6, lsl #2]
	bl	sprintf
	ldr	r3, .L7+24
	mov	r2, sp
	ldr	r1, [r3]
	mov	r0, r5
	bl	add_replace_string
	ldr	r3, [r9]
	ldr	r1, .L7+28
	ldr	r2, [r3, r6, lsl #2]
	mov	r0, sp
	bl	sprintf
	ldr	r3, .L7+32
	mov	r2, sp
	ldr	r1, [r3]
	mov	r0, r5
	bl	add_replace_string
	ldr	r3, [r9]
	ldr	r1, .L7+36
	ldr	r2, [r3, r6, lsl #2]
	mov	r0, sp
	bl	sprintf
	ldr	r3, .L7+40
	mov	r2, sp
	ldr	r1, [r3]
	mov	r0, r5
	bl	add_replace_string
	ldr	r3, [r9]
	ldr	r1, .L7+44
	ldr	r2, [r3, r6, lsl #2]
	mov	r0, sp
	bl	sprintf
	ldr	r3, .L7+48
	mov	r2, sp
	ldr	r1, [r3]
	mov	r0, r5
	bl	add_replace_string
	ldr	r3, [r9]
	ldr	r1, .L7+52
	ldr	r2, [r3, r6, lsl #2]
	mov	r0, sp
	bl	sprintf
	ldr	r3, .L7+56
	mov	r2, sp
	ldr	r1, [r3]
	mov	r0, r5
	bl	add_replace_string
	ldr	r3, [r9]
	ldr	r1, .L7+60
	ldr	r2, [r3, r6, lsl #2]
	mov	r0, sp
	bl	sprintf
	ldr	r3, .L7+64
	mov	r2, sp
	mov	r0, r5
	ldr	r1, [r3]
	bl	add_replace_string
.L2:
	mov	r2, r5
	mov	r1, r8
	mov	r0, r7
	bl	write_body
	ldr	r2, .L7+68
	mov	r0, r4
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
	bl	free
	ldr	r3, .L7+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L6
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L6:
	bl	__stack_chk_fail
.L8:
	.align	2
.L7:
	.word	MAX_LINE_LENGTH
	.word	.LC6
	.word	g_prototype_file
	.word	EA_MODE_NONE
	.word	g_ea_info_table
	.word	.LC0
	.word	ID_OPHANDLER_EA_AY_8
	.word	.LC1
	.word	ID_OPHANDLER_EA_AY_16
	.word	.LC2
	.word	ID_OPHANDLER_EA_AY_32
	.word	.LC3
	.word	ID_OPHANDLER_OPER_AY_8
	.word	.LC4
	.word	ID_OPHANDLER_OPER_AY_16
	.word	.LC5
	.word	ID_OPHANDLER_OPER_AY_32
	.word	g_num_functions
	.size	generate_opcode_handler, .-generate_opcode_handler
	.comm	g_prototype_file,4,4
	.comm	g_num_functions,4,4
	.comm	g_ea_info_table,4,4
	.comm	MAX_LINE_LENGTH,4,4
	.comm	ID_OPHANDLER_OPER_AY_8,4,4
	.comm	ID_OPHANDLER_OPER_AY_32,4,4
	.comm	ID_OPHANDLER_OPER_AY_16,4,4
	.comm	ID_OPHANDLER_EA_AY_8,4,4
	.comm	ID_OPHANDLER_EA_AY_32,4,4
	.comm	ID_OPHANDLER_EA_AY_16,4,4
	.comm	EA_MODE_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
