	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tei_id_request
_tei_id_request:                        ## @tei_id_request
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movl	32(%rbx), %edx
	cmpl	$-1, %edx
	je	LBB0_1
## %bb.4:
	movq	16(%rbx), %rax
	addq	$16, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	callq	_random_ri
	movl	%eax, %edx
	movl	%eax, (%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.2:
	leaq	16(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	*16(%rbx)
	movl	(%rbx), %edx
LBB0_3:
	movq	_ID_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$127, %ecx
	callq	_put_tei_msg
	leaq	16(%rbx), %rdi
	movq	_ST_TEI_IDREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FsmChangeState
	leaq	12(%rbx), %rdi
	movl	8(%rbx), %esi
	movq	_EV_T202@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_FsmAddTimer
	movl	$3, 4(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"assign request for allready asigned tei %d"

L_.str.1:                               ## @.str.1
	.asciz	"assign request ri %d"

	.comm	_ID_REQUEST,4,2                 ## @ID_REQUEST
	.comm	_ST_TEI_IDREQ,4,2               ## @ST_TEI_IDREQ
	.comm	_EV_T202,4,2                    ## @EV_T202
	.no_dead_strip	_tei_id_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tei_id_request
_tei_id_request:                        ; @tei_id_request
	.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	x19, [x0]
	ldr	w2, [x19, #32]
	cmn	w2, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	x3, [x19, #16]!
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x3
LBB0_2:
	bl	_random_ri
	mov	x2, x0
	str	w0, [x19]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	ldr	x8, [x0, #16]!
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	blr	x8
	ldr	w2, [x19]
LBB0_4:
Lloh4:
	adrp	x8, _ID_REQUEST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ID_REQUEST@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w3, #127
	bl	_put_tei_msg
	add	x0, x19, #16
Lloh7:
	adrp	x8, _ST_TEI_IDREQ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ST_TEI_IDREQ@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_FsmChangeState
	add	x0, x19, #12
	ldr	w1, [x19, #8]
Lloh10:
	adrp	x8, _EV_T202@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EV_T202@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x3, #0
	mov	w4, #1
	bl	_FsmAddTimer
	mov	w8, #3
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"assign request for allready asigned tei %d"

l_.str.1:                               ; @.str.1
	.asciz	"assign request ri %d"

	.comm	_ID_REQUEST,4,2                 ; @ID_REQUEST
	.comm	_ST_TEI_IDREQ,4,2               ; @ST_TEI_IDREQ
	.comm	_EV_T202,4,2                    ; @EV_T202
	.no_dead_strip	_tei_id_request
.subsections_via_symbols
