	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getTlsStructFromThread
_getTlsStructFromThread:                ## @getTlsStructFromThread
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movl	$8, -16(%rbp)
	leaq	-16(%rbp), %rsi
	callq	_sceKernelReferThreadStatus
	movl	-12(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdx
	leaq	-4(%rbp), %rcx
	callq	_sscanf
	cmpl	$2, %eax
	je	LBB0_1
## %bb.2:
	movq	_globalTls@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_3
LBB0_1:
	movl	-4(%rbp), %eax
LBB0_3:
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pthread%04d__%x"

	.comm	_globalTls,8,3                  ## @globalTls
	.no_dead_strip	_getTlsStructFromThread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getTlsStructFromThread
_getTlsStructFromThread:                ; @getTlsStructFromThread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	w8, #8
	str	w8, [sp, #8]
	add	x1, sp, #8
	bl	_sceKernelReferThreadStatus
	ldr	w0, [sp, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, sp
	add	x3, sp, #4
	bl	_sscanf
	ldr	w8, [sp, #4]
Lloh2:
	adrp	x9, _globalTls@GOTPAGE
Lloh3:
	ldr	x9, [x9, _globalTls@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	w0, #2
	csel	x0, x8, x9, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pthread%04d__%x"

	.comm	_globalTls,8,3                  ; @globalTls
	.no_dead_strip	_getTlsStructFromThread
.subsections_via_symbols
