	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mi_cmd_stack_select_frame      ## -- Begin function mi_cmd_stack_select_frame
	.p2align	4, 0x90
_mi_cmd_stack_select_frame:             ## @mi_cmd_stack_select_frame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	_target_has_stack@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	cmpl	$2, %ebx
	jl	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_error
	cmpl	$2, %ebx
	jge	LBB0_3
LBB0_5:
	testl	%ebx, %ebx
	je	LBB0_6
LBB0_4:
	movq	(%r14), %rdi
	jmp	LBB0_7
LBB0_6:
	xorl	%edi, %edi
LBB0_7:
	movl	$1, %esi
	callq	_select_frame_command
	movq	_MI_CMD_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	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_select_frame: No stack."

L_.str.1:                               ## @.str.1
	.asciz	"mi_cmd_stack_select_frame: Usage: [FRAME_SPEC]"

	.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_select_frame      ; -- Begin function mi_cmd_stack_select_frame
	.p2align	2
_mi_cmd_stack_select_frame:             ; @mi_cmd_stack_select_frame
	.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_5
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:
	cbz	w20, LBB0_6
LBB0_5:
	ldr	x0, [x19]
	b	LBB0_7
LBB0_6:
	mov	x0, #0
LBB0_7:
	mov	w1, #1
	bl	_select_frame_command
Lloh7:
	adrp	x8, _MI_CMD_DONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MI_CMD_DONE@GOTPAGEOFF]
Lloh9:
	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	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_select_frame: No stack."

l_.str.1:                               ; @.str.1
	.asciz	"mi_cmd_stack_select_frame: Usage: [FRAME_SPEC]"

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