	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_l2cap_tmr                      ## -- Begin function l2cap_tmr
	.p2align	4, 0x90
_l2cap_tmr:                             ## @l2cap_tmr
	.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	_l2cap_active_pcbs@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_25
## %bb.1:
	movq	_ERR_OK@GOTPCREL(%rip), %r14
	movq	_L2CAP_CLOSED@GOTPCREL(%rip), %r15
                                        ## implicit-def: $r12d
	jmp	LBB0_2
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_L2CA_ACTION_CONN_IND
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_L2CAP_CFG_TO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r13)
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%r13), %r13
	testq	%r13, %r13
	je	LBB0_25
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	32(%r13), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
	jmp	LBB0_17
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	decq	16(%rbx)
	je	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$65534, 8(%r13)                 ## imm = 0xFFFE
	jg	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%rbx), %rax
	testq	%rax, %rax
	jle	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	decq	%rax
	movq	%rax, (%rbx)
	jne	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	decq	%rax
	movq	%rax, 8(%rbx)
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_L2CA_ACTION_TO_IND
	shlq	(%rbx)
	jmp	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=2
	decq	%rax
	movq	%rax, 8(%rbx)
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_L2CA_ACTION_TO_IND
	movq	$0, 16(%rbx)
	movq	_L2CAP_RTX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_l2cap_rexmit_signal
	movl	%eax, %r12d
	jmp	LBB0_16
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r15), %rax
	movq	%rax, (%r13)
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_9
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r15), %rax
	movq	%rax, (%r13)
	leaq	L_.str.1(%rip), %rdi
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	callq	_LOG
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_L2CA_ACTION_DISCONN_IND
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	_L2CAP_CONFIG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %rax
	testq	%rax, %rax
	jle	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	decq	%rax
	movq	%rax, 16(%r13)
	jne	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_l2ca_disconnect_req
	movq	_L2CAP_CFG_IR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r13)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_L2CAP_CONN_CFG_TO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	callq	_L2CA_ACTION_CONN_CFM
	jmp	LBB0_23
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_l2cap_active_pcbs,8,3          ## @l2cap_active_pcbs
	.comm	_L2CAP_CLOSED,8,3               ## @L2CAP_CLOSED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"l2cap_tmr: Max number of retransmissions (rtx) has expired\n"

	.comm	_ERR_OK,4,2                     ## @ERR_OK
L_.str.1:                               ## @.str.1
	.asciz	"l2cap_tmr: Max number of retransmissions (ertx) has expired\n"

	.comm	_L2CAP_RTX,8,3                  ## @L2CAP_RTX
	.comm	_L2CAP_CONFIG,8,3               ## @L2CAP_CONFIG
	.comm	_L2CAP_CFG_IR,4,2               ## @L2CAP_CFG_IR
	.comm	_L2CAP_CONN_CFG_TO,4,2          ## @L2CAP_CONN_CFG_TO
	.comm	_L2CAP_CFG_TO,8,3               ## @L2CAP_CFG_TO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_l2cap_tmr                      ; -- Begin function l2cap_tmr
	.p2align	2
_l2cap_tmr:                             ; @l2cap_tmr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _l2cap_active_pcbs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _l2cap_active_pcbs@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	cbz	x19, LBB0_24
; %bb.1:
Lloh3:
	adrp	x24, _L2CAP_CONFIG@GOTPAGE
Lloh4:
	ldr	x24, [x24, _L2CAP_CONFIG@GOTPAGEOFF]
	mov	w26, #65534
Lloh5:
	adrp	x27, _ERR_OK@GOTPAGE
Lloh6:
	ldr	x27, [x27, _ERR_OK@GOTPAGEOFF]
Lloh7:
	adrp	x20, l_.str@PAGE
Lloh8:
	add	x20, x20, l_.str@PAGEOFF
Lloh9:
	adrp	x25, _L2CAP_CLOSED@GOTPAGE
Lloh10:
	ldr	x25, [x25, _L2CAP_CLOSED@GOTPAGEOFF]
Lloh11:
	adrp	x21, l_.str.1@PAGE
Lloh12:
	add	x21, x21, l_.str.1@PAGEOFF
                                        ; implicit-def: $w22
Lloh13:
	adrp	x28, _L2CAP_RTX@GOTPAGE
Lloh14:
	ldr	x28, [x28, _L2CAP_RTX@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x27]
	mov	x0, x19
	mov	x2, x22
	bl	_L2CA_ACTION_CONN_IND
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh15:
	adrp	x8, _L2CAP_CFG_TO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _L2CAP_CFG_TO@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x19, [x19, #40]
	cbz	x19, LBB0_24
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x23, [x19, #32]
	cbnz	x23, LBB0_13
LBB0_6:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #16]
	subs	x8, x8, #1
	b.lt	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x19, #16]
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, #0
	bl	_l2ca_disconnect_req
	ldr	w8, [x19, #24]
Lloh18:
	adrp	x9, _L2CAP_CFG_IR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _L2CAP_CFG_IR@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh21:
	adrp	x8, _L2CAP_CONN_CFG_TO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _L2CAP_CONN_CFG_TO@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x22
	bl	_L2CA_ACTION_CONN_CFM
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x23, #16]
	subs	x8, x8, #1
	str	x8, [x23, #16]
	b.eq	LBB0_18
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x23, [x23, #24]
	cbz	x23, LBB0_6
LBB0_13:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x19, #8]
	cmp	w8, w26
	b.gt	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x23]
	subs	x8, x8, #1
	b.lt	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	str	x8, [x23]
	b.ne	LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=2
	sub	x8, x8, #1
	str	x8, [x23, #8]
	ldr	w1, [x27]
	mov	x0, x19
	mov	x2, x22
	bl	_L2CA_ACTION_TO_IND
	ldr	x8, [x23]
	lsl	x8, x8, #1
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=2
	sub	x8, x8, #1
	str	x8, [x23, #8]
	ldr	w1, [x27]
	mov	x0, x19
	mov	x2, x22
	bl	_L2CA_ACTION_TO_IND
	str	xzr, [x23, #16]
	ldr	x8, [x28]
LBB0_20:                                ;   in Loop: Header=BB0_13 Depth=2
	str	x8, [x23]
	mov	x0, x19
	mov	x1, x23
	bl	_l2cap_rexmit_signal
	mov	x22, x0
	b	LBB0_12
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x25]
	str	x8, [x19]
	mov	x0, x20
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x25]
	str	x8, [x19]
	mov	x0, x21
LBB0_23:                                ;   in Loop: Header=BB0_13 Depth=2
	bl	_LOG
	ldr	w1, [x27]
	mov	x0, x19
	mov	x2, x22
	bl	_L2CA_ACTION_DISCONN_IND
	b	LBB0_12
LBB0_24:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_l2cap_active_pcbs,8,3          ; @l2cap_active_pcbs
	.comm	_L2CAP_CLOSED,8,3               ; @L2CAP_CLOSED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"l2cap_tmr: Max number of retransmissions (rtx) has expired\n"

	.comm	_ERR_OK,4,2                     ; @ERR_OK
l_.str.1:                               ; @.str.1
	.asciz	"l2cap_tmr: Max number of retransmissions (ertx) has expired\n"

	.comm	_L2CAP_RTX,8,3                  ; @L2CAP_RTX
	.comm	_L2CAP_CONFIG,8,3               ; @L2CAP_CONFIG
	.comm	_L2CAP_CFG_IR,4,2               ; @L2CAP_CFG_IR
	.comm	_L2CAP_CONN_CFG_TO,4,2          ; @L2CAP_CONN_CFG_TO
	.comm	_L2CAP_CFG_TO,8,3               ; @L2CAP_CFG_TO
.subsections_via_symbols
