	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfcomm_process_tx
_rfcomm_process_tx:                     ## @rfcomm_process_tx
	.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	%rdi, %r12
	movl	36(%rdi), %edx
	movl	(%rdi), %ecx
	movl	4(%rdi), %r8d
	movl	8(%rdi), %r9d
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_BT_DBG
	movq	_RFCOMM_MSC_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r12), %r14
	movq	%r14, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	32(%r12), %edx
	movl	20(%r12), %edi
	movl	28(%r12), %ecx
	movl	$1, %esi
	callq	_rfcomm_send_msc
LBB0_2:
	cmpl	$0, (%r12)
	je	LBB0_6
## %bb.3:
	movq	_RFCOMM_RX_THROTTLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movl	(%r12), %edx
	movl	4(%r12), %eax
	movl	%edx, %ecx
	sarl	$2, %ecx
	cmpl	%ecx, %eax
	jg	LBB0_7
## %bb.5:
	movl	20(%r12), %edi
	movl	24(%r12), %esi
	subl	%eax, %edx
	callq	_rfcomm_send_credits
	movl	(%r12), %eax
	movl	%eax, 4(%r12)
	jmp	LBB0_7
LBB0_6:
	movl	$5, 8(%r12)
LBB0_7:
	movq	_RFCOMM_TX_THROTTLED@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
LBB0_17:
	addq	$12, %r12
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_skb_queue_len                  ## TAILCALL
LBB0_8:
	cmpl	$0, 8(%r12)
	je	LBB0_14
## %bb.9:
	leaq	12(%r12), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %rbx
	movl	20(%r12), %edi
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_rfcomm_send_frame
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_kfree_skb
	decl	8(%r12)
	jne	LBB0_10
	jmp	LBB0_14
LBB0_12:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_skb_queue_head
LBB0_14:
	cmpl	$0, (%r12)
	je	LBB0_17
## %bb.15:
	cmpl	$0, 8(%r12)
	jne	LBB0_17
## %bb.16:
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_set_bit
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dlc %p state %ld cfc %d rx_credits %d tx_credits %d"

	.comm	_RFCOMM_MSC_PENDING,4,2         ## @RFCOMM_MSC_PENDING
	.comm	_RFCOMM_RX_THROTTLED,4,2        ## @RFCOMM_RX_THROTTLED
	.comm	_RFCOMM_TX_THROTTLED,4,2        ## @RFCOMM_TX_THROTTLED
	.no_dead_strip	_rfcomm_process_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rfcomm_process_tx
_rfcomm_process_tx:                     ; @rfcomm_process_tx
	.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, x0
	ldr	w2, [x0, #36]
	ldp	w3, w4, [x0]
	ldr	w5, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_BT_DBG
Lloh2:
	adrp	x8, _RFCOMM_MSC_PENDING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RFCOMM_MSC_PENDING@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x20, x19, #16
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #20]
	ldp	w3, w2, [x19, #28]
	mov	w1, #1
	bl	_rfcomm_send_msc
LBB0_2:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _RFCOMM_RX_THROTTLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RFCOMM_RX_THROTTLED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbnz	x0, LBB0_7
; %bb.4:
	ldp	w9, w8, [x19]
	cmp	w8, w9, asr #2
	b.gt	LBB0_7
; %bb.5:
	ldp	w0, w1, [x19, #20]
	sub	w2, w9, w8
	bl	_rfcomm_send_credits
	ldr	w8, [x19]
	str	w8, [x19, #4]
	b	LBB0_7
LBB0_6:
	mov	w8, #5
	str	w8, [x19, #8]
LBB0_7:
Lloh8:
	adrp	x23, _RFCOMM_TX_THROTTLED@GOTPAGE
Lloh9:
	ldr	x23, [x23, _RFCOMM_TX_THROTTLED@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_9
LBB0_8:
	add	x0, x19, #12
	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
	b	_skb_queue_len
LBB0_9:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_15
; %bb.10:
	add	x21, x19, #12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_skb_dequeue
	cbz	x0, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x22, x0
	ldr	w0, [x19, #20]
	ldp	w2, w1, [x22]
	bl	_rfcomm_send_frame
	tbnz	w0, #31, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x22
	bl	_kfree_skb
	ldr	w8, [x19, #8]
	subs	w8, w8, #1
	str	w8, [x19, #8]
	b.ne	LBB0_11
	b	LBB0_15
LBB0_14:
	mov	x0, x21
	mov	x1, x22
	bl	_skb_queue_head
LBB0_15:
	ldr	w8, [x19]
	cbz	w8, LBB0_8
; %bb.16:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_8
; %bb.17:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_set_bit
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dlc %p state %ld cfc %d rx_credits %d tx_credits %d"

	.comm	_RFCOMM_MSC_PENDING,4,2         ; @RFCOMM_MSC_PENDING
	.comm	_RFCOMM_RX_THROTTLED,4,2        ; @RFCOMM_RX_THROTTLED
	.comm	_RFCOMM_TX_THROTTLED,4,2        ; @RFCOMM_TX_THROTTLED
	.no_dead_strip	_rfcomm_process_tx
.subsections_via_symbols
