	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfcomm_recv_data
_rfcomm_recv_data:                      ## @rfcomm_recv_data
	.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
	movq	%rcx, %r14
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r13, %rcx
	movl	%r12d, %r8d
	callq	_BT_DBG
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_rfcomm_dlc_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.4:
	cmpq	$0, 32(%r15)
	je	LBB0_7
## %bb.5:
	movq	8(%r14), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_skb_pull
	addq	%rbx, 24(%r15)
	je	LBB0_7
## %bb.6:
	movq	_RFCOMM_TX_THROTTLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$20, %rsi
	callq	_clear_bit
LBB0_7:
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.8:
	movq	(%r15), %rax
	movq	_BT_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.9:
	movq	%r15, %rdi
	callq	_rfcomm_dlc_lock
	decl	16(%r15)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	*8(%r15)
	movq	%r15, %rdi
	callq	_rfcomm_dlc_unlock
	jmp	LBB0_10
LBB0_1:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_rfcomm_send_dm
LBB0_2:
	movq	%r14, %rdi
	callq	_kfree_skb
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"session %p state %ld dlci %d pf %d"

	.comm	_RFCOMM_TX_THROTTLED,4,2        ## @RFCOMM_TX_THROTTLED
	.comm	_BT_CONNECTED,8,3               ## @BT_CONNECTED
	.no_dead_strip	_rfcomm_recv_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rfcomm_recv_data
_rfcomm_recv_data:                      ; @rfcomm_recv_data
	.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	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	ldr	w2, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x3, x21
	mov	x4, x22
	bl	_BT_DBG
	mov	x0, x23
	mov	x1, x21
	bl	_rfcomm_dlc_get
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	cbz	w22, LBB0_5
; %bb.2:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x21, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_skb_pull
	ldr	x8, [x20, #24]
	adds	x8, x8, x21
	str	x8, [x20, #24]
	b.eq	LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _RFCOMM_TX_THROTTLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RFCOMM_TX_THROTTLED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x20, #20
	bl	_clear_bit
LBB0_5:
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _BT_CONNECTED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BT_CONNECTED@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_rfcomm_dlc_lock
	ldr	w8, [x20, #16]
	sub	w8, w8, #1
	str	w8, [x20, #16]
	ldr	x8, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x0, x20
	bl	_rfcomm_dlc_unlock
	b	LBB0_10
LBB0_8:
	mov	x0, x23
	mov	x1, x21
	bl	_rfcomm_send_dm
LBB0_9:
	mov	x0, x19
	bl	_kfree_skb
LBB0_10:
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"session %p state %ld dlci %d pf %d"

	.comm	_RFCOMM_TX_THROTTLED,4,2        ; @RFCOMM_TX_THROTTLED
	.comm	_BT_CONNECTED,8,3               ; @BT_CONNECTED
	.no_dead_strip	_rfcomm_recv_data
.subsections_via_symbols
