	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4c_free_thread_info
_sun4c_free_thread_info:                ## @sun4c_free_thread_info
	.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, %rbx
	callq	_sun4c_get_pte
	movl	%eax, %edi
	callq	_BUCKET_PTE_PAGE
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_BUCKET_NUM
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_sun4c_flush_page
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_sun4c_flush_page
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sun4c_put_pte
	addq	(%r12), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sun4c_put_pte
	movq	_BUCKET_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_sun4c_bucket@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r15d, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	_sun4c_lowbucket_avail@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jge	LBB0_2
## %bb.1:
	movl	%r15d, (%rax)
LBB0_2:
	movq	_THREAD_INFO_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_free_pages
	movl	%r15d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_garbage_collect                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_BUCKET_EMPTY,4,2               ## @BUCKET_EMPTY
	.comm	_sun4c_bucket,8,3               ## @sun4c_bucket
	.comm	_sun4c_lowbucket_avail,4,2      ## @sun4c_lowbucket_avail
	.comm	_THREAD_INFO_ORDER,4,2          ## @THREAD_INFO_ORDER
	.no_dead_strip	_sun4c_free_thread_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4c_free_thread_info
_sun4c_free_thread_info:                ; @sun4c_free_thread_info
	.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	x21, x0
	bl	_sun4c_get_pte
	bl	_BUCKET_PTE_PAGE
	mov	x19, x0
	mov	x0, x21
	bl	_BUCKET_NUM
	mov	x20, x0
	mov	x0, x21
	bl	_sun4c_flush_page
Lloh0:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, x21
	bl	_sun4c_flush_page
	mov	x0, x21
	mov	w1, #0
	bl	_sun4c_put_pte
	ldr	x8, [x22]
	add	x0, x8, x21
	mov	w1, #0
	bl	_sun4c_put_pte
Lloh2:
	adrp	x8, _BUCKET_EMPTY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BUCKET_EMPTY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _sun4c_bucket@GOTPAGE
Lloh6:
	ldr	x9, [x9, _sun4c_bucket@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	str	w8, [x9, w20, sxtw #2]
Lloh8:
	adrp	x8, _sun4c_lowbucket_avail@GOTPAGE
Lloh9:
	ldr	x8, [x8, _sun4c_lowbucket_avail@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w20, w9
	b.ge	LBB0_2
; %bb.1:
	str	w20, [x8]
LBB0_2:
Lloh10:
	adrp	x8, _THREAD_INFO_ORDER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _THREAD_INFO_ORDER@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_free_pages
	mov	x0, x20
	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
	b	_garbage_collect
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_BUCKET_EMPTY,4,2               ; @BUCKET_EMPTY
	.comm	_sun4c_bucket,8,3               ; @sun4c_bucket
	.comm	_sun4c_lowbucket_avail,4,2      ; @sun4c_lowbucket_avail
	.comm	_THREAD_INFO_ORDER,4,2          ; @THREAD_INFO_ORDER
	.no_dead_strip	_sun4c_free_thread_info
.subsections_via_symbols
