	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function establishlink
_establishlink:                         ## @establishlink
	.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
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_clear_exception
	movq	$0, 8(%rbx)
	movq	_FLG_MOD128@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_SABM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SABME@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	orl	$16, %edx
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_send_uframe
	leaq	4(%rbx), %rdi
	movl	$1, %esi
	callq	_mISDN_FsmDelTimer
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_restart_t200
	movq	_FLG_PEND_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	movq	%rbx, %rdi
	callq	_freewin
	movq	_ST_L2_5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mISDN_FsmChangeState           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FLG_MOD128,4,2                 ## @FLG_MOD128
	.comm	_SABME,4,2                      ## @SABME
	.comm	_SABM,4,2                       ## @SABM
	.comm	_CMD,4,2                        ## @CMD
	.comm	_FLG_PEND_REL,4,2               ## @FLG_PEND_REL
	.comm	_ST_L2_5,4,2                    ## @ST_L2_5
	.no_dead_strip	_establishlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function establishlink
_establishlink:                         ; @establishlink
	.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
	mov	x19, x0
	ldr	x20, [x0]
	mov	x0, x20
	bl	_clear_exception
	str	xzr, [x20, #8]
Lloh0:
	adrp	x8, _FLG_MOD128@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLG_MOD128@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
Lloh3:
	adrp	x8, _SABME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SABME@GOTPAGEOFF]
Lloh5:
	adrp	x9, _SABM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SABM@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	orr	w2, w8, #0x10
Lloh7:
	adrp	x8, _CMD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CMD@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, #0
	bl	_send_uframe
	add	x0, x20, #4
	mov	w1, #1
	bl	_mISDN_FsmDelTimer
	mov	x0, x20
	mov	w1, #1
	bl	_restart_t200
Lloh10:
	adrp	x8, _FLG_PEND_REL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FLG_PEND_REL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_clear_bit
	mov	x0, x20
	bl	_freewin
Lloh13:
	adrp	x8, _ST_L2_5@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ST_L2_5@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mISDN_FsmChangeState
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FLG_MOD128,4,2                 ; @FLG_MOD128
	.comm	_SABME,4,2                      ; @SABME
	.comm	_SABM,4,2                       ; @SABM
	.comm	_CMD,4,2                        ; @CMD
	.comm	_FLG_PEND_REL,4,2               ; @FLG_PEND_REL
	.comm	_ST_L2_5,4,2                    ; @ST_L2_5
	.no_dead_strip	_establishlink
.subsections_via_symbols
