	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tid_init
_tid_init:                              ## @tid_init
	.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
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	movslq	4(%rdi), %r12
	movslq	8(%rdi), %r14
	movl	%r14d, %edi
	callq	_BITS_TO_LONGS
	cltq
	addq	%r14, %r12
	shlq	$2, %r12
	addq	%rbx, %rax
	leaq	(%r12,%rax,8), %rdi
	callq	_t4_alloc_mem
	movq	%rax, 80(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movslq	4(%r15), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 24(%r15)
	leaq	(%rax,%rbx,8), %rax
	movq	%rax, 72(%r15)
	movslq	8(%r15), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 16(%r15)
	leaq	68(%r15), %rdi
	callq	_spin_lock_init
	leaq	64(%r15), %rdi
	callq	_spin_lock_init
	movq	$0, 32(%r15)
	leaq	40(%r15), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r15)
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_atomic_set
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.3:
	movl	%ebx, %edx
	decl	%edx
	je	LBB0_11
## %bb.4:
	movl	%edx, %r10d
	leal	-2(%rbx), %r8d
	testb	$3, %dl
	je	LBB0_8
## %bb.5:
	leaq	(,%r10,8), %rdx
	leal	-1(%rbx), %esi
	movzbl	%sil, %r9d
	andl	$3, %r9d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rcx
	leaq	(%rcx,%rdx), %rsi
	leal	-2(%rbx), %eax
	movq	%rsi, (%rcx,%rax,8)
	decl	%ebx
	incq	%rdi
	addq	$-8, %rdx
	cmpl	%edi, %r9d
	jne	LBB0_6
## %bb.7:
	subq	%rdi, %r10
LBB0_8:
	cmpl	$3, %r8d
	jb	LBB0_11
## %bb.9:
	movl	$4294967292, %ecx               ## imm = 0xFFFFFFFC
	leaq	(,%r10,8), %rdx
	movq	%r10, %rsi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	leaq	(%rax,%rdx), %rdi
	addl	$-2, %ebx
	movq	%rdi, (%rax,%rbx,8)
	movq	24(%r15), %rax
	leaq	(%rax,%rdx), %rdi
	addq	$-8, %rdi
	leal	2(%r10,%rcx), %ebx
	movq	%rdi, (%rax,%rbx,8)
	movq	24(%r15), %rax
	leaq	-16(%rax,%rdx), %rdi
	leal	1(%r10,%rcx), %ebx
	movq	%rdi, (%rax,%rbx,8)
	movq	24(%r15), %rax
	leaq	(%rax,%rdx), %rdi
	addq	$-24, %rdi
	leal	(%r10,%rcx), %ebx
	movq	%rdi, (%rax,%rbx,8)
	addq	$-4, %rsi
	leal	-3(%r10), %ebx
	addq	$-32, %rdx
	movq	%rsi, %r10
	testl	%esi, %esi
	jne	LBB0_10
LBB0_11:
	movq	24(%r15), %rax
	movq	%rax, 32(%r15)
LBB0_12:
	movq	16(%r15), %rdi
	movslq	8(%r15), %rsi
	callq	_bitmap_zero
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_13:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_tid_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tid_init
_tid_init:                              ; @tid_init
	.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
	mov	x19, x0
	ldp	w21, w22, [x0]
                                        ; kill: def $w22 killed $w22 def $x22
	sxtw	x22, w22
	ldrsw	x20, [x0, #8]
	mov	x0, x20
	bl	_BITS_TO_LONGS
	add	x8, x20, x22
	add	x9, x21, w0, sxtw
	lsl	x9, x9, #3
	add	x0, x9, x8, lsl #2
	bl	_t4_alloc_mem
	str	x0, [x19, #80]
	cbz	x0, LBB0_7
; %bb.1:
	ldpsw	x8, x9, [x19, #4]
	add	x8, x0, x8, lsl #2
	add	x10, x8, x21, lsl #3
	str	x10, [x19, #72]
	add	x9, x10, x9, lsl #2
	stp	x9, x8, [x19, #16]
	add	x0, x19, #68
	bl	_spin_lock_init
	add	x0, x19, #64
	bl	_spin_lock_init
	str	xzr, [x19, #32]
	add	x0, x19, #40
	stp	xzr, xzr, [x19, #48]
	mov	w1, #0
	bl	_atomic_set
	cbz	w21, LBB0_6
; %bb.2:
	subs	w8, w21, #1
	b.eq	LBB0_5
; %bb.3:
	sub	w9, w21, #2
	lsl	x9, x9, #3
	lsl	x10, x8, #3
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x19, #24]
	add	x12, x11, x10
	str	x12, [x11, x9]
	sub	x9, x9, #8
	sub	x10, x10, #8
	subs	w8, w8, #1
	b.ne	LBB0_4
LBB0_5:
	ldr	x8, [x19, #24]
	str	x8, [x19, #32]
LBB0_6:
	ldr	x0, [x19, #16]
	ldrsw	x1, [x19, #8]
	bl	_bitmap_zero
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_tid_init
.subsections_via_symbols
