	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pte_osInit                     ## -- Begin function pte_osInit
	.p2align	4, 0x90
_pte_osInit:                            ## @pte_osInit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_PSP_MAX_TLS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pteTlsGlobalInit
	movq	_PTE_OS_OK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_5
## %bb.1:
	movq	_threadDataKey@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_pteTlsAlloc
	cmpq	(%rbx), %rax
	jne	LBB0_5
## %bb.2:
	xorl	%eax, %eax
	callq	_pteTlsThreadInit
	movq	_globalTls@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	movl	$4, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movl	(%r12), %edi
	movl	(%r14), %esi
	movq	%rax, %rdx
	callq	_pteTlsSetValue
	leaq	L_.str(%rip), %rdx
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_snprintf
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_sceKernelCreateSema
	movl	%eax, (%r15)
	movq	(%rbx), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_PTE_OS_NO_RESOURCES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PSP_MAX_TLS,4,2                ## @PSP_MAX_TLS
	.comm	_PTE_OS_OK,8,3                  ## @PTE_OS_OK
	.comm	_threadDataKey,4,2              ## @threadDataKey
	.comm	_globalTls,4,2                  ## @globalTls
	.comm	_PTE_OS_NO_RESOURCES,8,3        ## @PTE_OS_NO_RESOURCES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pthread_cancelSemGlobal"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pte_osInit                     ; -- Begin function pte_osInit
	.p2align	2
_pte_osInit:                            ; @pte_osInit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _PSP_MAX_TLS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PSP_MAX_TLS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_pteTlsGlobalInit
Lloh6:
	adrp	x21, _PTE_OS_OK@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PTE_OS_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
Lloh8:
	adrp	x20, _threadDataKey@GOTPAGE
Lloh9:
	ldr	x20, [x20, _threadDataKey@GOTPAGEOFF]
	mov	x0, x20
	bl	_pteTlsAlloc
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	bl	_pteTlsThreadInit
Lloh10:
	adrp	x22, _globalTls@GOTPAGE
Lloh11:
	ldr	x22, [x22, _globalTls@GOTPAGEOFF]
	str	w0, [x22]
	mov	w0, #4
	bl	_malloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x19, x0
	ldr	w0, [x22]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_pteTlsSetValue
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #64
	bl	_snprintf
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	bl	_sceKernelCreateSema
	str	w0, [x19]
	ldr	x0, [x21]
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _PTE_OS_NO_RESOURCES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PTE_OS_NO_RESOURCES@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PSP_MAX_TLS,4,2                ; @PSP_MAX_TLS
	.comm	_PTE_OS_OK,8,3                  ; @PTE_OS_OK
	.comm	_threadDataKey,4,2              ; @threadDataKey
	.comm	_globalTls,4,2                  ; @globalTls
	.comm	_PTE_OS_NO_RESOURCES,8,3        ; @PTE_OS_NO_RESOURCES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pthread_cancelSemGlobal"

.subsections_via_symbols
