	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_conless_channel
_l2cap_conless_channel:                 ## @l2cap_conless_channel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	(%rdi), %edx
	xorl	%edi, %edi
	callq	_l2cap_get_sock_by_psm
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_BT_DBG
	movq	(%rbx), %rax
	movq	_BT_BOUND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_BT_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_l2cap_pi
	movq	(%rax), %rax
	cmpq	(%r14), %rax
	jl	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sock_queue_rcv_skb
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	callq	_kfree_skb
LBB0_6:
	movq	%rbx, %rdi
	callq	_bh_unlock_sock
	jmp	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	callq	_kfree_skb
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sk %p, len %d"

	.comm	_BT_BOUND,8,3                   ## @BT_BOUND
	.comm	_BT_CONNECTED,8,3               ## @BT_CONNECTED
	.no_dead_strip	_l2cap_conless_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_conless_channel
_l2cap_conless_channel:                 ; @l2cap_conless_channel
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	ldr	w2, [x0]
	mov	w0, #0
	bl	_l2cap_get_sock_by_psm
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x2, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_BT_DBG
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _BT_BOUND@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BT_BOUND@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _BT_CONNECTED@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BT_CONNECTED@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_l2cap_pi
	ldr	x8, [x0]
	ldr	x9, [x19]
	cmp	x8, x9
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_sock_queue_rcv_skb
	cbz	w0, LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_kfree_skb
LBB0_5:
	mov	x0, x20
	bl	_bh_unlock_sock
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_kfree_skb
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sk %p, len %d"

	.comm	_BT_BOUND,8,3                   ; @BT_BOUND
	.comm	_BT_CONNECTED,8,3               ; @BT_CONNECTED
	.no_dead_strip	_l2cap_conless_channel
.subsections_via_symbols
