	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_recv_acldata
_l2cap_recv_acldata:                    ## @l2cap_recv_acldata
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	(%rdi), %r12
	testq	%r12, %r12
	jne	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	callq	_l2cap_conn_add
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_21
LBB0_2:
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_BT_DBG
	movq	_ACL_START@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_15
## %bb.3:
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.4:
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_BT_ERR
	movq	8(%r12), %rdi
	callq	_kfree_skb
	movq	$0, 8(%r12)
	movl	$0, (%r12)
	movq	_ECOMM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_l2cap_conn_unreliable
LBB0_5:
	movl	(%r14), %esi
	cmpl	$1, %esi
	jg	LBB0_9
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_7
LBB0_15:
	movl	(%r14), %esi
	movl	(%r12), %edx
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_BT_DBG
	movl	(%r12), %edx
	movl	(%r14), %esi
	testl	%edx, %edx
	je	LBB0_16
## %bb.17:
	cmpl	%edx, %esi
	jle	LBB0_19
## %bb.18:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_BT_ERR
	movq	8(%r12), %rdi
	callq	_kfree_skb
	movq	$0, 8(%r12)
	movl	$0, (%r12)
	jmp	LBB0_8
LBB0_9:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	___le16_to_cpu
	movl	%eax, %r15d
	movq	_L2CAP_HDR_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	movl	(%r14), %edx
	cmpl	%edx, %r15d
	jne	LBB0_10
## %bb.14:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_l2cap_recv_frame
	jmp	LBB0_22
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_BT_DBG
	movl	(%r14), %esi
	cmpl	%r15d, %esi
	jle	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_BT_ERR
	jmp	LBB0_8
LBB0_16:
	leaq	L_.str.6(%rip), %rdi
LBB0_7:
	xorl	%eax, %eax
	callq	_BT_ERR
LBB0_8:
	movq	_ECOMM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_l2cap_conn_unreliable
LBB0_21:
	movq	%r14, %rdi
	callq	_kfree_skb
LBB0_22:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	8(%r12), %rdi
	callq	_skb_put
	movl	(%r14), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_skb_copy_from_linear_data
	movl	(%r14), %eax
	subl	%eax, (%r12)
	jne	LBB0_21
## %bb.20:
	movq	8(%r12), %rsi
	movq	%r12, %rdi
	callq	_l2cap_recv_frame
	movq	$0, 8(%r12)
	jmp	LBB0_21
LBB0_12:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_bt_skb_alloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_21
## %bb.13:
	movl	(%r14), %esi
	movq	%rax, %rdi
	callq	_skb_put
	movl	(%r14), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_skb_copy_from_linear_data
	subl	(%r14), %r15d
	movl	%r15d, (%r12)
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"conn %p len %d flags 0x%x"

	.comm	_ACL_START,4,2                  ## @ACL_START
L_.str.1:                               ## @.str.1
	.asciz	"Unexpected start frame (len %d)"

	.comm	_ECOMM,4,2                      ## @ECOMM
L_.str.2:                               ## @.str.2
	.asciz	"Frame is too short (len %d)"

	.comm	_L2CAP_HDR_SIZE,4,2             ## @L2CAP_HDR_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"Start: total len %d, frag len %d"

L_.str.4:                               ## @.str.4
	.asciz	"Frame is too long (len %d, expected len %d)"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.5:                               ## @.str.5
	.asciz	"Cont: frag len %d (expecting %d)"

L_.str.6:                               ## @.str.6
	.asciz	"Unexpected continuation frame (len %d)"

L_.str.7:                               ## @.str.7
	.asciz	"Fragment is too long (len %d, expected %d)"

	.no_dead_strip	_l2cap_recv_acldata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_recv_acldata
_l2cap_recv_acldata:                    ; @l2cap_recv_acldata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x2
	mov	x19, x1
	ldr	x20, [x0]
	cbnz	x20, LBB0_2
; %bb.1:
	mov	w1, #0
	bl	_l2cap_conn_add
	mov	x20, x0
	cbz	x0, LBB0_18
LBB0_2:
	ldr	w8, [x19]
	stp	x8, x21, [sp, #8]
	str	x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
Lloh2:
	adrp	x8, _ACL_START@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ACL_START@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.3:
	ldr	w8, [x20]
Lloh5:
	adrp	x22, _ECOMM@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ECOMM@GOTPAGEOFF]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	w1, [x19]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_ERR
	ldr	x0, [x20, #8]
	bl	_kfree_skb
	str	xzr, [x20, #8]
	str	wzr, [x20]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_l2cap_conn_unreliable
LBB0_5:
	ldr	w1, [x19]
	cmp	w1, #1
	b.gt	LBB0_11
; %bb.6:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_BT_ERR
	ldr	w1, [x22]
	b	LBB0_17
LBB0_8:
	ldr	w8, [x19]
	ldr	w9, [x20]
	stp	x8, x9, [sp]
Lloh11:
	adrp	x0, l_.str.5@PAGE
Lloh12:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_BT_DBG
	ldr	w8, [x20]
	ldr	w1, [x19]
	cbz	w8, LBB0_15
; %bb.9:
	cmp	w1, w8
	b.le	LBB0_20
; %bb.10:
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.7@PAGE
Lloh14:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_BT_ERR
	ldr	x0, [x20, #8]
	bl	_kfree_skb
	str	xzr, [x20, #8]
	str	wzr, [x20]
	b	LBB0_16
LBB0_11:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	___le16_to_cpu
Lloh15:
	adrp	x8, _L2CAP_HDR_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _L2CAP_HDR_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x8]
	ldr	w8, [x19]
	add	w21, w9, w0
	cmp	w21, w8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x20
	mov	x1, x19
	bl	_l2cap_recv_frame
	b	LBB0_19
LBB0_13:
	stp	x21, x8, [sp]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_BT_DBG
	ldr	w1, [x19]
	cmp	w1, w21
	b.le	LBB0_22
; %bb.14:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_15:
Lloh22:
	adrp	x0, l_.str.6@PAGE
Lloh23:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_BT_ERR
LBB0_16:
Lloh24:
	adrp	x8, _ECOMM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ECOMM@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
LBB0_17:
	mov	x0, x20
	bl	_l2cap_conn_unreliable
LBB0_18:
	mov	x0, x19
	bl	_kfree_skb
LBB0_19:
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
LBB0_20:
	ldr	x0, [x20, #8]
	bl	_skb_put
	mov	x1, x0
	ldr	w2, [x19]
	mov	x0, x19
	bl	_skb_copy_from_linear_data
	ldr	w8, [x19]
	ldr	w9, [x20]
	subs	w8, w9, w8
	str	w8, [x20]
	b.ne	LBB0_18
; %bb.21:
	ldr	x1, [x20, #8]
	mov	x0, x20
	bl	_l2cap_recv_frame
	str	xzr, [x20, #8]
	b	LBB0_18
LBB0_22:
Lloh27:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_bt_skb_alloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_18
; %bb.23:
	ldr	w1, [x19]
	bl	_skb_put
	mov	x1, x0
	ldr	w2, [x19]
	mov	x0, x19
	bl	_skb_copy_from_linear_data
	ldr	w8, [x19]
	sub	w8, w21, w8
	str	w8, [x20]
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"conn %p len %d flags 0x%x"

	.comm	_ACL_START,4,2                  ; @ACL_START
l_.str.1:                               ; @.str.1
	.asciz	"Unexpected start frame (len %d)"

	.comm	_ECOMM,4,2                      ; @ECOMM
l_.str.2:                               ; @.str.2
	.asciz	"Frame is too short (len %d)"

	.comm	_L2CAP_HDR_SIZE,4,2             ; @L2CAP_HDR_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"Start: total len %d, frag len %d"

l_.str.4:                               ; @.str.4
	.asciz	"Frame is too long (len %d, expected len %d)"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.5:                               ; @.str.5
	.asciz	"Cont: frag len %d (expecting %d)"

l_.str.6:                               ; @.str.6
	.asciz	"Unexpected continuation frame (len %d)"

l_.str.7:                               ; @.str.7
	.asciz	"Fragment is too long (len %d, expected %d)"

	.no_dead_strip	_l2cap_recv_acldata
.subsections_via_symbols
