	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clear_tid_node
_clear_tid_node:                        ## @clear_tid_node
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	16(%r14), %r12
	movl	12(%r14), %edi
	movl	(%r15), %esi
	movl	(%rbx), %edx
	movl	16(%rbx), %ecx
	movl	28(%rbx), %r8d
	movl	24(%rbx), %r9d
	movl	20(%rbx), %eax
	movl	%eax, (%rsp)
	callq	_trace_hfi1_exp_tid_unreg
	movl	(%rbx), %esi
	movq	_PT_INVALID_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_hfi1_put_tid
	movl	16(%rbx), %r8d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	movl	$1, %r9d
	callq	_unpin_rcv_pages
	movq	8(%rbx), %rdi
	movl	(%rdi), %edx
	leal	-1(%rdx), %eax
	movl	%eax, (%rdi)
	movl	(%rbx), %ecx
	subl	8(%rdi), %ecx
	movl	$-2, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	roll	%cl, %esi
	andl	%esi, 4(%rdi)
	cmpl	12(%rdi), %edx
	jne	LBB0_2
## %bb.1:
	leaq	8(%r14), %rsi
	addq	$4, %r14
	jmp	LBB0_4
LBB0_2:
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	leaq	4(%r14), %rsi
LBB0_4:
	movq	%r14, %rdx
	callq	_tid_group_move
LBB0_5:
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PT_INVALID_FLUSH,4,2           ## @PT_INVALID_FLUSH
	.no_dead_strip	_clear_tid_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clear_tid_node
_clear_tid_node:                        ; @clear_tid_node
	.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, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
	ldr	x22, [x20, #16]
	ldr	w0, [x20, #12]
	ldr	w1, [x21]
	ldr	w2, [x19]
	ldp	w5, w4, [x19, #24]
	ldp	w3, w6, [x19, #16]
	bl	_trace_hfi1_exp_tid_unreg
	ldr	w1, [x19]
Lloh0:
	adrp	x8, _PT_INVALID_FLUSH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PT_INVALID_FLUSH@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w3, #0
	mov	w4, #0
	bl	_hfi1_put_tid
	ldr	w4, [x19, #16]
	mov	w22, #1
	mov	x0, x21
	mov	x1, #0
	mov	x2, x19
	mov	w3, #0
	mov	w5, #1
	bl	_unpin_rcv_pages
	ldr	x0, [x19, #8]
	ldp	w9, w10, [x0]
	sub	w8, w9, #1
	ldr	w11, [x19]
	ldp	w12, w13, [x0, #8]
	sub	w11, w11, w12
	lsl	w11, w22, w11
	bic	w10, w10, w11
	stp	w8, w10, [x0]
	cmp	w9, w13
	b.ne	LBB0_2
; %bb.1:
	add	x1, x20, #8
	add	x2, x20, #4
	b	LBB0_4
LBB0_2:
	cbnz	w8, LBB0_5
; %bb.3:
	add	x1, x20, #4
	mov	x2, x20
LBB0_4:
	bl	_tid_group_move
LBB0_5:
	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
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PT_INVALID_FLUSH,4,2           ; @PT_INVALID_FLUSH
	.no_dead_strip	_clear_tid_node
.subsections_via_symbols
