	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pte_new                        ## -- Begin function pte_new
	.p2align	4, 0x90
_pte_new:                               ## @pte_new
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_pte_threadReusePop
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	$1, %edi
	movl	$40, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	$0, 32(%rax)
LBB0_4:
	xorl	%eax, %eax
	callq	_pte_osThreadGetMinPriority
	movl	%eax, 28(%rbx)
	movq	_PTHREAD_CREATE_JOINABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_PTHREAD_CANCEL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_PTHREAD_CANCEL_DEFERRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_PTHREAD_MUTEX_INITIALIZER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	%rax, (%rbx)
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_PTHREAD_CREATE_JOINABLE,4,2    ## @PTHREAD_CREATE_JOINABLE
	.comm	_PTHREAD_CANCEL_ENABLE,4,2      ## @PTHREAD_CANCEL_ENABLE
	.comm	_PTHREAD_CANCEL_DEFERRED,4,2    ## @PTHREAD_CANCEL_DEFERRED
	.comm	_PTHREAD_MUTEX_INITIALIZER,8,3  ## @PTHREAD_MUTEX_INITIALIZER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pte_new                        ; -- Begin function pte_new
	.p2align	2
_pte_new:                               ; @pte_new
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_pte_threadReusePop
	mov	x19, x0
	cbnz	x0, LBB0_3
; %bb.1:
	mov	w0, #1
	mov	w1, #40
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.2:
	str	xzr, [x19, #32]
LBB0_3:
	bl	_pte_osThreadGetMinPriority
Lloh0:
	adrp	x8, _PTHREAD_CREATE_JOINABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTHREAD_CREATE_JOINABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PTHREAD_CANCEL_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PTHREAD_CANCEL_ENABLE@GOTPAGEOFF]
	stp	w8, w0, [x19, #24]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _PTHREAD_CANCEL_DEFERRED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PTHREAD_CANCEL_DEFERRED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh9:
	adrp	x8, _PTHREAD_MUTEX_INITIALIZER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PTHREAD_MUTEX_INITIALIZER@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stp	x8, x8, [x19]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PTHREAD_CREATE_JOINABLE,4,2    ; @PTHREAD_CREATE_JOINABLE
	.comm	_PTHREAD_CANCEL_ENABLE,4,2      ; @PTHREAD_CANCEL_ENABLE
	.comm	_PTHREAD_CANCEL_DEFERRED,4,2    ; @PTHREAD_CANCEL_DEFERRED
	.comm	_PTHREAD_MUTEX_INITIALIZER,8,3  ; @PTHREAD_MUTEX_INITIALIZER
.subsections_via_symbols
