	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mi_cmd_thread_select           ## -- Begin function mi_cmd_thread_select
	.p2align	4, 0x90
_mi_cmd_thread_select:                  ## @mi_cmd_thread_select
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$1, %edx
	jne	LBB0_1
## %bb.2:
	movq	_uiout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rsi), %rsi
	callq	_gdb_thread_select
	testl	%eax, %eax
	jns	LBB0_5
## %bb.3:
	movq	_RETURN_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movq	_MI_CMD_CAUGHT_ERROR@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_1:
	movq	_mi_error_message@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_xasprintf
	movq	_MI_CMD_ERROR@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_5:
	movq	_GDB_RC_FAIL@GOTPCREL(%rip), %rsi
	movq	_MI_CMD_DONE@GOTPCREL(%rip), %rcx
	movq	%rcx, %rdx
	cmpl	(%rsi), %eax
	jne	LBB0_7
## %bb.6:
	movq	_MI_CMD_ERROR@GOTPCREL(%rip), %rdx
LBB0_7:
	testl	%eax, %eax
	cmovnsq	%rdx, %rcx
LBB0_8:
	movl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mi_error_message,4,2           ## @mi_error_message
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mi_cmd_thread_select: USAGE: threadnum."

	.comm	_MI_CMD_ERROR,4,2               ## @MI_CMD_ERROR
	.comm	_uiout,4,2                      ## @uiout
	.comm	_RETURN_ERROR,4,2               ## @RETURN_ERROR
	.comm	_MI_CMD_CAUGHT_ERROR,4,2        ## @MI_CMD_CAUGHT_ERROR
	.comm	_GDB_RC_FAIL,4,2                ## @GDB_RC_FAIL
	.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_thread_select           ; -- Begin function mi_cmd_thread_select
	.p2align	2
_mi_cmd_thread_select:                  ; @mi_cmd_thread_select
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w2, #1
	b.ne	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _uiout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _uiout@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x1, [x1]
	bl	_gdb_thread_select
	tbz	w0, #31, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _RETURN_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RETURN_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _MI_CMD_CAUGHT_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MI_CMD_CAUGHT_ERROR@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x0, _mi_error_message@GOTPAGE
Lloh9:
	ldr	x0, [x0, _mi_error_message@GOTPAGEOFF]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_xasprintf
Lloh12:
	adrp	x8, _MI_CMD_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MI_CMD_ERROR@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _GDB_RC_FAIL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GDB_RC_FAIL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	mov	w8, #-1
	ccmp	w0, w8, #4, eq
Lloh17:
	adrp	x8, _MI_CMD_DONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MI_CMD_DONE@GOTPAGEOFF]
Lloh19:
	adrp	x9, _MI_CMD_ERROR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MI_CMD_ERROR@GOTPAGEOFF]
	csel	x8, x9, x8, gt
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_mi_error_message,4,2           ; @mi_error_message
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mi_cmd_thread_select: USAGE: threadnum."

	.comm	_MI_CMD_ERROR,4,2               ; @MI_CMD_ERROR
	.comm	_uiout,4,2                      ; @uiout
	.comm	_RETURN_ERROR,4,2               ; @RETURN_ERROR
	.comm	_MI_CMD_CAUGHT_ERROR,4,2        ; @MI_CMD_CAUGHT_ERROR
	.comm	_GDB_RC_FAIL,4,2                ; @GDB_RC_FAIL
	.comm	_MI_CMD_DONE,4,2                ; @MI_CMD_DONE
.subsections_via_symbols
