	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_recv_frame
_l2cap_recv_frame:                      ## @l2cap_recv_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rsi), %rbx
	movq	_L2CAP_HDR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_skb_pull
	movl	4(%rbx), %edi
	callq	___le16_to_cpu
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	___le16_to_cpu
	cmpq	(%r12), %rax
	jne	LBB0_6
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_BT_DBG
	cmpq	$129, %r15
	je	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	cmpq	$128, %r15
	jne	LBB0_5
## %bb.3:
	movq	%r12, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_l2cap_sig_channel              ## TAILCALL
LBB0_6:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree_skb                      ## TAILCALL
LBB0_4:
	movq	8(%r12), %rdi
	callq	_get_unaligned_le16
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_skb_pull
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_l2cap_conless_channel          ## TAILCALL
LBB0_5:
	movq	%r15, %rsi
	movq	%r12, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_l2cap_data_channel             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_L2CAP_HDR_SIZE,4,2             ## @L2CAP_HDR_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"len %d, cid 0x%4.4x"

	.no_dead_strip	_l2cap_recv_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_recv_frame
_l2cap_recv_frame:                      ; @l2cap_recv_frame
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	mov	x20, x0
	ldr	x22, [x1, #8]
Lloh0:
	adrp	x8, _L2CAP_HDR_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _L2CAP_HDR_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skb_pull
	ldr	w0, [x22, #4]
	bl	___le16_to_cpu
	mov	x21, x0
	ldr	w0, [x22]
	bl	___le16_to_cpu
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_BT_DBG
	cmp	x21, #129
	b.eq	LBB0_5
; %bb.2:
	mov	x0, x20
	cmp	x21, #128
	b.ne	LBB0_6
; %bb.3:
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_l2cap_sig_channel
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_kfree_skb
LBB0_5:
	ldr	x0, [x19, #8]
	bl	_get_unaligned_le16
	mov	x21, x0
	mov	x0, x19
	mov	w1, #2
	bl	_skb_pull
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_l2cap_conless_channel
LBB0_6:
	mov	x1, x21
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_l2cap_data_channel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_L2CAP_HDR_SIZE,4,2             ; @L2CAP_HDR_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"len %d, cid 0x%4.4x"

	.no_dead_strip	_l2cap_recv_frame
.subsections_via_symbols
