	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2_connected
_l2_connected:                          ## @l2_connected
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %r13
	movq	%r13, %rdi
	movq	%rdx, %rsi
	callq	_get_PollFlag
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	movq	%rbx, %rdi
	callq	_dev_kfree_skb
	movq	_FLG_PEND_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	56(%r13), %r12
	movq	%r12, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_l2_disconnect
LBB0_3:
	movq	_FLG_L3_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_DL_ESTABLISH_CNF@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_15:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_l2_mdl_error_ua                ## TAILCALL
LBB0_5:
	movq	(%r13), %rax
	movl	$-1, %r15d
	cmpq	8(%r13), %rax
	je	LBB0_8
## %bb.6:
	leaq	24(%r13), %rdi
	callq	_skb_queue_purge
	movq	_DL_ESTABLISH_IND@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r15d
LBB0_8:
	movq	%r13, %rdi
	movl	$5, %esi
	callq	_stop_t200
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r13)
	movups	%xmm0, 40(%r13)
	movq	_ST_L2_7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mISDN_FsmChangeState
	leaq	32(%r13), %rdi
	movl	28(%r13), %esi
	movq	_EV_L2_T203@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	movl	$4, %r8d
	callq	_mISDN_FsmAddTimer
	cmpl	$-1, %r15d
	je	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_l2up_create
LBB0_10:
	leaq	24(%r13), %rdi
	callq	_skb_queue_len
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%r13, %rdi
	callq	_cansend
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_EV_L2_ACK_PULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_mISDN_FsmEvent
LBB0_13:
	cmpq	$0, 16(%r13)
	je	LBB0_14
## %bb.16:
	movq	_MDL_STATUS_UP_IND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_l2_tei                         ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLG_PEND_REL,4,2               ## @FLG_PEND_REL
	.comm	_FLG_L3_INIT,4,2                ## @FLG_L3_INIT
	.comm	_DL_ESTABLISH_CNF,4,2           ## @DL_ESTABLISH_CNF
	.comm	_DL_ESTABLISH_IND,4,2           ## @DL_ESTABLISH_IND
	.comm	_ST_L2_7,4,2                    ## @ST_L2_7
	.comm	_EV_L2_T203,4,2                 ## @EV_L2_T203
	.comm	_EV_L2_ACK_PULL,4,2             ## @EV_L2_ACK_PULL
	.comm	_MDL_STATUS_UP_IND,4,2          ## @MDL_STATUS_UP_IND
	.no_dead_strip	_l2_connected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2_connected
_l2_connected:                          ; @l2_connected
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0]
	mov	x0, x19
	mov	x1, x2
	bl	_get_PollFlag
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x22
	bl	_dev_kfree_skb
Lloh0:
	adrp	x8, _FLG_PEND_REL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLG_PEND_REL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x22, x19, #56
	mov	x1, x22
	bl	_test_and_clear_bit
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	mov	x2, #0
	bl	_l2_disconnect
LBB0_3:
Lloh3:
	adrp	x8, _FLG_L3_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLG_L3_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_and_clear_bit
	cbz	x0, LBB0_6
; %bb.4:
Lloh6:
	adrp	x8, _DL_ESTABLISH_CNF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DL_ESTABLISH_CNF@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	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
	b	_l2_mdl_error_ua
LBB0_6:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	w21, #-1
	b	LBB0_10
LBB0_8:
	add	x0, x19, #24
	bl	_skb_queue_purge
Lloh8:
	adrp	x8, _DL_ESTABLISH_IND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DL_ESTABLISH_IND@GOTPAGEOFF]
LBB0_9:
	ldr	w21, [x8]
LBB0_10:
	mov	x0, x19
	mov	w1, #5
	bl	_stop_t200
	stp	xzr, xzr, [x19]
	stp	xzr, xzr, [x19, #40]
Lloh10:
	adrp	x8, _ST_L2_7@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ST_L2_7@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mISDN_FsmChangeState
	add	x0, x19, #32
	ldr	w1, [x19, #28]
Lloh13:
	adrp	x8, _EV_L2_T203@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EV_L2_T203@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x3, #0
	mov	w4, #4
	bl	_mISDN_FsmAddTimer
	cmn	w21, #1
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	x3, #0
	bl	_l2up_create
LBB0_12:
	add	x0, x19, #24
	bl	_skb_queue_len
	cbz	x0, LBB0_15
; %bb.13:
	mov	x0, x19
	bl	_cansend
	cbz	x0, LBB0_15
; %bb.14:
Lloh16:
	adrp	x8, _EV_L2_ACK_PULL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EV_L2_ACK_PULL@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_mISDN_FsmEvent
LBB0_15:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_17
; %bb.16:
Lloh19:
	adrp	x8, _MDL_STATUS_UP_IND@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MDL_STATUS_UP_IND@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	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
	b	_l2_tei
LBB0_17:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FLG_PEND_REL,4,2               ; @FLG_PEND_REL
	.comm	_FLG_L3_INIT,4,2                ; @FLG_L3_INIT
	.comm	_DL_ESTABLISH_CNF,4,2           ; @DL_ESTABLISH_CNF
	.comm	_DL_ESTABLISH_IND,4,2           ; @DL_ESTABLISH_IND
	.comm	_ST_L2_7,4,2                    ; @ST_L2_7
	.comm	_EV_L2_T203,4,2                 ; @EV_L2_T203
	.comm	_EV_L2_ACK_PULL,4,2             ; @EV_L2_ACK_PULL
	.comm	_MDL_STATUS_UP_IND,4,2          ; @MDL_STATUS_UP_IND
	.no_dead_strip	_l2_connected
.subsections_via_symbols
