	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thd_start
_thd_start:                             ## @thd_start
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_NEPOCHS@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jb	LBB0_8
## %bb.1:
	movl	$1, %r14d
	movq	_ATOMIC_ACQUIRE@GOTPCREL(%rip), %rcx
	movq	_epoch@GOTPCREL(%rip), %rbx
	movq	_sz@GOTPCREL(%rip), %r12
	leaq	L_.str.1(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_ATOMIC_RELEASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_nfinished@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_fetch_add_u
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	incl	%r14d
	movq	_NEPOCHS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	movq	_ATOMIC_ACQUIRE@GOTPCREL(%rip), %rcx
	movq	_epoch@GOTPCREL(%rip), %rbx
	jae	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##     Child Loop BB0_6 Depth 2
	movq	_SPIN_INITIALIZER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	callq	_atomic_load_u
	cmpl	%r14d, %eax
	leaq	-48(%rbp), %r15
	je	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_spin_adaptive
	movq	_ATOMIC_ACQUIRE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_atomic_load_u
	cmpl	%r14d, %eax
	jne	LBB0_3
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	leaq	L_.str(%rip), %rdx
	callq	_assert_u_eq
	movq	_PER_THD_NALLOCS@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	movq	_arena_ind@GOTPCREL(%rip), %r14
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rbx
	movl	(%r12), %r13d
	movl	(%r14), %edi
	callq	_MALLOCX_ARENA
	movq	_MALLOCX_TCACHE_NONE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%r13d, %edi
	movq	%rbx, %r13
	movl	%eax, %esi
	callq	_mallocx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_assert_ptr_not_null
	movq	_PER_THD_NALLOCS@GOTPCREL(%rip), %rax
	incl	%r15d
	cmpl	(%rax), %r15d
	jb	LBB0_6
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NEPOCHS,4,2                    ## @NEPOCHS
	.comm	_SPIN_INITIALIZER,4,2           ## @SPIN_INITIALIZER
	.comm	_epoch,4,2                      ## @epoch
	.comm	_ATOMIC_ACQUIRE,4,2             ## @ATOMIC_ACQUIRE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected epoch"

	.comm	_PER_THD_NALLOCS,4,2            ## @PER_THD_NALLOCS
	.comm	_sz,4,2                         ## @sz
	.comm	_arena_ind,4,2                  ## @arena_ind
	.comm	_MALLOCX_TCACHE_NONE,4,2        ## @MALLOCX_TCACHE_NONE
L_.str.1:                               ## @.str.1
	.asciz	"Unexpected mallocx() failure\n"

	.comm	_nfinished,4,2                  ## @nfinished
	.comm	_ATOMIC_RELEASE,4,2             ## @ATOMIC_RELEASE
	.no_dead_strip	_thd_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thd_start
_thd_start:                             ; @thd_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _NEPOCHS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NEPOCHS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lo	LBB0_9
; %bb.1:
	mov	w19, #1
Lloh3:
	adrp	x27, _ATOMIC_ACQUIRE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _ATOMIC_ACQUIRE@GOTPAGEOFF]
Lloh5:
	adrp	x20, _epoch@GOTPAGE
Lloh6:
	ldr	x20, [x20, _epoch@GOTPAGEOFF]
Lloh7:
	adrp	x28, _PER_THD_NALLOCS@GOTPAGE
Lloh8:
	ldr	x28, [x28, _PER_THD_NALLOCS@GOTPAGEOFF]
Lloh9:
	adrp	x25, _sz@GOTPAGE
Lloh10:
	ldr	x25, [x25, _sz@GOTPAGEOFF]
Lloh11:
	adrp	x21, _arena_ind@GOTPAGE
Lloh12:
	ldr	x21, [x21, _arena_ind@GOTPAGEOFF]
Lloh13:
	adrp	x23, l_.str.1@PAGE
Lloh14:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh15:
	adrp	x26, _MALLOCX_TCACHE_NONE@GOTPAGE
Lloh16:
	ldr	x26, [x26, _MALLOCX_TCACHE_NONE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh17:
	adrp	x8, _ATOMIC_RELEASE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ATOMIC_RELEASE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x0, _nfinished@GOTPAGE
Lloh21:
	ldr	x0, [x0, _nfinished@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_fetch_add_u
	add	w19, w19, #1
Lloh22:
	adrp	x8, _NEPOCHS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NEPOCHS@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w19, w8
	b.hs	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
Lloh25:
	adrp	x8, _SPIN_INITIALIZER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SPIN_INITIALIZER@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [sp, #12]
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x27]
	mov	x0, x20
	bl	_atomic_load_u
	cmp	w0, w19
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x0, sp, #12
	bl	_spin_adaptive
	b	LBB0_4
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x19
Lloh28:
	adrp	x2, l_.str@PAGE
Lloh29:
	add	x2, x2, l_.str@PAGEOFF
	bl	_assert_u_eq
	ldr	w8, [x28]
	cbz	w8, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #0
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w24, [x25]
	ldr	w0, [x21]
	bl	_MALLOCX_ARENA
	ldr	w8, [x26]
	orr	w1, w8, w0
	mov	x0, x24
	bl	_mallocx
	mov	x1, x23
	bl	_assert_ptr_not_null
	add	w22, w22, #1
	ldr	w8, [x28]
	cmp	w22, w8
	b.lo	LBB0_8
	b	LBB0_2
LBB0_9:
	mov	x0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_NEPOCHS,4,2                    ; @NEPOCHS
	.comm	_SPIN_INITIALIZER,4,2           ; @SPIN_INITIALIZER
	.comm	_epoch,4,2                      ; @epoch
	.comm	_ATOMIC_ACQUIRE,4,2             ; @ATOMIC_ACQUIRE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected epoch"

	.comm	_PER_THD_NALLOCS,4,2            ; @PER_THD_NALLOCS
	.comm	_sz,4,2                         ; @sz
	.comm	_arena_ind,4,2                  ; @arena_ind
	.comm	_MALLOCX_TCACHE_NONE,4,2        ; @MALLOCX_TCACHE_NONE
l_.str.1:                               ; @.str.1
	.asciz	"Unexpected mallocx() failure\n"

	.comm	_nfinished,4,2                  ; @nfinished
	.comm	_ATOMIC_RELEASE,4,2             ; @ATOMIC_RELEASE
	.no_dead_strip	_thd_start
.subsections_via_symbols
