	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpool_create                   ## -- Begin function tpool_create
	.p2align	4, 0x90
_tpool_create:                          ## @tpool_create
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	%esi, %edi
	jg	LBB0_2
## %bb.1:
	movl	%esi, %r15d
	testl	%esi, %esi
	jle	LBB0_2
## %bb.4:
	movl	%edx, %r14d
	movl	%edi, %r12d
	movl	$1, %edi
	movl	$32, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	leaq	28(%rax), %rdi
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	leaq	24(%rbx), %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	leaq	20(%rbx), %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	leaq	16(%rbx), %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	movl	%r12d, (%rbx)
	movl	%r15d, 4(%rbx)
	movl	%r14d, 8(%rbx)
	movq	%rbx, %r14
	addq	$12, %r14
	movq	%r14, %rdi
	callq	_pthread_attr_init
	movq	_PTHREAD_CREATE_DETACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pthread_attr_setdetachstate
	jmp	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PTHREAD_CREATE_DETACHED,4,2    ## @PTHREAD_CREATE_DETACHED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpool_create                   ; -- Begin function tpool_create
	.p2align	2
_tpool_create:                          ; @tpool_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cmp	w0, w1
	b.gt	LBB0_4
; %bb.1:
	mov	x21, x1
	cmp	w1, #0
	b.le	LBB0_4
; %bb.2:
	mov	x20, x2
	mov	x22, x0
	mov	w0, #1
	mov	w1, #32
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.3:
	add	x0, x19, #28
	mov	x1, #0
	bl	_pthread_mutex_init
	add	x0, x19, #24
	mov	x1, #0
	bl	_pthread_cond_init
	add	x0, x19, #20
	mov	x1, #0
	bl	_pthread_cond_init
	add	x0, x19, #16
	mov	x1, #0
	bl	_pthread_cond_init
	stp	w22, w21, [x19]
	add	x21, x19, #12
	str	w20, [x19, #8]
	mov	x0, x21
	bl	_pthread_attr_init
Lloh0:
	adrp	x8, _PTHREAD_CREATE_DETACHED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTHREAD_CREATE_DETACHED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_pthread_attr_setdetachstate
	b	LBB0_7
LBB0_4:
	mov	x19, #0
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _errno@GOTPAGE
Lloh8:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh9:
	str	w8, [x9]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PTHREAD_CREATE_DETACHED,4,2    ; @PTHREAD_CREATE_DETACHED
.subsections_via_symbols
