	.file	"extr_mi-cmd-stack.c_mi_cmd_stack_info_depth.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"mi_cmd_stack_info_depth: No stack."
	.align 8
.LC1:
	.string	"mi_cmd_stack_info_depth: Usage: [MAX_DEPTH]"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"depth"
	.text
	.p2align 4
	.globl	mi_cmd_stack_info_depth
	.type	mi_cmd_stack_info_depth, @function
mi_cmd_stack_info_depth:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR target_has_stack[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edx
	test	eax, eax
	je	.L24
.L2:
	cmp	ebx, 1
	jg	.L25
	je	.L26
.L4:
	xor	eax, eax
	mov	ebp, 1
	mov	ebx, -1
	call	get_current_frame@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L5
.L9:
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L17:
	call	get_prev_frame@PLT
	add	r12d, 1
	mov	rdi, rax
	test	rax, rax
	je	.L7
	cmp	r12d, ebx
	jl	.L17
	test	bpl, bpl
	jne	.L17
.L7:
	mov	edi, DWORD PTR uiout[rip]
	mov	edx, r12d
	lea	rsi, .LC2[rip]
	call	ui_out_field_int@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR MI_CMD_DONE[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	rdi, QWORD PTR 0[rbp]
	call	atoi@PLT
	mov	ebx, eax
	xor	eax, eax
	call	get_current_frame@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L5
	cmp	ebx, -1
	sete	bpl
	test	ebx, ebx
	jg	.L9
	test	bpl, bpl
	jne	.L9
.L5:
	xor	r12d, r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rdi, .LC1[rip]
	call	error@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rdi, .LC0[rip]
	call	error@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	mi_cmd_stack_info_depth, .-mi_cmd_stack_info_depth
	.comm	uiout,4,4
	.comm	target_has_stack,4,4
	.comm	QUIT,4,4
	.comm	MI_CMD_DONE,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_mi-cmd-stack.c_mi_cmd_stack_info_depth.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mi_cmd_stack_info_depth: No stack.\000"
	.align	2
.LC1:
	.ascii	"mi_cmd_stack_info_depth: Usage: [MAX_DEPTH]\000"
	.align	2
.LC2:
	.ascii	"depth\000"
	.text
	.align	2
	.global	mi_cmd_stack_info_depth
	.syntax unified
	.arm
	.fpu softvfp
	.type	mi_cmd_stack_info_depth, %function
mi_cmd_stack_info_depth:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L27
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r5, r1
	cmp	r3, #0
	mov	r4, r2
	beq	.L23
.L2:
	cmp	r4, #1
	bgt	.L24
	beq	.L25
.L4:
	bl	get_current_frame
	cmp	r0, #0
	movne	r6, #1
	mvnne	r5, #0
	beq	.L5
.L8:
	mov	r4, #0
	b	.L7
.L26:
	cmp	r4, r5
	movge	r3, r6
	orrlt	r3, r6, #1
	cmp	r3, #0
	beq	.L6
.L7:
	bl	get_prev_frame
	cmp	r0, #0
	add	r4, r4, #1
	bne	.L26
.L6:
	ldr	r3, .L27+4
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L27+8
	bl	ui_out_field_int
	ldr	r3, .L27+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L25:
	ldr	r0, [r5]
	bl	atoi
	mov	r5, r0
	bl	get_current_frame
	cmp	r0, #0
	beq	.L5
	cmn	r5, #1
	movne	r6, #0
	moveq	r6, #1
	cmp	r5, #0
	movle	r3, r6
	orrgt	r3, r6, #1
	cmp	r3, #0
	bne	.L8
.L5:
	mov	r4, #0
	b	.L6
.L24:
	ldr	r0, .L27+16
	bl	error
	b	.L4
.L23:
	ldr	r0, .L27+20
	bl	error
	b	.L2
.L28:
	.align	2
.L27:
	.word	target_has_stack
	.word	uiout
	.word	.LC2
	.word	MI_CMD_DONE
	.word	.LC1
	.word	.LC0
	.size	mi_cmd_stack_info_depth, .-mi_cmd_stack_info_depth
	.comm	uiout,4,4
	.comm	target_has_stack,4,4
	.comm	QUIT,4,4
	.comm	MI_CMD_DONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
