	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2_got_tei
_l2_got_tei:                            ## @l2_got_tei
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movb	%dl, (%rbx)
	leaq	16(%rbx), %rdi
	movl	12(%rbx), %esi
	movsbl	%dl, %edx
	callq	_set_channel_address
	movq	_DL_INFO_L2_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_DL_INFORMATION_IND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_l2up_create
	movq	(%r14), %rax
	movq	_ST_L2_3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_establishlink
	movq	_FLG_L3_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_and_set_bit
	jmp	LBB0_3
LBB0_2:
	movq	_ST_L2_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mISDN_FsmChangeState
LBB0_3:
	leaq	4(%rbx), %rdi
	callq	_skb_queue_len
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_tx_ui
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DL_INFO_L2_CONNECT,4,2         ## @DL_INFO_L2_CONNECT
	.comm	_DL_INFORMATION_IND,4,2         ## @DL_INFORMATION_IND
	.comm	_ST_L2_3,8,3                    ## @ST_L2_3
	.comm	_FLG_L3_INIT,4,2                ## @FLG_L3_INIT
	.comm	_ST_L2_4,4,2                    ## @ST_L2_4
	.no_dead_strip	_l2_got_tei
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2_got_tei
_l2_got_tei:                            ; @l2_got_tei
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	ldr	x19, [x0, #8]
	strb	w2, [x19]
	add	x0, x19, #16
	ldr	w1, [x19, #12]
	sxtb	w2, w2
	bl	_set_channel_address
Lloh0:
	adrp	x8, _DL_INFO_L2_CONNECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DL_INFO_L2_CONNECT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh3:
	adrp	x8, _DL_INFORMATION_IND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DL_INFORMATION_IND@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #4
	bl	_l2up_create
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _ST_L2_3@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ST_L2_3@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_establishlink
Lloh9:
	adrp	x8, _FLG_L3_INIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FLG_L3_INIT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_and_set_bit
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _ST_L2_4@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ST_L2_4@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mISDN_FsmChangeState
LBB0_3:
	add	x0, x19, #4
	bl	_skb_queue_len
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_tx_ui
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DL_INFO_L2_CONNECT,4,2         ; @DL_INFO_L2_CONNECT
	.comm	_DL_INFORMATION_IND,4,2         ; @DL_INFORMATION_IND
	.comm	_ST_L2_3,8,3                    ; @ST_L2_3
	.comm	_FLG_L3_INIT,4,2                ; @FLG_L3_INIT
	.comm	_ST_L2_4,4,2                    ; @ST_L2_4
	.no_dead_strip	_l2_got_tei
.subsections_via_symbols
