	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	32(%rbx), %rax
	movq	(%rax), %rdx
	movq	_GROUP_TEI@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rdx
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_random_ri
	movq	%rax, %rdx
	movq	%rax, (%rbx)
	movq	_debug@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_DEBUG_L2_TEI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	24(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	*24(%rbx)
	movq	(%rbx), %rdx
LBB0_3:
	movl	20(%rbx), %edi
	movq	_ID_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rcx
	callq	_put_tei_msg
	movq	_ST_TEI_IDREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mISDN_FsmChangeState
	leaq	16(%rbx), %rdi
	movl	12(%rbx), %esi
	movq	_EV_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_mISDN_FsmAddTimer
	movl	$3, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	24(%rbx), %rax
	addq	$24, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GROUP_TEI,8,3                  ## @GROUP_TEI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"assign request for already assigned tei %d"

	.comm	_debug,8,3                      ## @debug
	.comm	_DEBUG_L2_TEI,4,2               ## @DEBUG_L2_TEI
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_TIMER,4,2                   ## @EV_TIMER
	.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	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, [x19, #32]
	ldr	x2, [x8]
Lloh0:
	adrp	x21, _GROUP_TEI@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GROUP_TEI@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x2, x8
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x0
	bl	_random_ri
	mov	x2, x0
	str	x0, [x19]
Lloh2:
	adrp	x8, _debug@GOTPAGE
Lloh3:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _DEBUG_L2_TEI@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DEBUG_L2_TEI@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	ldr	x8, [x0, #24]!
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	blr	x8
	ldr	x2, [x19]
LBB0_3:
	ldr	w0, [x19, #20]
Lloh10:
	adrp	x8, _ID_REQUEST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ID_REQUEST@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	x3, [x21]
	bl	_put_tei_msg
Lloh13:
	adrp	x8, _ST_TEI_IDREQ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ST_TEI_IDREQ@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mISDN_FsmChangeState
	add	x0, x19, #16
	ldr	w1, [x19, #12]
Lloh16:
	adrp	x8, _EV_TIMER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EV_TIMER@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x3, #0
	mov	w4, #1
	bl	_mISDN_FsmAddTimer
	mov	w8, #3
	str	w8, [x19, #8]
	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
LBB0_4:
	ldr	x3, [x19, #24]!
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	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
	br	x3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GROUP_TEI,8,3                  ; @GROUP_TEI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"assign request for already assigned tei %d"

	.comm	_debug,8,3                      ; @debug
	.comm	_DEBUG_L2_TEI,4,2               ; @DEBUG_L2_TEI
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_TIMER,4,2                   ; @EV_TIMER
	.no_dead_strip	_tei_id_request
.subsections_via_symbols
