	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_retransmit_frame
_l2cap_retransmit_frame:                ## @l2cap_retransmit_frame
	.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
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_l2cap_pi
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_TX_QUEUE
	movl	%eax, %edi
	callq	_skb_peek
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_bt_cb
	cmpl	%r15d, (%rax)
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_TX_QUEUE
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_skb_queue_is_last
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_TX_QUEUE
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_skb_queue_next
	jmp	LBB0_1
LBB0_5:
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_bt_cb
	movq	8(%rax), %rax
	xorl	%r13d, %r13d
	cmpq	(%r14), %rax
	je	LBB0_11
LBB0_7:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_skb_clone
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_bt_cb
	incq	8(%rax)
	movq	_L2CAP_HDR_SIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r13), %rdi
	callq	_get_unaligned_le16
	movl	8(%r14), %edx
	movq	_L2CAP_CTRL_REQSEQ_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_L2CAP_CTRL_TXSEQ_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r15d
	orl	%edx, %r15d
	orl	%eax, %r15d
	movq	(%rbx), %rsi
	addq	8(%r13), %rsi
	movl	%r15d, %edi
	callq	_put_unaligned_le16
	movq	%r12, %rdi
	callq	_l2cap_pi
	movq	16(%rax), %rax
	movq	_L2CAP_FCS_CRC16@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	(%r13), %rdx
	movq	8(%r13), %rsi
	addq	$-2, %rdx
	xorl	%edi, %edi
	callq	_crc16
	movq	(%r13), %rcx
	movq	8(%r13), %rdx
	leaq	(%rdx,%rcx), %rsi
	addq	$-2, %rsi
	movl	%eax, %edi
	callq	_put_unaligned_le16
LBB0_9:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_l2cap_do_send
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jns	LBB0_12
## %bb.10:
	movl	%eax, %r13d
LBB0_11:
	movl	24(%r14), %edi
	movq	%r12, %rsi
	callq	_l2cap_send_disconn_req
	jmp	LBB0_12
LBB0_3:
	xorl	%r13d, %r13d
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_L2CAP_HDR_SIZE,8,3             ## @L2CAP_HDR_SIZE
	.comm	_L2CAP_CTRL_REQSEQ_SHIFT,4,2    ## @L2CAP_CTRL_REQSEQ_SHIFT
	.comm	_L2CAP_CTRL_TXSEQ_SHIFT,4,2     ## @L2CAP_CTRL_TXSEQ_SHIFT
	.comm	_L2CAP_FCS_CRC16,8,3            ## @L2CAP_FCS_CRC16
	.no_dead_strip	_l2cap_retransmit_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_retransmit_frame
_l2cap_retransmit_frame:                ; @l2cap_retransmit_frame
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_l2cap_pi
	mov	x20, x0
	mov	x0, x19
	bl	_TX_QUEUE
	bl	_skb_peek
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x0
	bl	_bt_cb
	ldr	w8, [x0]
	cmp	w8, w21
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_TX_QUEUE
	mov	x1, x22
	bl	_skb_queue_is_last
	cbnz	x0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_TX_QUEUE
	mov	x1, x22
	bl	_skb_queue_next
	b	LBB0_1
LBB0_4:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x0, x22
	bl	_bt_cb
	ldr	x8, [x0, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	w21, #0
	b	LBB0_12
LBB0_7:
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_skb_clone
	mov	x23, x0
	mov	x0, x22
	bl	_bt_cb
	ldr	x8, [x0, #8]
	add	x8, x8, #1
	str	x8, [x0, #8]
	ldr	x8, [x23, #8]
Lloh3:
	adrp	x22, _L2CAP_HDR_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _L2CAP_HDR_SIZE@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_get_unaligned_le16
Lloh5:
	adrp	x8, _L2CAP_CTRL_REQSEQ_SHIFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _L2CAP_CTRL_REQSEQ_SHIFT@GOTPAGEOFF]
	ldr	w9, [x20, #8]
Lloh7:
	ldr	w8, [x8]
	lsl	w8, w9, w8
Lloh8:
	adrp	x9, _L2CAP_CTRL_TXSEQ_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _L2CAP_CTRL_TXSEQ_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsl	w9, w21, w9
	orr	w8, w8, w0
	orr	w0, w8, w9
	ldr	x8, [x23, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_put_unaligned_le16
	mov	x0, x19
	bl	_l2cap_pi
	ldr	x8, [x0, #16]
Lloh11:
	adrp	x9, _L2CAP_FCS_CRC16@GOTPAGE
Lloh12:
	ldr	x9, [x9, _L2CAP_FCS_CRC16@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldp	x8, x1, [x23]
	sub	x2, x8, #2
	mov	w0, #0
	bl	_crc16
	ldp	x9, x8, [x23]
	add	x8, x8, x9
	sub	x1, x8, #2
	bl	_put_unaligned_le16
LBB0_9:
	mov	x0, x19
	mov	x1, x23
	bl	_l2cap_do_send
	tbnz	w0, #31, LBB0_11
LBB0_10:
	mov	w21, #0
	b	LBB0_13
LBB0_11:
	mov	x21, x0
LBB0_12:
	ldr	w0, [x20, #24]
	mov	x1, x19
	bl	_l2cap_send_disconn_req
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_L2CAP_HDR_SIZE,8,3             ; @L2CAP_HDR_SIZE
	.comm	_L2CAP_CTRL_REQSEQ_SHIFT,4,2    ; @L2CAP_CTRL_REQSEQ_SHIFT
	.comm	_L2CAP_CTRL_TXSEQ_SHIFT,4,2     ; @L2CAP_CTRL_TXSEQ_SHIFT
	.comm	_L2CAP_FCS_CRC16,8,3            ; @L2CAP_FCS_CRC16
	.no_dead_strip	_l2cap_retransmit_frame
.subsections_via_symbols
