	.file	"extr_insn-eval.c_get_eff_addr_reg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_eff_addr_reg, @function
get_eff_addr_reg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	insn_get_modrm@PLT
	mov	eax, DWORD PTR 8[rbx]
	test	eax, eax
	jne	.L2
.L10:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	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 4[rbx]
	call	X86_MODRM_MOD@PLT
	cmp	eax, 3
	jne	.L10
	mov	edx, DWORD PTR REG_TYPE_RM[rip]
	mov	rsi, rbp
	mov	rdi, rbx
	call	get_reg_offset@PLT
	mov	DWORD PTR [r12], eax
	mov	esi, eax
	test	eax, eax
	js	.L10
	mov	eax, DWORD PTR [rbx]
	mov	rdi, rbp
	cmp	eax, 2
	je	.L12
	cmp	eax, 4
	je	.L13
	call	regs_get_register@PLT
	cdqe
	mov	QWORD PTR 0[r13], rax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	call	regs_get_register@PLT
	mov	eax, eax
	mov	QWORD PTR 0[r13], rax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	call	regs_get_register@PLT
	movzx	eax, ax
	mov	QWORD PTR 0[r13], rax
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	get_eff_addr_reg, .-get_eff_addr_reg
	.comm	REG_TYPE_RM,4,4
	.comm	EINVAL,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_insn-eval.c_get_eff_addr_reg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_eff_addr_reg, %function
get_eff_addr_reg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r7, r1
	mov	r6, r2
	mov	r5, r3
	bl	insn_get_modrm
	ldr	r0, [r4, #8]
	cmp	r0, #0
	bne	.L2
.L10:
	ldr	r3, .L13
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r0, [r4, #4]
	bl	X86_MODRM_MOD
	cmp	r0, #3
	bne	.L10
	ldr	r3, .L13+4
	mov	r1, r7
	mov	r0, r4
	ldr	r2, [r3]
	bl	get_reg_offset
	cmp	r0, #0
	mov	r1, r0
	str	r0, [r6]
	blt	.L10
	ldr	r3, [r4]
	mov	r0, r7
	cmp	r3, #2
	beq	.L12
	bl	regs_get_register
	mov	r3, r0
	mov	r0, #0
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	bl	regs_get_register
	lsl	r0, r0, #16
	lsr	r0, r0, #16
	str	r0, [r5]
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	EINVAL
	.word	REG_TYPE_RM
	.size	get_eff_addr_reg, .-get_eff_addr_reg
	.comm	REG_TYPE_RM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
