	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfcomm_process_rx
_rfcomm_process_rx:                     ## @rfcomm_process_rx
	.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	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movl	4(%rdi), %ebx
	leaq	12(%r12), %r15
	movq	%r15, %rdi
	callq	_skb_queue_len
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_BT_DBG
	movq	%r15, %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_skb_orphan
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rfcomm_recv_frame
	movq	%r15, %rdi
	callq	_skb_dequeue
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	movq	(%r12), %rax
	movq	_BT_CLOSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	cmpl	$0, (%r14)
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_rfcomm_session_put
LBB0_6:
	movl	8(%r12), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rfcomm_session_close           ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"session %p state %ld qlen %d"

	.comm	_BT_CLOSED,8,3                  ## @BT_CLOSED
	.no_dead_strip	_rfcomm_process_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rfcomm_process_rx
_rfcomm_process_rx:                     ; @rfcomm_process_rx
	.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, x0
	ldr	x8, [x0, #8]
	ldr	x22, [x8]
	ldr	w21, [x0, #4]
	add	x20, x22, #12
	mov	x0, x20
	bl	_skb_queue_len
	mov	x3, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_BT_DBG
	mov	x0, x20
	bl	_skb_dequeue
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_skb_orphan
	mov	x0, x19
	mov	x1, x21
	bl	_rfcomm_recv_frame
	mov	x0, x20
	bl	_skb_dequeue
	mov	x21, x0
	cbnz	x0, LBB0_2
LBB0_3:
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _BT_CLOSED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BT_CLOSED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	ldr	w8, [x19]
	cbnz	w8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_rfcomm_session_put
LBB0_6:
	ldr	w1, [x22, #8]
	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	_rfcomm_session_close
LBB0_7:
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"session %p state %ld qlen %d"

	.comm	_BT_CLOSED,8,3                  ; @BT_CLOSED
	.no_dead_strip	_rfcomm_process_rx
.subsections_via_symbols
