	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %r14
	movl	12(%rdx), %ebx
	sarl	%ebx
	movq	_debug@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_DEBUG_L2_TEI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	*8(%r14)
LBB0_2:
	movq	(%r14), %rax
	movl	(%rax), %eax
	movq	_GROUP_TEI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	je	LBB0_5
## %bb.3:
	cmpl	%ecx, %ebx
	je	LBB0_6
## %bb.4:
	cmpl	%eax, %ebx
	je	LBB0_6
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	leaq	16(%r14), %rdi
	movl	$5, %esi
	callq	_mISDN_FsmDelTimer
	leaq	8(%r14), %rdi
	movq	_ST_TEI_NOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mISDN_FsmChangeState
	movq	(%r14), %rdi
	movq	_MDL_REMOVE_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tei_l2                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,8,3                      ## @debug
	.comm	_DEBUG_L2_TEI,4,2               ## @DEBUG_L2_TEI
	.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_REQ,4,2             ## @MDL_REMOVE_REQ
	.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0]
	ldr	w8, [x2, #12]
	asr	w19, w8, #1
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DEBUG_L2_TEI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEBUG_L2_TEI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	blr	x8
LBB0_2:
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _GROUP_TEI@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GROUP_TEI@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.3:
	cmp	w19, w9
	ccmp	w19, w8, #4, ne
	b.ne	LBB0_5
; %bb.4:
	add	x0, x20, #16
	mov	w1, #5
	bl	_mISDN_FsmDelTimer
	add	x0, x20, #8
Lloh11:
	adrp	x8, _ST_TEI_NOP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ST_TEI_NOP@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_mISDN_FsmChangeState
	ldr	x0, [x20]
Lloh14:
	adrp	x8, _MDL_REMOVE_REQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MDL_REMOVE_REQ@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tei_l2
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,8,3                      ; @debug
	.comm	_DEBUG_L2_TEI,4,2               ; @DEBUG_L2_TEI
	.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_REQ,4,2             ; @MDL_REMOVE_REQ
	.no_dead_strip	_tei_id_remove
.subsections_via_symbols
