	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_streaming_send
_l2cap_streaming_send:                  ## @l2cap_streaming_send
	.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	%rdi, %r15
	callq	_l2cap_pi
	movq	(%r15), %r12
	testq	%r12, %r12
	je	LBB0_10
## %bb.1:
	movq	%rax, %r14
	movq	_L2CAP_HDR_SIZE@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_TX_QUEUE
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_skb_queue_next
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_TX_QUEUE
	movl	%eax, %edi
	callq	_skb_dequeue
	movq	%rax, %rdi
	callq	_kfree_skb
	movq	(%r15), %r12
	testq	%r12, %r12
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_skb_clone
	movq	%rax, %rbx
	movq	(%r13), %rdi
	addq	8(%rax), %rdi
	callq	_get_unaligned_le16
	movl	(%r14), %edi
	movq	_L2CAP_CTRL_TXSEQ_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %edi
	orl	%eax, %edi
	movq	(%r13), %rsi
	addq	8(%rbx), %rsi
	callq	_put_unaligned_le16
	movq	%r15, %rdi
	callq	_l2cap_pi
	movq	8(%rax), %rax
	movq	_L2CAP_FCS_CRC16@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdx
	movq	8(%rbx), %rsi
	addq	$-2, %rdx
	xorl	%edi, %edi
	callq	_crc16
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	leaq	(%rdx,%rcx), %rsi
	addq	$-2, %rsi
	movl	%eax, %edi
	callq	_put_unaligned_le16
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_l2cap_do_send
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %eax
	leal	1(%rax), %ecx
	leal	64(%rax), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	andl	$-64, %edx
	negl	%edx
	addl	%edx, %eax
	incl	%eax
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_TX_QUEUE
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_skb_queue_is_last
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_5:
	movl	%eax, %ebx
	movl	16(%r14), %edi
	movq	%r15, %rsi
	callq	_l2cap_send_disconn_req
LBB0_11:
	movl	%ebx, %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_TXSEQ_SHIFT,4,2     ## @L2CAP_CTRL_TXSEQ_SHIFT
	.comm	_L2CAP_FCS_CRC16,8,3            ## @L2CAP_FCS_CRC16
	.no_dead_strip	_l2cap_streaming_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_streaming_send
_l2cap_streaming_send:                  ; @l2cap_streaming_send
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_l2cap_pi
	ldr	x21, [x19]
	cbz	x21, LBB0_9
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x23, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	adrp	x24, _L2CAP_HDR_SIZE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _L2CAP_HDR_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _L2CAP_CTRL_TXSEQ_SHIFT@GOTPAGE
Lloh5:
	ldr	x25, [x25, _L2CAP_CTRL_TXSEQ_SHIFT@GOTPAGEOFF]
Lloh6:
	adrp	x26, _L2CAP_FCS_CRC16@GOTPAGE
Lloh7:
	ldr	x26, [x26, _L2CAP_FCS_CRC16@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_TX_QUEUE
	mov	x1, x21
	bl	_skb_queue_next
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x0, [x19]
	mov	x0, x19
	bl	_TX_QUEUE
	bl	_skb_dequeue
	bl	_kfree_skb
	ldr	x21, [x19]
	cbz	x21, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x21
	bl	_skb_clone
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_get_unaligned_le16
	ldr	w8, [x20]
	ldr	w9, [x25]
	lsl	w8, w8, w9
	orr	w0, w8, w0
	ldr	x8, [x22, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_put_unaligned_le16
	mov	x0, x19
	bl	_l2cap_pi
	ldr	x8, [x0, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x8, x1, [x22]
	sub	x2, x8, #2
	mov	w0, #0
	bl	_crc16
	ldp	x9, x8, [x22]
	add	x8, x8, x9
	sub	x1, x8, #2
	bl	_put_unaligned_le16
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_l2cap_do_send
	tbnz	w0, #31, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	add	w8, w8, #1
	negs	w9, w8
	and	w9, w9, #0x3f
	and	w8, w8, #0x3f
	csneg	w8, w8, w9, mi
	str	w8, [x20]
	mov	x0, x19
	bl	_TX_QUEUE
	mov	x1, x21
	bl	_skb_queue_is_last
	cbz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, #0
	b	LBB0_3
LBB0_9:
	mov	w22, #0
	b	LBB0_11
LBB0_10:
	mov	x22, x0
	ldr	w0, [x20, #16]
	mov	x1, x19
	bl	_l2cap_send_disconn_req
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_L2CAP_HDR_SIZE,8,3             ; @L2CAP_HDR_SIZE
	.comm	_L2CAP_CTRL_TXSEQ_SHIFT,4,2     ; @L2CAP_CTRL_TXSEQ_SHIFT
	.comm	_L2CAP_FCS_CRC16,8,3            ; @L2CAP_FCS_CRC16
	.no_dead_strip	_l2cap_streaming_send
.subsections_via_symbols
