	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tei_id_remove
_tei_id_remove:                         ## @tei_id_remove
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	(%rdx), %rax
	movl	16(%rax), %ebx
	sarl	%ebx
	leaq	16(%r15), %r14
	cmpq	$0, 32(%r15)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	*(%r14)
LBB0_2:
	movl	40(%r15), %eax
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.3:
	movq	_GROUP_TEI@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	je	LBB0_6
## %bb.4:
	cmpl	%eax, %ebx
	je	LBB0_6
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	24(%r15), %rdi
	movl	$5, %esi
	callq	_FsmDelTimer
	movq	_ST_TEI_NOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_FsmChangeState
	movq	_MDL_REMOVE@GOTPCREL(%rip), %r14
	movq	_REQUEST@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	orl	(%r14), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	*8(%r15)
	movq	(%r15), %rdi
	movq	(%rdi), %rax
	movl	(%rbx), %esi
	orl	(%r14), %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"identity remove tei %d"

	.comm	_GROUP_TEI,4,2                  ## @GROUP_TEI
	.comm	_ST_TEI_NOP,4,2                 ## @ST_TEI_NOP
	.comm	_MDL_REMOVE,4,2                 ## @MDL_REMOVE
	.comm	_REQUEST,4,2                    ## @REQUEST
	.no_dead_strip	_tei_id_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tei_id_remove
_tei_id_remove:                         ; @tei_id_remove
	.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
	ldr	x19, [x0]
	ldr	x8, [x2]
	ldr	w8, [x8, #16]
	asr	w21, w8, #1
	add	x20, x19, #16
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	blr	x8
LBB0_2:
	ldr	w8, [x19, #40]
	cmn	w8, #1
	b.eq	LBB0_5
; %bb.3:
Lloh2:
	adrp	x9, _GROUP_TEI@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GROUP_TEI@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w21, w9
	ccmp	w21, w8, #4, ne
	b.ne	LBB0_5
; %bb.4:
	add	x0, x19, #24
	mov	w1, #5
	bl	_FsmDelTimer
Lloh5:
	adrp	x8, _ST_TEI_NOP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ST_TEI_NOP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_FsmChangeState
Lloh8:
	adrp	x20, _MDL_REMOVE@GOTPAGE
Lloh9:
	ldr	x20, [x20, _MDL_REMOVE@GOTPAGEOFF]
	ldr	x8, [x19, #8]
	ldr	w9, [x20]
Lloh10:
	adrp	x21, _REQUEST@GOTPAGE
Lloh11:
	ldr	x21, [x21, _REQUEST@GOTPAGEOFF]
	ldr	w10, [x21]
	orr	w1, w10, w9
	mov	x0, x19
	mov	x2, #0
	blr	x8
	ldr	x0, [x19]
	ldr	x3, [x0]
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w1, w9, w8
	mov	x2, #0
	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
	br	x3
LBB0_5:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"identity remove tei %d"

	.comm	_GROUP_TEI,4,2                  ; @GROUP_TEI
	.comm	_ST_TEI_NOP,4,2                 ; @ST_TEI_NOP
	.comm	_MDL_REMOVE,4,2                 ; @MDL_REMOVE
	.comm	_REQUEST,4,2                    ; @REQUEST
	.no_dead_strip	_tei_id_remove
.subsections_via_symbols
