	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_sar_reassembly_sdu
_l2cap_sar_reassembly_sdu:              ## @l2cap_sar_reassembly_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_l2cap_pi
	movq	%rax, %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	_L2CAP_CTRL_SAR@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_18
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_L2CAP_CONN_SAR_SDU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	jne	LBB0_17
## %bb.3:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_sock_queue_rcv_skb
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_6:
	movq	_L2CAP_CONN_SAR_SDU@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, (%r15)
	jne	LBB0_17
## %bb.7:
	movl	4(%r14), %edi
	callq	_get_unaligned_le16
	movl	%eax, 16(%r15)
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_skb_pull
	movl	16(%r15), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bt_skb_alloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_22
## %bb.8:
	movl	(%r14), %esi
	movq	%rax, %rdi
	callq	_skb_put
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movl	%eax, %edi
	callq	_memcpy
	movl	(%rbx), %eax
	orl	%eax, (%r15)
	movl	(%r14), %eax
	movl	%eax, 20(%r15)
	jmp	LBB0_14
LBB0_9:
	movq	_L2CAP_CONN_SAR_SDU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movl	%r13d, %ebx
	testl	%eax, (%r15)
	je	LBB0_19
## %bb.10:
	movq	8(%r15), %rdi
	movl	(%r14), %esi
	movq	%rcx, %rbx
	callq	_skb_put
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movl	%eax, %edi
	callq	_memcpy
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, (%r15)
	movl	20(%r15), %eax
	addl	(%r14), %eax
	movl	%eax, 20(%r15)
	cmpl	16(%r15), %eax
	jne	LBB0_13
## %bb.11:
	movq	8(%r15), %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_skb_clone
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_sock_queue_rcv_skb
	testl	%eax, %eax
	jns	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_kfree_skb
LBB0_13:
	movq	8(%r15), %rdi
	callq	_kfree_skb
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_15:
	movq	_L2CAP_CONN_SAR_SDU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_18
## %bb.16:
	movq	8(%r15), %rdi
	movl	(%r14), %esi
	callq	_skb_put
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movl	%eax, %edi
	callq	_memcpy
	movl	20(%r15), %eax
	addl	(%r14), %eax
	movl	%eax, 20(%r15)
	xorl	%ebx, %ebx
	cmpl	16(%r15), %eax
	jle	LBB0_19
LBB0_17:
	movq	8(%r15), %rdi
	callq	_kfree_skb
LBB0_18:
	movl	%r13d, %ebx
LBB0_19:
	movq	%r14, %rdi
	callq	_kfree_skb
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_L2CAP_CTRL_SAR,4,2             ## @L2CAP_CTRL_SAR
	.comm	_L2CAP_CONN_SAR_SDU,4,2         ## @L2CAP_CONN_SAR_SDU
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_l2cap_sar_reassembly_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_reassembly_sdu
_l2cap_sar_reassembly_sdu:              ; @l2cap_sar_reassembly_sdu
	.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	x23, x2
	mov	x19, x1
	mov	x22, x0
	bl	_l2cap_pi
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
Lloh3:
	adrp	x8, _L2CAP_CTRL_SAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _L2CAP_CTRL_SAR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w23
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_16
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _L2CAP_CONN_SAR_SDU@GOTPAGE
Lloh9:
	ldr	x9, [x9, _L2CAP_CONN_SAR_SDU@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.3:
	mov	x0, x22
	mov	x1, x19
	bl	_sock_queue_rcv_skb
	mov	x21, x0
	cbnz	w0, LBB0_16
	b	LBB0_17
LBB0_4:
	ldr	w8, [x20]
Lloh11:
	adrp	x22, _L2CAP_CONN_SAR_SDU@GOTPAGE
Lloh12:
	ldr	x22, [x22, _L2CAP_CONN_SAR_SDU@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.5:
	ldr	w0, [x19, #4]
	bl	_get_unaligned_le16
	str	w0, [x20, #16]
	mov	x0, x19
	mov	w1, #2
	bl	_skb_pull
	ldr	w0, [x20, #16]
Lloh13:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_bt_skb_alloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_18
; %bb.6:
	ldr	w1, [x19]
	bl	_skb_put
	ldp	w2, w1, [x19]
	bl	_memcpy
	mov	w21, #0
	ldr	w8, [x22]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	w8, [x19]
	str	w8, [x20, #20]
	b	LBB0_16
LBB0_7:
	ldr	w8, [x20]
Lloh16:
	adrp	x23, _L2CAP_CONN_SAR_SDU@GOTPAGE
Lloh17:
	ldr	x23, [x23, _L2CAP_CONN_SAR_SDU@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.8:
	ldr	x0, [x20, #8]
	ldr	w1, [x19]
	bl	_skb_put
	ldp	w2, w1, [x19]
	bl	_memcpy
	ldr	w8, [x23]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	ldr	w8, [x19]
	ldp	w10, w9, [x20, #16]
	add	w8, w9, w8
	cmp	w8, w10
	str	w8, [x20, #20]
	b.ne	LBB0_11
; %bb.9:
	ldr	x0, [x20, #8]
Lloh18:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_skb_clone
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	bl	_sock_queue_rcv_skb
	tbz	w0, #31, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_kfree_skb
LBB0_11:
	ldr	x0, [x20, #8]
	bl	_kfree_skb
	b	LBB0_15
LBB0_12:
	ldr	w8, [x20]
Lloh21:
	adrp	x9, _L2CAP_CONN_SAR_SDU@GOTPAGE
Lloh22:
	ldr	x9, [x9, _L2CAP_CONN_SAR_SDU@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.13:
	ldr	x0, [x20, #8]
	ldr	w1, [x19]
	bl	_skb_put
	ldp	w2, w1, [x19]
	bl	_memcpy
	ldr	w8, [x19]
	ldp	w10, w9, [x20, #16]
	add	w8, w9, w8
	cmp	w8, w10
	str	w8, [x20, #20]
	b.le	LBB0_15
LBB0_14:
	ldr	x0, [x20, #8]
	bl	_kfree_skb
	b	LBB0_16
LBB0_15:
	mov	w21, #0
LBB0_16:
	mov	x0, x19
	bl	_kfree_skb
LBB0_17:
	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
LBB0_18:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_L2CAP_CTRL_SAR,4,2             ; @L2CAP_CTRL_SAR
	.comm	_L2CAP_CONN_SAR_SDU,4,2         ; @L2CAP_CONN_SAR_SDU
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_l2cap_sar_reassembly_sdu
.subsections_via_symbols
