	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdbstub_getthreadinfo          ## -- Begin function gdbstub_getthreadinfo
	.p2align	4, 0x90
_gdbstub_getthreadinfo:                 ## @gdbstub_getthreadinfo
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	testq	%rdi, %rdi
	jle	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	cmpq	$1, %rdi
	jne	LBB0_4
## %bb.2:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcpy
	jmp	LBB0_8
LBB0_4:
	movq	__lwp_thr_objects@GOTPCREL(%rip), %rax
	movq	8(%rax), %rcx
	subq	(%rax), %rcx
	incq	%rcx
	cmpq	%rdi, %rcx
	jl	LBB0_3
## %bb.6:
	movq	16(%rax), %rax
	movq	-8(%rax,%rdi,8), %r14
	testq	%r14, %r14
	je	LBB0_3
## %bb.7:
	movq	16(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcpy
	movq	_hexchars@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	shrl	$28, %ecx
	movb	(%rax,%rcx), %cl
	movb	%cl, -48(%rbp)
	movl	%r14d, %ecx
	shrl	$24, %ecx
	andl	$15, %ecx
	movb	(%rax,%rcx), %cl
	movb	%cl, -47(%rbp)
	movl	%r14d, %ecx
	shrl	$20, %ecx
	andl	$15, %ecx
	movb	(%rax,%rcx), %cl
	movb	%cl, -46(%rbp)
	movl	%r14d, %ecx
	shrl	$16, %ecx
	andl	$15, %ecx
	movb	(%rax,%rcx), %cl
	movb	%cl, -45(%rbp)
	movl	%r14d, %ecx
	shrl	$12, %ecx
	andl	$15, %ecx
	movb	(%rax,%rcx), %cl
	movb	%cl, -44(%rbp)
	movl	%r14d, %ecx
	shrl	$8, %ecx
	andl	$15, %ecx
	movb	(%rax,%rcx), %cl
	movb	%cl, -43(%rbp)
	movl	%r14d, %ecx
	shrl	$4, %ecx
	andl	$15, %ecx
	movb	(%rax,%rcx), %cl
	movb	%cl, -42(%rbp)
	andl	$15, %r14d
	movb	(%rax,%r14), %al
	movb	%al, -41(%rbp)
	movb	$0, -40(%rbp)
	movq	16(%rbx), %rdi
	leaq	-48(%rbp), %rsi
	callq	_strcat
	movq	8(%rbx), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movups	%xmm0, 16(%rax)
	movq	$0, 32(%rax)
LBB0_8:
	movq	(%rbx), %rax
	movq	$0, (%rax)
	movl	$1, %eax
	jmp	LBB0_9
LBB0_3:
	xorl	%eax, %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_12
## %bb.10:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"idle thread"

L_.str.1:                               ## @.str.1
	.asciz	"IDLE"

	.comm	__lwp_thr_objects,24,3          ## @_lwp_thr_objects
L_.str.2:                               ## @.str.2
	.asciz	"libogc task:   control at: 0x"

	.comm	_hexchars,8,3                   ## @hexchars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdbstub_getthreadinfo          ; -- Begin function gdbstub_getthreadinfo
	.p2align	2
_gdbstub_getthreadinfo:                 ; @gdbstub_getthreadinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x1
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x19, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcpy
	b	LBB0_6
LBB0_3:
Lloh7:
	adrp	x8, __lwp_thr_objects@GOTPAGE
Lloh8:
	ldr	x8, [x8, __lwp_thr_objects@GOTPAGEOFF]
	ldp	x9, x10, [x8]
	sub	x9, x10, x9
	add	x9, x9, #1
	cmp	x9, x0
	b.lt	LBB0_7
; %bb.4:
	ldr	x8, [x8, #16]
	add	x8, x8, x0, lsl #3
	ldur	x20, [x8, #-8]
	cbz	x20, LBB0_7
; %bb.5:
	ldr	x0, [x19, #16]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcpy
Lloh11:
	adrp	x8, _hexchars@GOTPAGE
Lloh12:
	ldr	x8, [x8, _hexchars@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ubfx	x9, x20, #28, #4
	ldrb	w9, [x8, x9]
	strb	w9, [sp, #4]
	ubfx	x9, x20, #24, #4
	ldrb	w9, [x8, x9]
	strb	w9, [sp, #5]
	ubfx	x9, x20, #20, #4
	ldrb	w9, [x8, x9]
	strb	w9, [sp, #6]
	ubfx	x9, x20, #16, #4
	ldrb	w9, [x8, x9]
	strb	w9, [sp, #7]
	ubfx	x9, x20, #12, #4
	ldrb	w9, [x8, x9]
	strb	w9, [sp, #8]
	ubfx	x9, x20, #8, #4
	ldrb	w9, [x8, x9]
	strb	w9, [sp, #9]
	ubfx	x9, x20, #4, #4
	ldrb	w9, [x8, x9]
	strb	w9, [sp, #10]
	and	x9, x20, #0xf
	ldrb	w8, [x8, x9]
	strb	w8, [sp, #11]
	strb	wzr, [sp, #12]
	ldr	x0, [x19, #16]
	add	x1, sp, #4
	bl	_strcat
	ldr	x8, [x19, #8]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8]
	str	xzr, [x8, #32]
LBB0_6:
	ldr	x8, [x19]
	str	xzr, [x8]
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	x0, #0
LBB0_8:
	ldr	x8, [sp, #24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"idle thread"

l_.str.1:                               ; @.str.1
	.asciz	"IDLE"

	.comm	__lwp_thr_objects,24,3          ; @_lwp_thr_objects
l_.str.2:                               ; @.str.2
	.asciz	"libogc task:   control at: 0x"

	.comm	_hexchars,8,3                   ; @hexchars
.subsections_via_symbols
