	.file	"extr_monitor.c_monitor_store_register.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"MON Cannot store unknown register\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"MON storeg %d %s\n"
.LC2:
	.string	"EXP setreg.resp_delim\n"
.LC3:
	.string	"%s\r"
.LC4:
	.string	"EXP setreg.term\n"
.LC5:
	.string	"EXP setreg_termcmd\n"
.LC6:
	.string	"%s"
	.text
	.p2align 4
	.type	monitor_store_register, @function
monitor_store_register:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdx, QWORD PTR current_monitor[rip]
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rax, QWORD PTR [rdx]
	mov	ebp, edi
	test	rax, rax
	je	.L2
	call	rax
	mov	r12, rax
.L3:
	test	r12, r12
	je	.L4
	cmp	BYTE PTR [r12], 0
	jne	.L5
.L4:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, .LC0[rip]
	pop	r12
	.cfi_def_cfa_offset 16
	xor	eax, eax
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	monitor_debug@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, ebp
	call	read_register@PLT
	mov	edi, ebp
	mov	r13d, eax
	call	DEPRECATED_REGISTER_RAW_SIZE@PLT
	mov	edi, r13d
	mov	esi, eax
	call	phex@PLT
	mov	esi, ebp
	lea	rdi, .LC1[rip]
	mov	edx, eax
	xor	eax, eax
	call	monitor_debug@PLT
	mov	rax, QWORD PTR current_monitor[rip]
	mov	edx, DWORD PTR 16[rax]
	test	DWORD PTR MO_REGISTER_VALUE_FIRST[rip], edx
	jne	.L23
	mov	rdi, QWORD PTR 24[rax]
	test	DWORD PTR MO_SETREG_INTERACTIVE[rip], edx
	jne	.L24
	mov	edx, r13d
	mov	rsi, r12
	xor	eax, eax
	call	monitor_printf@PLT
.L7:
	mov	rax, QWORD PTR current_monitor[rip]
	cmp	QWORD PTR 48[rax], 0
	jne	.L25
.L9:
	cmp	QWORD PTR 40[rax], 0
	je	.L10
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	monitor_debug@PLT
	mov	rax, QWORD PTR current_monitor[rip]
	xor	edx, edx
	xor	esi, esi
	mov	rdi, QWORD PTR 40[rax]
	call	monitor_expect@PLT
	mov	rax, QWORD PTR current_monitor[rip]
	mov	eax, DWORD PTR 16[rax]
	test	DWORD PTR MO_SETREG_INTERACTIVE[rip], eax
	jne	.L26
.L10:
	xor	esi, esi
	xor	edi, edi
	call	monitor_expect_prompt@PLT
	mov	rax, QWORD PTR current_monitor[rip]
	cmp	QWORD PTR 32[rax], 0
	je	.L1
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	monitor_debug@PLT
	mov	rax, QWORD PTR current_monitor[rip]
	lea	rdi, .LC6[rip]
	mov	rsi, QWORD PTR 32[rax]
	xor	eax, eax
	call	monitor_printf@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	esi, esi
	pop	r12
	.cfi_def_cfa_offset 16
	xor	edi, edi
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	monitor_expect_prompt@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[rdx]
	movsx	rax, edi
	mov	r12, QWORD PTR [rdx+rax*8]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L24:
	xor	eax, eax
	mov	rsi, r12
	call	monitor_printf@PLT
	mov	rax, QWORD PTR current_monitor[rip]
	cmp	QWORD PTR 48[rax], 0
	je	.L9
.L25:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	monitor_debug@PLT
	xor	edx, edx
	xor	esi, esi
	lea	rdi, setreg_resp_delim_pattern[rip]
	call	monitor_expect_regexp@PLT
	mov	rax, QWORD PTR current_monitor[rip]
	mov	edx, DWORD PTR 16[rax]
	test	DWORD PTR MO_SETREG_INTERACTIVE[rip], edx
	je	.L9
	mov	edi, r13d
	call	paddr_nz@PLT
	lea	rdi, .LC3[rip]
	mov	rsi, rax
	xor	eax, eax
	call	monitor_printf@PLT
	mov	rax, QWORD PTR current_monitor[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L1:
	pop	rbp
	.cfi_remember_state
	.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
.L23:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rax]
	movsx	rsi, r13d
	mov	rdx, r12
	xor	eax, eax
	call	monitor_printf@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, r13d
	call	paddr_nz@PLT
	lea	rdi, .LC3[rip]
	mov	rsi, rax
	xor	eax, eax
	call	monitor_printf@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	monitor_store_register, .-monitor_store_register
	.comm	setreg_resp_delim_pattern,4,4
	.comm	current_monitor,8,8
	.comm	MO_SETREG_INTERACTIVE,4,4
	.comm	MO_REGISTER_VALUE_FIRST,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_monitor.c_monitor_store_register.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"MON Cannot store unknown register\012\000"
	.align	2
.LC1:
	.ascii	"MON storeg %d %s\012\000"
	.align	2
.LC2:
	.ascii	"EXP setreg.resp_delim\012\000"
	.align	2
.LC3:
	.ascii	"%s\015\000"
	.align	2
.LC4:
	.ascii	"EXP setreg.term\012\000"
	.align	2
.LC5:
	.ascii	"EXP setreg_termcmd\012\000"
	.align	2
.LC6:
	.ascii	"%s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	monitor_store_register, %function
monitor_store_register:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L33
	mov	r5, r0
	ldr	r2, [r6]
	ldr	r3, [r2]
	cmp	r3, #0
	beq	.L2
	blx	r3
	mov	r4, r0
.L3:
	cmp	r4, #0
	beq	.L4
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
.L4:
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, .L33+4
	b	monitor_debug
.L5:
	mov	r0, r5
	bl	read_register
	mov	r7, r0
	mov	r0, r5
	bl	DEPRECATED_REGISTER_RAW_SIZE
	mov	r1, r0
	mov	r0, r7
	bl	phex
	mov	r1, r5
	mov	r2, r0
	ldr	r0, .L33+8
	bl	monitor_debug
	ldr	r3, [r6]
	ldr	r1, .L33+12
	ldr	r2, [r3, #8]
	ldr	r1, [r1]
	tst	r2, r1
	bne	.L29
	ldr	r1, .L33+16
	ldr	r0, [r3, #12]
	ldr	r3, [r1]
	mov	r1, r4
	tst	r2, r3
	bne	.L30
	mov	r2, r7
	bl	monitor_printf
.L7:
	ldr	r3, [r6]
	ldr	r2, [r3, #24]
	cmp	r2, #0
	bne	.L31
.L9:
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L33+20
	bl	monitor_debug
	mov	r2, #0
	ldr	r3, [r6]
	mov	r1, r2
	ldr	r0, [r3, #20]
	bl	monitor_expect
	ldr	r2, [r6]
	ldr	r3, .L33+16
	ldr	r2, [r2, #8]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L32
.L10:
	mov	r1, #0
	mov	r0, r1
	bl	monitor_expect_prompt
	ldr	r3, [r6]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r0, .L33+24
	bl	monitor_debug
	ldr	r3, [r6]
	ldr	r0, .L33+28
	ldr	r1, [r3, #16]
	bl	monitor_printf
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	mov	r0, r1
	b	monitor_expect_prompt
.L2:
	ldr	r3, [r2, #4]
	ldr	r4, [r3, r0, lsl #2]
	b	.L3
.L30:
	bl	monitor_printf
	ldr	r3, [r6]
	ldr	r2, [r3, #24]
	cmp	r2, #0
	beq	.L9
.L31:
	ldr	r0, .L33+32
	bl	monitor_debug
	mov	r2, #0
	ldr	r0, .L33+36
	mov	r1, r2
	bl	monitor_expect_regexp
	ldr	r3, [r6]
	ldr	r2, .L33+16
	ldr	r1, [r3, #8]
	ldr	r2, [r2]
	tst	r1, r2
	beq	.L9
	mov	r0, r7
	bl	paddr_nz
	mov	r1, r0
	ldr	r0, .L33+40
	bl	monitor_printf
	ldr	r3, [r6]
	b	.L9
.L29:
	mov	r2, r4
	mov	r1, r7
	ldr	r0, [r3, #12]
	bl	monitor_printf
	b	.L7
.L32:
	mov	r0, r7
	bl	paddr_nz
	mov	r1, r0
	ldr	r0, .L33+40
	bl	monitor_printf
	b	.L10
.L34:
	.align	2
.L33:
	.word	current_monitor
	.word	.LC0
	.word	.LC1
	.word	MO_REGISTER_VALUE_FIRST
	.word	MO_SETREG_INTERACTIVE
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC2
	.word	setreg_resp_delim_pattern
	.word	.LC3
	.size	monitor_store_register, .-monitor_store_register
	.comm	setreg_resp_delim_pattern,4,4
	.comm	current_monitor,4,4
	.comm	MO_SETREG_INTERACTIVE,4,4
	.comm	MO_REGISTER_VALUE_FIRST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
