	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdbstub_idtoindex              ## -- Begin function gdbstub_idtoindex
	.p2align	4, 0x90
_gdbstub_idtoindex:                     ## @gdbstub_idtoindex
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	__thr_executing@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	__thr_idle@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.1:
	movq	__lwp_thr_objects@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	cmpl	%edi, %ecx
	jg	LBB0_4
## %bb.2:
	cmpl	%edi, 4(%rdx)
	jle	LBB0_4
## %bb.3:
	subl	%ecx, %edi
	incl	%edi
	movl	%edi, %eax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__thr_executing,8,3             ## @_thr_executing
	.comm	__thr_idle,8,3                  ## @_thr_idle
	.comm	__lwp_thr_objects,8,2           ## @_lwp_thr_objects
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdbstub_idtoindex              ; -- Begin function gdbstub_idtoindex
	.p2align	2
_gdbstub_idtoindex:                     ; @gdbstub_idtoindex
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, __thr_executing@GOTPAGE
Lloh1:
	ldr	x8, [x8, __thr_executing@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, __thr_idle@GOTPAGE
Lloh4:
	ldr	x9, [x9, __thr_idle@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	ret
LBB0_2:
Lloh6:
	adrp	x9, __lwp_thr_objects@GOTPAGE
Lloh7:
	ldr	x9, [x9, __lwp_thr_objects@GOTPAGEOFF]
	ldp	w8, w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #4, le
	b.gt	LBB0_4
; %bb.3:
	mov	w0, #1
	ret
LBB0_4:
	sub	w8, w0, w8
	add	w0, w8, #1
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	__thr_executing,8,3             ; @_thr_executing
	.comm	__thr_idle,8,3                  ; @_thr_idle
	.comm	__lwp_thr_objects,8,2           ; @_lwp_thr_objects
.subsections_via_symbols
