	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mi_cmd_stack_info_depth        ## -- Begin function mi_cmd_stack_info_depth
	.p2align	4, 0x90
_mi_cmd_stack_info_depth:               ## @mi_cmd_stack_info_depth
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	_target_has_stack@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	cmpl	$2, %ebx
	jl	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
	movl	$-1, %r14d
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_error
	cmpl	$2, %ebx
	jge	LBB0_3
LBB0_4:
	movl	$-1, %r14d
	cmpl	$1, %ebx
	jne	LBB0_6
## %bb.5:
	movq	(%r15), %rdi
	callq	_atoi
	movl	%eax, %r14d
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_get_current_frame
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	movq	%rax, %rdi
	callq	_get_prev_frame
	testq	%rax, %rax
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$-1, %r14d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r14d, %ebx
	jl	LBB0_10
LBB0_11:
	movq	_uiout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	callq	_ui_out_field_int
	movq	_MI_CMD_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_target_has_stack,4,2           ## @target_has_stack
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mi_cmd_stack_info_depth: No stack."

L_.str.1:                               ## @.str.1
	.asciz	"mi_cmd_stack_info_depth: Usage: [MAX_DEPTH]"

	.comm	_QUIT,4,2                       ## @QUIT
	.comm	_uiout,4,2                      ## @uiout
L_.str.2:                               ## @.str.2
	.asciz	"depth"

	.comm	_MI_CMD_DONE,4,2                ## @MI_CMD_DONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mi_cmd_stack_info_depth        ; -- Begin function mi_cmd_stack_info_depth
	.p2align	2
_mi_cmd_stack_info_depth:               ; @mi_cmd_stack_info_depth
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _target_has_stack@GOTPAGE
Lloh1:
	ldr	x8, [x8, _target_has_stack@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	cmp	w20, #2
	b.lt	LBB0_4
LBB0_2:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	cmp	w20, #2
	b.ge	LBB0_2
LBB0_4:
	cmp	w20, #1
	b.ne	LBB0_6
; %bb.5:
	ldr	x0, [x19]
	bl	_atoi
	mov	x19, x0
	b	LBB0_7
LBB0_6:
	mov	w19, #-1
LBB0_7:
	bl	_get_current_frame
	mov	w20, #0
	cbnz	x0, LBB0_9
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w20, w20, #1
	bl	_get_prev_frame
	cbz	x0, LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmn	w19, #1
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w20, w19
	b.lt	LBB0_8
LBB0_11:
Lloh7:
	adrp	x8, _uiout@GOTPAGE
Lloh8:
	ldr	x8, [x8, _uiout@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_ui_out_field_int
Lloh12:
	adrp	x8, _MI_CMD_DONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MI_CMD_DONE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_target_has_stack,4,2           ; @target_has_stack
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mi_cmd_stack_info_depth: No stack."

l_.str.1:                               ; @.str.1
	.asciz	"mi_cmd_stack_info_depth: Usage: [MAX_DEPTH]"

	.comm	_QUIT,4,2                       ; @QUIT
	.comm	_uiout,4,2                      ; @uiout
l_.str.2:                               ; @.str.2
	.asciz	"depth"

	.comm	_MI_CMD_DONE,4,2                ; @MI_CMD_DONE
.subsections_via_symbols
