	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_sar_segment_sdu
_l2cap_sar_segment_sdu:                 ## @l2cap_sar_segment_sdu
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_l2cap_pi
	movq	%rax, %r12
	leaq	-48(%rbp), %rdi
	callq	___skb_queue_head_init
	movq	_L2CAP_SDU_START@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%r12), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %r8
	callq	_l2cap_create_iframe_pdu
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	jmp	LBB0_2
LBB0_3:
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	___skb_queue_tail
	movq	(%r12), %r15
	subq	%r15, %rbx
	je	LBB0_9
## %bb.4:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	cmpq	%r15, %rbx
	movq	%r15, %r12
	cmovbq	%rbx, %r12
	movq	_L2CAP_SDU_CONTINUE@GOTPCREL(%rip), %rax
	cmovbeq	_L2CAP_SDU_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	xorl	%r8d, %r8d
	callq	_l2cap_create_iframe_pdu
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	leaq	-48(%rbp), %rdi
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rsi
	callq	___skb_queue_tail
	addq	%r12, %r15
	subq	%r12, %rbx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	cmpq	%r12, %rbx
	cmovbq	%rbx, %r12
	movq	_L2CAP_SDU_END@GOTPCREL(%rip), %rax
	cmovaq	_L2CAP_SDU_CONTINUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	xorl	%r8d, %r8d
	callq	_l2cap_create_iframe_pdu
	jmp	LBB0_5
LBB0_6:
	callq	_skb_queue_purge
	movq	%r13, %rdi
LBB0_2:
	callq	_PTR_ERR
	movl	%eax, %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	callq	_TX_QUEUE
	leaq	-48(%rbp), %rdi
	movl	%eax, %esi
	callq	_skb_queue_splice_tail
	cmpq	$0, (%r14)
	jne	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rax
	movq	%rax, (%r14)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_L2CAP_SDU_START,4,2            ## @L2CAP_SDU_START
	.comm	_L2CAP_SDU_CONTINUE,4,2         ## @L2CAP_SDU_CONTINUE
	.comm	_L2CAP_SDU_END,4,2              ## @L2CAP_SDU_END
	.no_dead_strip	_l2cap_sar_segment_sdu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_sar_segment_sdu
_l2cap_sar_segment_sdu:                 ; @l2cap_sar_segment_sdu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	bl	_l2cap_pi
	mov	x22, x0
	add	x0, sp, #8
	bl	___skb_queue_head_init
Lloh0:
	adrp	x8, _L2CAP_SDU_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _L2CAP_SDU_START@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	ldr	x2, [x22]
	mov	x0, x19
	mov	x1, x20
	mov	x4, x23
	bl	_l2cap_create_iframe_pdu
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	b	LBB0_8
LBB0_2:
	add	x0, sp, #8
	mov	x1, x21
	bl	___skb_queue_tail
	ldr	x21, [x22]
	subs	x25, x23, x21
	b.eq	LBB0_10
; %bb.3:
	cmp	x25, x21
	csel	x23, x25, x21, lo
Lloh3:
	adrp	x26, _L2CAP_SDU_CONTINUE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _L2CAP_SDU_CONTINUE@GOTPAGEOFF]
Lloh5:
	adrp	x27, _L2CAP_SDU_END@GOTPAGE
Lloh6:
	ldr	x27, [x27, _L2CAP_SDU_END@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	csel	x8, x26, x27, hi
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x4, #0
	bl	_l2cap_create_iframe_pdu
	mov	x24, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	mov	x1, x24
	bl	___skb_queue_tail
	add	x21, x23, x21
	subs	x25, x25, x23
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	cmp	x25, x8
	csel	x23, x25, x8, lo
	b	LBB0_4
LBB0_7:
	add	x0, sp, #8
	bl	_skb_queue_purge
	mov	x0, x24
LBB0_8:
	bl	_PTR_ERR
	mov	x21, x0
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	mov	x0, x19
	bl	_TX_QUEUE
	mov	x1, x0
	add	x0, sp, #8
	bl	_skb_queue_splice_tail
	ldr	x8, [x19]
	cbnz	x8, LBB0_9
; %bb.11:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_L2CAP_SDU_START,4,2            ; @L2CAP_SDU_START
	.comm	_L2CAP_SDU_CONTINUE,4,2         ; @L2CAP_SDU_CONTINUE
	.comm	_L2CAP_SDU_END,4,2              ; @L2CAP_SDU_END
	.no_dead_strip	_l2cap_sar_segment_sdu
.subsections_via_symbols
